
Estoy en Debian Stretch. Cuando intento ejecutar apt-get purge, falla y aparece un error de dependencias no satisfechas:
$ sudo apt-get purge -f openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
vim-gtk : Depends: libruby2.3 (>= 2.3.0~preview2) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
La última línea parece indicar que libruby2.3 no se puede instalar, pero tanto él como vim-gtk ya están instalados:
$ sudo apt-cache policy vim-gtk
vim-gtk:
Installed: 2:8.0.0197-4+deb9u3
Candidate: 2:8.0.0197-4+deb9u3
Version table:
*** 2:8.0.0197-4+deb9u3 500
500 http://debian.mirror.iweb.ca/debian stretch/main amd64 Packages
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
500 http://deb.debian.org/debian oldstable/main amd64 Packages
100 /var/lib/dpkg/status
$ sudo apt-cache policy libruby2.3
libruby2.3:
Installed: 2.3.3-1+deb9u9
Candidate: 2.3.3-1+deb9u9
Version table:
*** 2.3.3-1+deb9u9 500
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
100 /var/lib/dpkg/status
2.3.3-1+deb9u8 500
500 http://debian.mirror.iweb.ca/debian stretch/main amd64 Packages
500 http://deb.debian.org/debian oldstable/main amd64 Packages
Intenté purgar y reinstalar vim-gtk y libruby2.3, y esto parece funcionar:
$ sudo apt-get purge vim-gtk libruby2.3
$ sudo apt-get install vim-gtk libruby2.3
Sin embargo, después de esto, sigo recibiendo el mismo error al ejecutar sudo apt-get purge -f openssl
. Que esta causando este error? ¿Por qué apt me dice que no se va a instalar cuando ya está instalado?
Probé algunas de las sugerencias de otras preguntas similares ( sudo apt-get install -f
,, sudo apt-get update/clean/autoremove
pero el error persiste)
Respuesta1
este es el comienzo de lo quepodríatermina como respuesta:
No puedo decir si eliminar openssl es algo SABIO; Me inclino por "No es sabio".
Esto es lo que está presente en mi Ubuntu 20.04 LTS actual:
$ dpkg --lista | cabeza -n 4 && dpkg --list | grepopenssl Deseado=Desconocido/Instalar/Quitar/Purgar/Retener | Estado=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ ¿Err?=(ninguno)/Se requiere reinicio (Estado,Err: mayúsculas=malo) ||/ Nombre Versión Arquitectura Descripción ii libevent-openssl-2.1-7:amd64 2.1.11-stable-1 amd64 Biblioteca de notificación de eventos asíncronos (openssl) ii openssl 1.1.1f-1ubuntu2.1 amd64 Secure Sockets Layer kit de herramientas - utilidad criptográfica ii perl-openssl-defaults:amd64 4 línea base de compatibilidad de la versión amd64 para paquetes Perl OpenSSL