Error: Sub-process /usr/bin/dpkg returned an error code (2)

Trying to upgrade
Logs:
http://paste.osmc.io/uyosifakim

Screenshot:

The error that you have referred to is shown in your log as occurring many times from the 16th of April right up until the 25th of April.

There are no update errors for todays update in the log you posted.

For the problem you are reporting you will need to enable debug mode in Kodi, try to update and then upload a full set of debug logs from My OSMC.

Ok. no problem. Last update I didn’t had that. Maybe you improved the check of errors in log.

No, I just looked at the apt history.log for the error message you posted, and also noted that the last time APT was called was the 9th of September - so the error you are seeing is causing the update to abort before APT is even run, hence needing a Kodi debug log.

not errors running from shell there’s no errors except with rbp2-image-4.2.1-1-osmc (1) …

osmc@osmc:~$ sudo apt-get dist-upgrade
Lendo listas de pacotes… Pronto
Construindo árvore de dependências
Lendo informação de estado… Pronto
Calculando atualização… Os seguintes pacotes foram instalados automaticamente e já não são necessários:
rbp2-image-4.1.3-2-osmc rbp2-image-4.1.5-1-osmc
Utilize ‘apt-get autoremove’ para os remover.
Pronto
Os NOVOS pacotes a seguir serão instalados:
apt-transport-https libgif4 libnss-myhostname rbp2-image-4.2.1-1-osmc
Os pacotes a seguir serão atualizados:
armv7-connman-osmc armv7-eventlircd-osmc armv7-libnfs-osmc armv7-network-osmc base-files-osmc diskmount-osmc libicu52 libldap-2.4-2 libsasl2-2
libsasl2-modules-db libvdpau1 linux-libc-dev mediacenter-addon-osmc mediacenter-skin-osmc perftune-osmc rbp-bootloader-osmc rbp-userland-dev-osmc
rbp-userland-osmc rbp2-device-osmc rbp2-kernel-osmc rbp2-mediacenter-osmc rpcbind
22 pacotes atualizados, 4 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
É preciso baixar 0 B/79,7 MB de arquivos.
Depois desta operação, 70,4 MB adicionais de espaço em disco serão usados.
Você quer continuar? [S/n] S
Pré-configurando pacotes …
(Lendo banco de dados … 33486 ficheiros e directórios actualmente instalados.)
A preparar para desempacotar …/libsasl2-modules-db_2.1.26.dfsg1-13+deb8u1_armhf.deb …
A descompactar libsasl2-modules-db:armhf (2.1.26.dfsg1-13+deb8u1) sobre (2.1.26.dfsg1-13) …
A preparar para desempacotar …/libsasl2-2_2.1.26.dfsg1-13+deb8u1_armhf.deb …
A descompactar libsasl2-2:armhf (2.1.26.dfsg1-13+deb8u1) sobre (2.1.26.dfsg1-13) …
A preparar para desempacotar …/libldap-2.4-2_2.4.40+dfsg-1+deb8u1_armhf.deb …
A descompactar libldap-2.4-2:armhf (2.4.40+dfsg-1+deb8u1) sobre (2.4.40+dfsg-1) …
A seleccionar pacote anteriormente não seleccionado libgif4:armhf.
A preparar para desempacotar …/libgif4_4.1.6-11_armhf.deb …
A descompactar libgif4:armhf (4.1.6-11) …
A preparar para desempacotar …/libicu52_52.1-8+deb8u3_armhf.deb …
A descompactar libicu52:armhf (52.1-8+deb8u3) sobre (52.1-8+deb8u2) …
A preparar para desempacotar …/libvdpau1_0.8-3+deb8u1_armhf.deb …
A descompactar libvdpau1:armhf (0.8-3+deb8u1) sobre (0.8-3) …
A seleccionar pacote anteriormente não seleccionado rbp2-image-4.2.1-1-osmc.
A preparar para desempacotar …/rbp2-image-4.2.1-1-osmc_1_armhf.deb …
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/preprocess-rbp 4.2.1-1-osmc /boot/vmlinuz-4.2.1-1-osmc
Done.
A descompactar rbp2-image-4.2.1-1-osmc (1) …
A seleccionar pacote anteriormente não seleccionado libnss-myhostname:armhf.
A preparar para desempacotar …/libnss-myhostname_0.3-9_armhf.deb …
A descompactar libnss-myhostname:armhf (0.3-9) …
A preparar para desempacotar …/armv7-connman-osmc_1.3.0-1_armhf.deb …
A descompactar armv7-connman-osmc (1.3.0-1) sobre (1.2.9-3) …
A preparar para desempacotar …/armv7-network-osmc_1.5.7_armhf.deb …
A descompactar armv7-network-osmc (1.5.7) sobre (1.5.6) …
A preparar para desempacotar …/base-files-osmc_1.5.9_all.deb …
A descompactar base-files-osmc (1.5.9) sobre (1.5.6) …
A preparar para desempacotar …/diskmount-osmc_1.4.0_all.deb …
A descompactar diskmount-osmc (1.4.0) sobre (1.3.8) …
A preparar para desempacotar …/perftune-osmc_1.1.4_all.deb …
A descompactar perftune-osmc (1.1.4) sobre (1.1.3) …
A preparar para desempacotar …/rbp-bootloader-osmc_1.1.8-0_armhf.deb …
A descompactar rbp-bootloader-osmc (1.1.8-0) sobre (1.1.4-0) …
A preparar para desempacotar …/rbp-userland-osmc_1.1.6-1_armhf.deb …
A descompactar rbp-userland-osmc (1.1.6-1) sobre (1.1.3-1) …
A preparar para desempacotar …/rbp-userland-dev-osmc_1.1.6-1_armhf.deb …
A descompactar rbp-userland-dev-osmc (1.1.6-1) sobre (1.1.3-1) …
A preparar para desempacotar …/mediacenter-addon-osmc_3.0.491_all.deb …
A descompactar mediacenter-addon-osmc (3.0.491) sobre (3.0.39) …
A preparar para desempacotar …/mediacenter-skin-osmc_3.0.8-1_all.deb …
A descompactar mediacenter-skin-osmc (3.0.8-1) sobre (3.0.7-1) …
A preparar para desempacotar …/armv7-libnfs-osmc_1.9.8-1_armhf.deb …
A descompactar armv7-libnfs-osmc (1.9.8-1) sobre (1.9.6-1) …
A preparar para desempacotar …/rbp2-mediacenter-osmc_15.1.0-20_armhf.deb …
A descompactar rbp2-mediacenter-osmc (15.1.0-20) sobre (15.1.0-9) …
A preparar para desempacotar …/rbp2-kernel-osmc_1.7.2_armhf.deb …
A descompactar rbp2-kernel-osmc (1.7.2) sobre (1.6.2) …
A seleccionar pacote anteriormente não seleccionado apt-transport-https.
A preparar para desempacotar …/apt-transport-https_1.0.9.8.1_armhf.deb …
A descompactar apt-transport-https (1.0.9.8.1) …
A preparar para desempacotar …/rbp2-device-osmc_1.2.4_armhf.deb …
A descompactar rbp2-device-osmc (1.2.4) sobre (1.2.3) …
A preparar para desempacotar …/rpcbind_0.2.1-6+deb8u1_armhf.deb …
A descompactar rpcbind (0.2.1-6+deb8u1) sobre (0.2.1-6) …
A preparar para desempacotar …/armv7-eventlircd-osmc_1.1.8_armhf.deb …
A descompactar armv7-eventlircd-osmc (1.1.8) sobre (1.1.6) …
A preparar para desempacotar …/linux-libc-dev_3.16.7-ckt11-1+deb8u4_armhf.deb …
A descompactar linux-libc-dev:armhf (3.16.7-ckt11-1+deb8u4) sobre (3.16.7-ckt11-1+deb8u3) …
A processar ‘triggers’ para dbus (1.8.20-0+deb8u1) …
A processar ‘triggers’ para mime-support (3.58) …
A processar ‘triggers’ para systemd (215-17+deb8u2) …
Configurando libsasl2-modules-db:armhf (2.1.26.dfsg1-13+deb8u1) …
Configurando libsasl2-2:armhf (2.1.26.dfsg1-13+deb8u1) …
Configurando libldap-2.4-2:armhf (2.4.40+dfsg-1+deb8u1) …
Configurando libgif4:armhf (4.1.6-11) …
Configurando libicu52:armhf (52.1-8+deb8u3) …
Configurando libvdpau1:armhf (0.8-3+deb8u1) …
Configurando rbp2-image-4.2.1-1-osmc (1) …

