Limpar os pacotes problemáticos:
sudo apt-get purge hplip-data
sudo apt-get purge python-samba
Além disso, veja tudo ok:
sudo apt-get install -f
Meu centro de software no ubuntu 14.04 caiu. Algumas fontes dizem que eu tenho que fazer sudo apt-get purge software-center
. mas, quando eu corro, há algum erro, um deles é
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Então eu tento fazer apt-get -f install
. mas o resultado é
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:
linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
linux-image-3.13.0-32-generic linux-image-extra-3.13.0-32-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
hplip-data python-samba
The following packages will be upgraded:
hplip-data python-samba
2 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
7 not fully installed or removed.
Need to get 0 B/7.274 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 352449 files and directories currently installed.)
Preparing to unpack .../hplip-data_3.14.3-0ubuntu3.4_all.deb ...
Bus error (core dumped)
dpkg: warning: subprocess old pre-removal script returned error exit status 135
dpkg: trying script from the new package instead ...
Bus error (core dumped)
dpkg: error processing archive /var/cache/apt/archives/hplip-data_3.14.3-0ubuntu3.4_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 135
Bus error (core dumped)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 135
Preparing to unpack .../python-samba_2%3a4.1.6+dfsg-1ubuntu2.14.04.8_amd64.deb ...
Bus error (core dumped)
dpkg: warning: subprocess old pre-removal script returned error exit status 135
dpkg: trying script from the new package instead ...
Bus error (core dumped)
dpkg: error processing archive /var/cache/apt/archives/python-samba_2%3a4.1.6+dfsg-1ubuntu2.14.04.8_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 135
Bus error (core dumped)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 135
Errors were encountered while processing:
/var/cache/apt/archives/hplip-data_3.14.3-0ubuntu3.4_all.deb
/var/cache/apt/archives/python-samba_2%3a4.1.6+dfsg-1ubuntu2.14.04.8_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Então, o que eu tenho que fazer?
Limpar os pacotes problemáticos:
sudo apt-get purge hplip-data
sudo apt-get purge python-samba
Além disso, veja tudo ok:
sudo apt-get install -f
Tente verificar no apt-get usando:
sudo apt-get check
Ele verificará problemas de dependências e fixn se o problema persistir, tente editar manualmente o arquivo de status do dpkg:
sudo gedit /var/lib/dpkg/status
(você pode usar o vi ou o nano se quiser)
Localize o pacote corrompido e remova todo o bloco que lhe diz respeito e não se esqueça de salvar o arquivo.
Por favor, tente remover os pacotes no arquivo
sudo rm -r /var/cache/apt/archives/*
Sim, tenho certeza. ;)
Agora corra
sudo apt-get update
sudo apt-get dist-upgrade
E como disse, você deve remover software-center
: \
Por favor, reinstale
sudo apt-get install --reinstall software-center