Não é possível atualizar ou instalar / remover quaisquer pacotes

1

Estou usando o ubuntu 14.04 Eu não sei de alguma forma eu tenho o símbolo vermelho na tela assim:

Quando tentei atualizar usando sudo apt-get upgrade , ocorreu um erro:

$ sudo apt-get upgrade
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:
 click : Depends: python3-click-package (= 0.4.45.1+16.10.20160916-0~619~ubuntu14.04.1)
E: Unmet dependencies. Try using -f.

Quando eu inserir sudo apt-get -f install , é gerado outro erro:

$ sudo apt-get -f install
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:
  at bzr bzr-builddeb click-dev click-doc dctrl-tools debian-archive-keyring
  debootstrap devscripts distro-info distro-info-data dput ebtables fcitx-libs
  fcitx-libs-gclient freetds-common gdb-multiarch libaio1
  libboost-filesystem1.54.0 libboost-program-options1.54.0
  libboost-regex1.54.0 libboost-thread1.54.0 libcommon-sense-perl
  libdistro-info-perl libdrm-intel1:i386 libdrm-nouveau2:i386
  libdrm-radeon1:i386 libelf1:i386 libexpat1:i386 libexporter-lite-perl
  libffi6:i386 libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libglapi-mesa:i386
  libio-stringy-perl libjs-sphinxdoc libjson-perl libjson-xs-perl
  libllvm3.4:i386 liblxc1 libodbc1 libparse-debcontrol-perl libpciaccess0:i386
  libpq5 librados2 librbd1 libstdc++6:i386 libsybdb5 libtie-ixhash-perl
  libtxc-dxtn-s2tc0:i386 libx11-xcb1:i386 libxcb-dri2-0:i386
  libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386
  libxcb-xinerama0 libxdamage1:i386 libxdelta2 libxfixes3:i386
  libxshmfence1:i386 libxxf86vm1:i386 lxc-common lxcfs lxd lxd-client pbuilder
  pbzip2 pristine-tar pybootchartgui python-bzrlib python-configobj
  python-debianbts python-distro-info python-dns python-fpconst python-gpgme
  python-keyring python-launchpadlib python-lazr.restfulclient python-lazr.uri
  python-lzma python-oauth python-reportbug python-secretstorage
  python-simplejson python-soappy python-wadllib qemu-utils quilt reportbug
  schroot schroot-common ubuntu-dev-tools ubuntu-emulator
  ubuntu-emulator-runtime:i386 ubuntu-sdk-tools uidmap xdelta
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  click
Suggested packages:
  ubuntu-app-launch-tools upstart-app-launch-tools
Recommended packages:
  click-apparmor
The following packages will be upgraded:
  click
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
13 not fully installed or removed.
Need to get 0 B/14.8 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 297452 files and directories currently installed.)
Preparing to unpack .../click_0.4.46+17.10.20170607.3-0~622~ubuntu14.04.1_amd64.deb ...
Failed to issue method call: Unit click-system-hooks.service not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to issue method call: Unit click-system-hooks.service not loaded.
dpkg: error processing archive /var/cache/apt/archives/click_0.4.46+17.10.20170607.3-0~622~ubuntu14.04.1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
Failed to issue method call: Unit click-system-hooks.service failed to load: No such file or directory. See system logs and 'systemctl status click-system-hooks.service' for details.
Errors were encountered while processing:
 /var/cache/apt/archives/click_0.4.46+17.10.20170607.3-0~622~ubuntu14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Mesmo eu não consigo instalar python3-click-package

$ sudo apt-get  install python3-click-package
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-click-package is already the newest version.
python3-click-package set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 click : Depends: python3-click-package (= 0.4.45.1+16.10.20160916-0~619~ubuntu14.04.1)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Eu tentei instalar cada comando encontrado no google, mas, infelizmente: (

Por favor me guie como eu posso resolver esse erro

    
por RaTh0D 23.06.2017 / 09:14

1 resposta

0

Você inadvertidamente tentou instalar pacotes no seu Ubuntu 14.04 que possuem bibliotecas que não são compatíveis com a sua versão instalada. Você terá que remover a ofensa e instalar os pacotes apropriados para sua versão do Ubuntu.

Seu erro está indicando que seu pacote click precisa de python3-click-package , que é pelo menos 0.4.45.1 + 16.10.20160916-0 ~ 619 ~ ubuntu14.04.1 . A versão python3-click-package do Ubuntu 16.04 é 0.4.43 + 16.04.20170613-0ubuntu1 . Isso é mais baixo do que o 0,4.45 que a sua click install com falha está exigindo.

A propósito, python3-click-package version 0.4.45.1 + 16.10.20160916-0 ~ 619 ~ ubuntu14.04.1 é uma parte do repositório Ubuntu 17.04.

Você pode corrigir seus problemas de biblioteca incompatíveis com estas etapas:

Execute estas etapas para resolver seu problema. Você receberá avisos e erros durante o processo. Você terá que percorrer as etapas mais de uma vez. Cada loop executará algumas limpezas subseqüentes e fornecerá informações sobre como proceder.

Iniciar com:

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade

Se você observar a execução da instrução autoremove :

$ sudo apt-get autoremove

Agora verifique se uma reinicialização é necessária. Execute isto:

$ [[ -f /var/run/reboot-required ]] && echo "Reboot Now"

Se uma reinicialização for necessária, reinicialize antes de continuar.

Agora corrija o aplicativo ofensivo:

$ sudo apt remove click --purge
$ sudo apt remove python3-click-package --purge
$ sudo apt autoremove
$ sudo apt install click
$ sudo apt remove python3-click-package
$ sudo apt autoremove

Ao permitir que o sistema execute atualizações e atualizações automaticamente, esses comandos manuais são perfeitos durante as operações normais. Ao realizar a manutenção manual, alguns parecem muito redundantes. Eles são necessários.

    
por L. D. James 23.06.2017 / 14:00