Hmm. There is a symbolic link /lib/modules/4.2.1-1-osmc/build
However, I can not read it: Arquivo ou diretório não encontrado
Therefore, I am deleting /lib/modules/4.2.1-1-osmc/build

Hmm. The package shipped with a symbolic link /lib/modules/4.2.1-1-osmc/source
However, I can not read the target: Arquivo ou diretório não encontrado
Therefore, I am deleting /lib/modules/4.2.1-1-osmc/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.2.1-1-osmc /boot/vmlinuz-4.2.1-1-osmc
run-parts: executing /etc/kernel/postinst.d/inform-updater 4.2.1-1-osmc /boot/vmlinuz-4.2.1-1-osmc
run-parts: executing /etc/kernel/postinst.d/process-vmlinuz-rbp 4.2.1-1-osmc /boot/vmlinuz-4.2.1-1-osmc
Configurando libnss-myhostname:armhf (0.3-9) …
First installation detected…
Checking NSS setup…
Configurando armv7-connman-osmc (1.3.0-1) …
Configurando armv7-network-osmc (1.5.7) …
Configurando base-files-osmc (1.5.9) …
Configurando diskmount-osmc (1.4.0) …
Configurando perftune-osmc (1.1.4) …
Configurando rbp-bootloader-osmc (1.1.8-0) …
Configurando rbp-userland-osmc (1.1.6-1) …
Configurando rbp-userland-dev-osmc (1.1.6-1) …
Configurando mediacenter-addon-osmc (3.0.491) …
Configurando mediacenter-skin-osmc (3.0.8-1) …
Configurando armv7-libnfs-osmc (1.9.8-1) …
Configurando rbp2-mediacenter-osmc (15.1.0-20) …
Configurando rbp2-kernel-osmc (1.7.2) …
Configurando apt-transport-https (1.0.9.8.1) …
Configurando rbp2-device-osmc (1.2.4) …
Configurando rpcbind (0.2.1-6+deb8u1) …
Configurando armv7-eventlircd-osmc (1.1.8) …
Configurando linux-libc-dev:armhf (3.16.7-ckt11-1+deb8u4) …
A processar ‘triggers’ para libc-bin (2.19-18+deb8u1) …

I don’t see any errors with Linux 4.2.1. Looks like you upgraded fine.

It would have been helpful if you had tried to upgrade within Kodi with debugging enabled. Because you have now upgraded, we will not be able to find out if there was a bug in My OSMC or not.

Please follow our suggestions in future for the benefit of others. Your issue is resolved for now, but for all we know, this may affect other users or happen again in the future

Sam

sorry @sam_nazarko.

but there’s an error here:

Hmm. There is a symbolic link /lib/modules/4.2.1-1-osmc/build
However, I can not read it: Arquivo ou diretório não encontrado
Therefore, I am deleting /lib/modules/4.2.1-1-osmc/build

Hmm. The package shipped with a symbolic link /lib/modules/4.2.1-1-osmc/source
However, I can not read the target: Arquivo ou diretório não encontrado
Therefore, I am deleting /lib/modules/4.2.1-1-osmc/source

That is not an error

Sam

1 Like