Não é possível atualizar o Ubuntu 14.04 ou instalar novos aplicativos nele [duplicado]

0

Não consigo atualizar o Ubuntu 14.04 ou instalar qualquer novo software, pois sempre recebo o seguinte erro:

Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libc6-dev : Depends: linux-libc-dev but it is not going to be installed
 libnss3 : Breaks: libnss3:i386 (!= 2:3.19.2-1ubuntu1) but 2:3.26.2-0ubuntu0.14.04.3 is to be installed
 libnss3:i386 : Breaks: libnss3 (!= 2:3.26.2-0ubuntu0.14.04.3) but 2:3.19.2-1ubuntu1 is to be installed
 libnss3-nssdb : Depends: libnss3 (= 2:3.26.2-0ubuntu0.14.04.3) but 2:3.19.2-1ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Eu tentei rodar

sudo apt-get -f install

mas não funciona, pois recebo o seguinte erro na saída:

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:
  account-plugin-windows-live kde-l10n-ar kde-l10n-engb libntdb1 libupstart1
  linux-headers-3.16.0-30 linux-headers-3.16.0-30-generic
  linux-image-3.16.0-30-generic linux-image-extra-3.16.0-30-generic
  python-ntdb python-pexpect python-renderpm python-reportlab
  python-reportlab-accel
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libnss3
The following packages will be upgraded:
  libnss3
1 upgraded, 0 newly installed, 0 to remove and 146 not upgraded.
3 not fully installed or removed.
Need to get 1,126 kB of archives.
After this operation, 30.7 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libnss3 amd64 2:3.26.2-0ubuntu0.14.04.3 [1,126 kB]
Fetched 1,126 kB in 5s (214 kB/s)    
(Reading database ... 292354 files and directories currently installed.)
Preparing to unpack .../libnss3_2%3a3.26.2-0ubuntu0.14.04.3_amd64.deb ...
Unpacking libnss3:amd64 (2:3.26.2-0ubuntu0.14.04.3) over (2:3.19.2-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libnss3_2%3a3.26.2-0ubuntu0.14.04.3_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libnss3/changelog.Debian.gz', which is different from other instances of package libnss3:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libnss3_2%3a3.26.2-0ubuntu0.14.04.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Editar: há um ícone de erro aparecendo ao lado do relógio na barra de status superior, que contém texto

An error occurred, please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error message was: 'Error: Brokencount > 0'. This usually means you installed packages have unmet dependencies.

Ao clicar em Mostrar Atualizações neste menu de ícones, recebo uma janela (Nova atualização importante de segurança e suporte de hardware.

WARNING: Security updates for your current hardware Enablement stack ended on 2016-08-04 http://wiki.ubuntu.com/1404_HWE_EOL

Ao tentar clicar em instalar nesta janela, ainda me ocorre um erro ao instalar.

Como posso consertar meu sistema para que eu possa atualizar?

    
por Mark J 15.03.2017 / 12:55

1 resposta

0

O problema é explicado na mensagem de erro:

dpkg: error processing archive /var/cache/apt/archives/libnss3_2%3a3.26.2-0ubuntu0.14.04.3_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libnss3/changelog.Debian.gz', which is different from other instances of package libnss3:amd64

Este é um erro raro e pode ter várias causas possíveis. Se esse erro se repetir com frequência, NÃO continue a corrigi-lo repetidamente - você tem um problema mais profundo que deve ser investigado e corrigido.

Como corrigir : como você provavelmente não está usando o arquivo de changelog, tente renomeá-lo. Se a instalação for bem-sucedida, você poderá excluí-la com segurança.

sudo mv /usr/share/doc/libnss3/changelog.Debian.gz /usr/share/doc/libnss3/changelog.Debian.gz.bak
sudo apt-get upgrade
sudo apt-get -f install
sudo rm /usr/share/doc/libnss3/changelog.Debian.gz.bak

Se você encontrar alguma mensagem de erro durante o processo, STOP .

    
por user535733 15.03.2017 / 13:26