Error xulrunner al actualizar a Ubuntu 18

evangelsan evangelsan evangelsan en telefonica.net
Lun Ene 21 11:52:59 UTC 2019


El mensaje va en dos partes debido a su tamaño:

Las tres primeras órdenes dan esto:

fugitiv1 en ordenador-desktop:~$ sudo lsof /var/cache/apt/archives/lock
[sudo] contraseña para fugitiv1:
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfs
Output information may be incomplete.
fugitiv1 en ordenador-desktop:~$ sudo lsof /var/lib/dpkg/lock
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfs
Output information may be incomplete.
fugitiv1 en ordenador-desktop:~$ ^C
fugitiv1 en ordenador-desktop:~$ sudo apt-get update && sudo apt-get -f install
Des:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Obj:2 http://es.archive.ubuntu.com/ubuntu bionic InRelease
Des:3 http://es.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Des:4 http://security.ubuntu.com/ubuntu bionic-security/main i386 DEP-11 Metadata [204 B]
Des:5 http://security.ubuntu.com/ubuntu bionic-security/universe i386 DEP-11 Metadata [14,9 kB]
Des:6 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [9.088 B]
Des:7 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [39,8 kB]
Des:8 http://es.archive.ubuntu.com/ubuntu bionic-updates/main i386 DEP-11 Metadata [266 kB]
Des:9 http://es.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [61,4 kB]
Des:10 http://es.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [116 kB]
Des:11 http://es.archive.ubuntu.com/ubuntu bionic-updates/universe i386 DEP-11 Metadata [200 kB]
Des:12 http://es.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [178 kB]
Des:13 http://es.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [323 kB]
Descargados 1.379 kB en 3s (442 kB/s)
Leyendo lista de paquetes... Hecho
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Corrigiendo dependencias... Listo
Los siguientes paquetes se ELIMINARÁN:
xulrunner-1.9.1
0 actualizados, 0 nuevos se instalarán, 1 para eliminar y 454 no actualizados.
Se liberarán 21,9 MB después de esta operación.
¿Desea continuar? [S/n] S
(Leyendo la base de datos ... 281664 ficheros o directorios instalados actualmente.)
Desinstalando xulrunner-1.9.1 (1.9.1.16+build2+nobinonly-0ubuntu0.9.10.1) ...
/var/lib/dpkg/info/xulrunner-1.9.1.prerm: 8: /var/lib/dpkg/info/xulrunner-1.9.1.prerm: /usr/sbin/update-alternatives: not found
dpkg: error al procesar el paquete xulrunner-1.9.1 (--remove):
instalado xulrunner-1.9.1 paquete pre-removal guión el subproceso devolvió un error con estado de salida 127
Se encontraron errores al procesar:
xulrunner-1.9.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

La última orden esto otro:

