Instalado o pacote errado teamvierer agora tenho problemas de dependência não atendidos, como reverter?

0

O gerenciamento de pacotes é interrompido após uma tentativa equivocada de instalar o TeamViewer (selecionei o pacote errado do TeamViewer no site do TeamViewer).

Eu tentei:

sudo apt-get clean
sudo apt-get update

Então, se eu fizer isso:

sudo apt-get install -f

Eu recebo:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  language-pack-kde-en kde-l10n-engb language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libsane:i386
Suggested packages:
  hpoj:i386 hplip:i386 libsane-extras:i386 sane-utils:i386
The following NEW packages will be installed
  libsane:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/3,554 kB of archives.
After this operation, 8,503 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
(Reading database ... 479536 files and directories currently installed.)
Unpacking libsane:i386 (from .../libsane_1.0.22-7ubuntu1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libsane_1.0.22-7ubuntu1_i386.deb (--unpack):
 './lib/udev/rules.d/40-libsane.rules' is different from the same file on the system
Errors were encountered while processing:
 /var/cache/apt/archives/libsane_1.0.22-7ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Remover o pacote do problema parece não funcionar:

sudo apt-get remove libsane:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libsane:i386 is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 ia32-libs-multiarch:i386 : Depends: libsane:i386 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

E removendo ia32-libs-multiarch: i386 não funciona:

sudo apt-get remove ia32-libs-multiarch:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 ia32-libs : Depends: ia32-libs-multiarch
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

O centro de software do Ubuntu agora não pode ser usado, pois continuamente me dá um diálogo de erro dizendo "Os itens não podem ser instalados ou removidos até que o catálogo de pacotes seja reparado. Deseja repará-lo agora?" - no entanto, o reparo falha da seguinte forma:

(Reading database ... 479536 files and directories currently installed.)
Unpacking libsane:i386 (from .../libsane_1.0.22-7ubuntu1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libsane_1.0.22-7ubuntu1_i386.deb (--unpack):
 './lib/udev/rules.d/40-libsane.rules' is different from the same file on the system
Errors were encountered while processing:
 /var/cache/apt/archives/libsane_1.0.22-7ubuntu1_i386.deb
Error in function: 
dpkg: dependency problems prevent configuration of ia32-libs-multiarch:i386:
 ia32-libs-multiarch:i386 depends on libsane; however:
  Package libsane:i386 is not installed.
dpkg: error processing ia32-libs-multiarch:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ia32-libs:
 ia32-libs depends on ia32-libs-multiarch; however:
  Package ia32-libs-multiarch is not installed.
  Package ia32-libs-multiarch:i386 is not configured yet.
dpkg: error processing ia32-libs (--configure):
 dependency problems - leaving unconfigured

Também recebo uma notificação dizendo "Ocorreu um erro, execute o Gerenciador de Pacotes no menu de atalho ou entre no terminal para ver o que está errado. A mensagem de erro foi: 'Erro: BrokenCount > 0' Isso geralmente significa que seus pacotes instalados possuem dependências não atendidas ".

Algum conselho sobre como sair dessa bagunça? Muito obrigado.

    
por user191794 10.09.2013 / 22:24

2 respostas

1

Eu finalmente resolvi isso. Havia uma dependência circular: ia32-libs-multiarch: i386 depende da libsane: i386 e vice-versa. O apt-get se recusa a remover um dos dois porque depende do outro. Também se recusa a removê-los, se você especificar ambos na mesma linha de comando. Por exemplo:

sudo apt-get remove libsane:i386 ia32-libs-multiarch:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libsane:i386 is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
 ia32-libs : Depends: ia32-libs-multiarch
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

No entanto, irá permitir que você instale ambos, se você especificá-los na mesma linha de comando:

sudo apt-get install libsane:i386 ia32-libs-multiarch:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ia32-libs-multiarch:i386 is already the newest version.
The following packages were automatically installed and are no longer required:
  language-pack-kde-en kde-l10n-engb language-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
Suggested packages:
  hpoj:i386 hplip:i386 libsane-extras:i386 sane-utils:i386
The following NEW packages will be installed
  libsane:i386
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
Need to get 0 B/3,554 kB of archives.
After this operation, 8,503 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
(Reading database ... 479536 files and directories currently installed.)
Unpacking libsane:i386 (from .../libsane_1.0.22-7ubuntu1_i386.deb) ...
Setting up libsane:i386 (1.0.22-7ubuntu1) ...
Setting up ia32-libs-multiarch:i386 (20090808ubuntu36) ...
Setting up ia32-libs (20090808ubuntu36) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Depois disso, as coisas estão de volta e eu posso remover ia32-libs-multiarch: i386 novamente.

    
por user191794 13.09.2013 / 23:07
0

Ok, vamos corrigir um por um seus erros:

  • Exclua o TeamViewer e as dependências:

    sudo apt-get --purge autoremove teamviewer*
    
  • Remova qualquer pacote ia32-libs :

    sudo apt-get --purge autoremove ia32-libs*
    
  • Eu acredito que você tem um sistema de 64 bits, então libsane 32 bits tem que ser:

    sudo apt-get --purge autoremove libsane:i386
    
  • Repare qualquer outro problema:

    sudo apt-get update
    sudo apt-get -f install
    
  • Verifique se tudo está correto:

    sudo apt-get check
    

    Se, com o último passo, você encontrar problemas diferentes dos que está enfrentando agora, faça outra pergunta.

por Braiam 11.09.2013 / 17:19