Tengo un problema con el paquete openqrm.
¿Cómo lo elimino?
root@wl183004:/# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up openqrm (4.6-ubuntu1) ...
.: 33: Can't open /usr/share/openqrm/etc/openqrm-server.conf
dpkg: error processing openqrm (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
openqrm
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@wl183004:/# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up openqrm (4.6-ubuntu1) ...
.: 33: Can't open /usr/share/openqrm/etc/openqrm-server.conf
dpkg: error processing openqrm (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
openqrm
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@wl183004:/# apt-get remove --purge openqrm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libshadow-ruby1.8 bind9 libopenipmi0 nagios-plugins-basic open-iscsi
nagios-plugins-standard memcached libupsclient1 collectd-core nagios-images
bind9utils tftpd-hpa radiusclient1 libdbi0 libphp-adodb collectd libruby
aoetools facter dhcp3-server open-iscsi-utils liboping0 libmemcached2
libradius1 libyajl1 nagios-plugins puppet-common puppetmaster
libopenssl-ruby1.8 libopenssl-ruby libesmtp5 libxmlrpc-ruby
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
openqrm*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 78.2MB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 313464 files and directories currently installed.)
Removing openqrm ...
.: 32: Can't open /usr/share/openqrm/etc/openqrm-server.conf
dpkg: error processing openqrm (--purge):
subprocess installed pre-removal script returned error exit status 2
.: 33: Can't open /usr/share/openqrm/etc/openqrm-server.conf
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
openqrm
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@wl183004:/#
debian
package-management
Marc Riera
fuente
fuente
set -x
al script para ver dónde falla, cf. cyberciti.biz/tips/debugging-shell-script.html/var/lib/dpkg/info/*.prerm
archivo para obtener un paquete para desinstalar. ¡Qué diseño!Lo siguiente funcionó para mí:
fuente
apacheds
instalación dañada , que bloqueó totalmente cualquierapt
comando en mi sistema, gracias ... podríamos generalizar un poco más al buscar primero todas las ubicaciones del paquetesudo find / | grep [package name]
, luego eliminarlas todas y luego usarsudo apt-get remove [package name] -purge --auto-remove
( sin guión, algunos de los resultados podrían no eliminarse aunque ...)Solo intenta tocar el archivo que falta. Si este es solo un archivo faltante, podría ser una gran solución.
Ahora intente eliminar el paquete con apt-get o aptitude.
fuente
Mire /var/lib/dpkg/info/openqrm.postinst y vea lo que está tratando de hacer.
fuente
Aquí hay una publicación sobre el mismo tipo de error (paquete diferente, sin embargo). ¿Ya lo has intentado
dpkg --force-all
?fuente