fugitiv1 en ordenador-desktop:~$ ls -l /var/cache/apt/archives /var/lib/dpkg
/var/cache/apt/archives:
total 497060
-rw-r--r-- 1 root root 1140052 oct 24 01:18 apache2-bin_2.4.29-1ubuntu4.5_i386.deb
-rw-r--r-- 1 root root 525072 oct 4 20:38 apparmor_2.12-4ubuntu5.1_i386.deb
-rw-r--r-- 1 root root 50552 oct 4 20:38 apparmor-utils_2.12-4ubuntu5.1_i386.deb
-rw-r--r-- 1 root root 123832 nov 5 21:53 apport_2.20.9-0ubuntu7.5_all.deb
-rw-r--r-- 1 root root 9704 nov 5 21:53 apport-gtk_2.20.9-0ubuntu7.5_all.deb
-rw-r--r-- 1 root root 28968 sep 19 11:33 appstream_0.12.0-3ubuntu1_i386.deb
-rw-r--r-- 1 root root 1193308 oct 18 00:43 apt_1.6.6_i386.deb
-rw-r--r-- 1 root root 2704 sep 19 11:33 apt-config-icons_0.12.0-3ubuntu1_all.deb
-rw-r--r-- 1 root root 1692 oct 18 00:43 apt-transport-https_1.6.6_all.deb
-rw-r--r-- 1 root root 8468 oct 1 18:53 apturl_0.5.2ubuntu14.2_i386.deb
-rw-r--r-- 1 root root 10928 oct 1 18:53 apturl-common_0.5.2ubuntu14.2_i386.deb
-rw-r--r-- 1 root root 219060 oct 18 00:43 apt-utils_1.6.6_i386.deb
-rw-r--r-- 1 root root 39296 ago 30 21:34 avahi-autoipd_0.7-3.1ubuntu1.1_i386.deb
-rw-r--r-- 1 root root 65368 ago 30 21:34 avahi-daemon_0.7-3.1ubuntu1.1_i386.deb
-rw-r--r-- 1 root root 24996 ago 30 21:34 avahi-utils_0.7-3.1ubuntu1.1_i386.deb
-rw-r--r-- 1 root root 58268 oct 23 19:18 bind9-host_1%3a9.11.3+dfsg-1ubuntu1.3_i386.deb
-rw-r--r-- 1 root root 3392 sep 15 00:43 binutils_2.30-21ubuntu1~18.04_i386.deb
-rw-r--r-- 1 root root 193124 sep 15 00:43 binutils-common_2.30-21ubuntu1~18.04_i386.deb
-rw-r--r-- 1 root root 2028472 sep 15 00:43 binutils-i686-linux-gnu_2.30-21ubuntu1~18.04_i386.deb
-rw-r--r-- 1 root root 91684 nov 7 14:48 bolt_0.5-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 1161984 sep 4 17:33 brltty_5.5-4ubuntu2.0.1_i386.deb
-rw-r--r-- 1 root root 22636 sep 4 17:33 brltty-x11_5.5-4ubuntu2.0.1_i386.deb
-rw-r--r-- 1 root root 62664 oct 16 18:58 bsdutils_1%3a2.31.1-0.4ubuntu3.3_i386.deb
-rw-r--r-- 1 root root 34396 nov 28 20:23 bubblewrap_0.2.1-1ubuntu0.1_i386.deb
-rw-r--r-- 1 root root 104640 ago 24 10:23 console-setup_1.178ubuntu2.7_all.deb
-rw-r--r-- 1 root root 982216 ago 24 10:23 console-setup-linux_1.178ubuntu2.7_all.deb
-rw-r--r-- 1 root root 27584 sep 17 16:33 cpp_4%3a7.3.0-3ubuntu2.1_i386.deb
-rw-r--r-- 1 root root 6966236 sep 16 02:23 cpp-7_7.3.0-27ubuntu1~18.04_i386.deb
-rw-r--r-- 1 root root 151340 ago 23 18:53 cryptsetup_2%3a2.0.2-1ubuntu1.1_i386.deb
-rw-r--r-- 1 root root 94036 ago 23 18:53 cryptsetup-bin_2%3a2.0.2-1ubuntu1.1_i386.deb
-rw-r--r-- 1 root root 196684 dic 12 21:43 cups_2.2.7-1ubuntu2.3_i386.deb
-rw-r--r-- 1 root root 38620 dic 12 21:43 cups-bsd_2.2.7-1ubuntu2.3_i386.deb
-rw-r--r-- 1 root root 139028 dic 12 21:43 cups-client_2.2.7-1ubuntu2.3_i386.deb
-rw-r--r-- 1 root root 205832 dic 12 21:43 cups-common_2.2.7-1ubuntu2.3_all.deb
-rw-r--r-- 1 root root 28684 dic 12 21:43 cups-core-drivers_2.2.7-1ubuntu2.3_i386.deb
-rw-r--r-- 1 root root 312728 dic 12 21:43 cups-daemon_2.2.7-1ubuntu2.3_i386.deb
-rw-r--r-- 1 root root 218832 dic 12 21:43 cups-ipp-utils_2.2.7-1ubuntu2.3_i386.deb
-rw-r--r-- 1 root root 27160 dic 12 21:43 cups-ppdc_2.2.7-1ubuntu2.3_i386.deb
-rw-r--r-- 1 root root 415248 dic 12 21:43 cups-server-common_2.2.7-1ubuntu2.3_all.deb
-rw-r--r-- 1 root root 50932 nov 9 12:25 desktop-file-utils_0.23-1ubuntu3.18.04.2_i386.deb
-rw-r--r-- 1 root root 342648 ene 10 18:43 dirmngr_2.2.4-1ubuntu1.2_i386.deb
-rw-r--r-- 1 root root 4460 oct 30 16:03 distro-info-data_0.37ubuntu0.2_all.deb
-rw-r--r-- 1 root root 151004 oct 23 19:18 dnsutils_1%3a9.11.3+dfsg-1ubuntu1.3_i386.deb
-rw-r--r-- 1 root root 1162868 oct 18 00:38 dpkg_1.19.0.5ubuntu2.1_i386.deb
-rw-r--r-- 1 root root 607520 oct 18 00:38 dpkg-dev_1.19.0.5ubuntu2.1_all.deb
-rw-r--r-- 1 root root 2712 dic 11 20:23 e2fslibs_1.44.1-1ubuntu1_i386.deb
-rw-r--r-- 1 root root 427608 dic 11 20:23 e2fsprogs_1.44.1-1ubuntu1_i386.deb
-rw-r--r-- 1 root root 4380 dic 11 20:23 e2fsprogs-l10n_1.44.1-1ubuntu1_all.deb
-rw-r--r-- 1 root root 271392 oct 31 17:23 evince_3.28.4-0ubuntu1_i386.deb
-rw-r--r-- 1 root root 112956 oct 31 17:38 evince-common_3.28.4-0ubuntu1_all.deb
-rw-r--r-- 1 root root 263548 ago 13 10:43 evolution_3.28.5-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 972596 ago 13 10:43 evolution-common_3.28.5-0ubuntu0.18.04.1_all.deb
-rw-r--r-- 1 root root 690072 ago 11 00:53 evolution-data-server_3.28.5-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 18196 ago 11 00:53 evolution-data-server-common_3.28.5-0ubuntu0.18.04.1_all.deb
-rw-r--r-- 1 root root 12688 ago 13 10:43 evolution-plugin-bogofilter_3.28.5-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 25296 ago 13 10:43 evolution-plugin-pstimport_3.28.5-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 94616 ago 13 10:43 evolution-plugins_3.28.5-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 116500 oct 16 18:58 fdisk_2.31.1-0.4ubuntu3.3_i386.deb
-rw-r--r-- 1 root root 48605308 dic 11 22:20 firefox_64.0+build3-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 13836 dic 11 22:20 firefox-globalmenu_64.0+build3-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 974108 dic 11 22:20 firefox-locale-en_64.0+build3-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 1618080 dic 11 22:20 firefox-locale-es_64.0+build3-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 822380 sep 13 22:33 fonts-liberation_1%3a1.07.4-7~18.04.1_all.deb
-rw-r--r-- 1 root root 1453184 sep 13 22:33 fonts-liberation2_2.00.1-7~18.04.1_all.deb
-rw-r--r-- 1 root root 7102064 oct 3 08:53 fonts-noto-color-emoji_0~20180810-0ubuntu1_all.deb
-rw-r--r-- 1 root root 91988 dic 2 15:08 fonts-opensymbol_2%3a102.10+LibO6.0.7-0ubuntu0.18.04.2_all.deb
-rw-r--r-- 1 root root 8912 oct 15 17:14 friendly-recovery_0.2.38ubuntu1_all.deb
-rw-r--r-- 1 root root 1610888 oct 23 20:03 fwupd_1.0.9-0ubuntu2_i386.deb
-rw-r--r-- 1 root root 1580 sep 17 16:33 g++_4%3a7.3.0-3ubuntu2.1_i386.deb
-rw-r--r-- 1 root root 7817416 sep 16 02:23 g++-7_7.3.0-27ubuntu1~18.04_i386.deb
-rw-r--r-- 1 root root 5248 sep 17 16:33 gcc_4%3a7.3.0-3ubuntu2.1_i386.deb
-rw-r--r-- 1 root root 7697700 sep 16 02:23 gcc-7_7.3.0-27ubuntu1~18.04_i386.deb
-rw-r--r-- 1 root root 18912 sep 16 02:23 gcc-7-base_7.3.0-27ubuntu1~18.04_i386.deb
-rw-r--r-- 1 root root 18332 sep 15 23:13 gcc-8-base_8.2.0-1ubuntu2~18.04_i386.deb
-rw-r--r-- 1 root root 280324 oct 15 13:03 gdm3_3.28.3-0ubuntu18.04.3_i386.deb
-rw-r--r-- 1 root root 436144 dic 18 19:03 gedit_3.28.1-1ubuntu1.1_i386.deb
-rw-r--r-- 1 root root 136648 dic 18 19:03 gedit-common_3.28.1-1ubuntu1.1_all.deb
-rw-r--r-- 1 root root 902352 nov 12 12:58 gettext_0.19.8.1-6ubuntu0.1_i386.deb
-rw-r--r-- 1 root root 51472 nov 12 12:58 gettext-base_0.19.8.1-6ubuntu0.1_i386.deb
-rw-r--r-- 1 root root 51888 dic 6 19:28 ghostscript_9.26~dfsg+0-0ubuntu0.18.04.3_i386.deb
-rw-r--r-- 1 root root 44908 dic 6 19:28 ghostscript-x_9.26~dfsg+0-0ubuntu0.18.04.3_i386.deb
-rw-r--r-- 1 root root 9528 oct 15 13:03 gir1.2-gdm-1.0_3.28.3-0ubuntu18.04.3_i386.deb
-rw-r--r-- 1 root root 5588 ene 14 14:48 gir1.2-gnomebluetooth-1.0_3.28.0-2ubuntu0.1_i386.deb
-rw-r--r-- 1 root root 8656 dic 18 06:23 gir1.2-gnomedesktop-3.0_3.28.2-0ubuntu1.2_i386.deb
-rw-r--r-- 1 root root 7308 dic 4 19:33 gir1.2-gweather-3.0_3.28.2-1~ubuntu18.04.1_i386.deb
-rw-r--r-- 1 root root 21296 ene 10 20:43 gir1.2-javascriptcoregtk-4.0_2.22.5-0ubuntu0.18.04.1_i386.deb
-rw-r--r-- 1 root root 138804 nov 6 22:13 gir1.2-mutter-2_3.28.3-2~ubuntu18.04.2_i386.deb

