uninstall pacote libc6 por dpkg

4

Instalei "libc6_2.17-0ubuntu5.1_amd64.deb" no meu servidor ubuntu 12.04. O libc6 original no sistema é 2.15. Depois de instalar o pacote, eu verifico por:

ldd --version

mostra:

ldd (Ubuntu EGLIBC 2.15-0ubuntu10.5) 2.15

não muda. Então eu descobri que não consigo instalar nada que dependa da libc6 pelo apt-get, ele irá reportar:

The following packages have unmet dependencies:
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.17-0ubuntu5.1 is to be installed
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.5) but 2.17-0ubuntu5.1 is to be installed
 libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5.1 is to be installed

Então eu tento desinstalar o pacote debian, primeiro eu verifico:

dpkg -l | grep libc6
ii  libc6            2.17-0ubuntu5.1       Embedded GNU C Library: Shared libraries
ii  libc6-dev        2.15-0ubuntu10.5      Embedded GNU C Library: Development Libraries and Header Files

Então

dpkg -r libc6

Ele imprime muitos pacotes que dependem da libc6 e me dizem:

dpkg: error processing libc6 (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 libc6

Parece que não há 2 versões libc6 no sistema.

Use

dpkg --get-selections

recebe:

libc6                                           deinstall
libc6-dev                                       install

Como devo fazer?

    
por jean 11.04.2014 / 09:42

1 resposta

2

Eu o reinstalei pelo aptitude. Muito poderoso do que o apt-get e o dpkg, nenhum deles reinstalar obras.

sudo aptitude reinstall libc6

The following packages will be REINSTALLED:
  libc6 
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.5) but 2.17-0ubuntu5.1 is installed.
 libc-dev-bin : Depends: libc6 (< 2.16) but 2.17-0ubuntu5.1 is installed.
 libnih1 : PreDepends: libc6 (< 2.16) but 2.17-0ubuntu5.1 is installed.
E: I wasn't able to locate a file for the libc6 package. This might mean you need to manually fix this package.
The following actions will resolve these dependencies:

     Downgrade the following packages:                                                                     
1)     libc-bin [2.15-0ubuntu10.5 (now, precise-security, precise-updates) -> 2.15-0ubuntu10 (precise)]    
2)     libc-dev-bin [2.15-0ubuntu10.5 (now, precise-security, precise-updates) -> 2.15-0ubuntu10 (precise)]
3)     libc6 [2.17-0ubuntu5.1 (now) -> 2.15-0ubuntu10 (precise)]                                           
4)     libc6-dev [2.15-0ubuntu10.5 (now, precise-security, precise-updates) -> 2.15-0ubuntu10 (precise)]

Accept this solution? [Y/n/q/?] y
The following packages will be DOWNGRADED:
  libc-bin libc-dev-bin libc6 libc6-dev 
0 packages upgraded, 0 newly installed, 4 downgraded, 0 to remove and 0 not upgraded.
Need to get 8,852 kB of archives. After unpacking 88.1 kB will be freed.
Do you want to continue? [Y/n/?] y

Como o aptitude diz, há 4 pacotes pertencentes à libc6, mas eu só instalei um deles pelo arquivo deb. Talvez essa seja a razão para o lixo do sistema

    
por 11.04.2014 / 13:17