No se puede actualizar ni instalar/eliminar ningún paquete

No se puede actualizar ni instalar/eliminar ningún paquete

Estoy usando ubuntu 14.04. No sé, de alguna manera apareció un símbolo rojo en la pantalla como este:

imagen

Cuando intenté actualizar usándolo, sudo apt-get upgradeaparece un error:

$ 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.

Cuando entro sudo apt-get -f installme arroja otro error:

$ 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)

Incluso yo no puedo instalarpython3-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).

Intenté instalar cada comando que se encuentra en Google pero, por desgracia :(

Por favor orientenme como puedo solucionar este error

Respuesta1

Sin darse cuenta, ha intentado instalar paquetes en su Ubuntu 14.04 que tienen bibliotecas que no son compatibles con su versión instalada. Tendrás que eliminar el problema e instalar los paquetes adecuados para tu versión de Ubuntu.

Su error indica que su clickpaquete necesita python3-click-packageal menos0.4.45.1+16.10.20160916-0~619~ubuntu14.04.1. La python3-click-packageversión de Ubuntu 16.04 es0.4.43+16.04.20170613-0ubuntu1. Eso es más bajo que el0.4.45clickque requiere su instalación fallida .

Por cierto, python3-click-packageversión0.4.45.1+16.10.20160916-0~619~ubuntu14.04.1es parte del repositorio de Ubuntu 17.04.

Puede solucionar los problemas de bibliotecas que no coinciden con estos pasos:

Realice estos pasos para resolver su problema. Recibirás advertencias y errores durante el proceso. Tendrás que repetir los pasos más de una vez. Cada bucle realizará algunas limpiezas posteriores y proporcionará información sobre cómo proceder.

Comience con:

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

Si ve la autoremoveinstrucción, realice:

$ sudo apt-get autoremove

Ahora compruebe si es necesario reiniciar. Ejecuta esto:

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

Si es necesario reiniciar, reinícielo antes de continuar.

Ahora corrija la aplicación infractora:

$ 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

Al permitir que el sistema realice actualizaciones y mejoras automáticamente, esos comandos manuales son fluidos durante las operaciones normales. Al realizar el mantenimiento manual, algunos parecen muy redundantes. Son necesarios.

información relacionada