Continua en el siguiente mensaje.

> El 20 de enero de 2019 a las 13:36 Braiam Peguero <braiamp en gmail.com> escribió:
> 
> 
> Lamentablemente, esos no fueron los comandos que quise que ejecutaras,
> ni incluiste el resultado de los mismos. Cuando se realizan pruebas
> diagnosticas es importante seguir las instrucciones y copiar y pegar
> exactamente todo lo que resultan de ellas, ya que sin estos es
> imposible solucionar el problema. Error 127 solo dice que dpkg terminó
> de forma inesperada, lo cual no es útil para identificar la causa del
> problema. Favor ejecutar tal y como aparecen y enviar el resultado de
> los mismos.
> 
> > sudo lsof /var/cache/apt/archives/lock
> > sudo lsof /var/lib/dpkg/lock
> > sudo apt-get update && sudo apt-get -f install
> 
> > Si, todavía te sigue apareciendo el error, manda el resultado de `ls
> -l /var/cache/apt/archives /var/lib/dpkg`.
> 
> On Sat, Jan 19, 2019 at 2:37 PM evangelsan evangelsan
> <evangelsan en telefonica.net> wrote:
> >
> > Con estas órdenes, Braiam,  parece que el sistema realiza un montón de acciones pero al final me sale esto:
> >
> > fugitiv1 en ordenador-desktop:~$ /var/lib/dpkg/lock
> > bash: /var/lib/dpkg/lock: Permiso denegado
> > fugitiv1 en ordenador-desktop:~$ sudo apt-get update
> > Obj:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
> > Obj:2 http://es.archive.ubuntu.com/ubuntu bionic InRelease
> > Obj:3 http://es.archive.ubuntu.com/ubuntu bionic-updates InRelease
> > Leyendo lista de paquetes... Hecho
> >
> > Y luego sigo sin poder eliminar el dichoso xulrunner:
> > error 127
> >
> > Saludos
> >
> > > El 19 de enero de 2019 a las 16:59 Braiam Peguero <braiamp en gmail.com> escribió:
> > >
> > >
> > > > Cuando te aparezca este tipo error simplemente elimina ese archivo (y
> > > > cualquier otro similar que apareciera).
> > >
> > > No solo no es necesario removerlo, es **extremadamente peligroso
> > > hacerlo**. Cada vez que apt/dpkg trabajan, estos se aseguran de que
> > > otras instancias no traten de hacer cambios (ej. dos dpkg
> > > instalando/desinstalando cosas es una excelente manera de obtener
> > > problemas de dependencias). lsof nos dirá exactamente que proceso esta
> > > bloqueando el archivo, para así terminarlo de manera segura (imagina
> > > que aptd esta actualizando algo en background). Remover archivos cada
> > > vez que se te presente un problema es una forma segura de obtener
> > > peores problemas (de la misma manera que muchos dicen "usa sudo"
> > > cuando no tienen permisos para manipular un archivo.
> > >
> > >
> > >
> > >
> > >
> > > On Sat, Jan 19, 2019 at 10:43 AM <mike.alfa.2007 en gmail.com> wrote:
> > > >
> > > > El vie, 18-01-2019 a las 10:24 -0400, Braiam Peguero escribió:
> > > > > > E: No se pudo bloquear /var/cache/apt/archives/lock - open (11:
> > > > > > Recurso no disponible temporalmente)
> > > >
> > > > Cuando te aparezca este tipo error simplemente elimina ese archivo (y
> > > > cualquier otro similar que apareciera). Ese archivo 'lock' es un
> > > > especie de banderilla que se crea cuando un gestor de paquetes empieza
> > > > a trabajar sobre el sistema de paquetes con el fin de que si otro
> > > > gestor de paquetes intentara acceder al sistema de paquetes este
> > > > archivo lo bloqueara, evitando que dos gestores actúen sobre el sistema
> > > > simultáneamente pudiendo dañarlo.
> > > > Este archivo se elimina automáticamente al terminar el gestor de
> > > > paquetes  que lo invocó, sin embargo algunas veces NO se borra
> > > > automáticamente y bloquea todo el sistema de paquetes... Se puede
> > > > borrar con seguridad si no hay ningún administrador de paquetes
> > > > funcionando. Una vez que lo borres reintenta lo que quieres hacer..
> > > >
> > > > sudo rm /var/cache/apt/archives/lock
> > > > sudo apt-get update
> > > >
> > > > Saludos,
> > > > Mauricio J. Adonis C.
> > > >
> > >
> > >
> > > --
> > > Braiam
> 
> 
> 
> -- 
> Braiam



Más información sobre la lista de distribución ubuntu-es