RPi2 update failed

I’m trying to update my OSMC but overtime i launch the manual update a error message displays.

I have then tried to update manually.

  • sudo apt-get clean
  • sudo apt-get update
  • sudo apt-get upgrade

This is the message of the upgrade command:

osmc@osmc:~$ sudo apt-get upgrade
Leyendo lista de paquetes… Hecho
Creando árbol de dependencias
Leyendo la información de estado… Hecho
Calculando la actualización… Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios.
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal
rbp2-image-4.4.13-1-osmc rbp2-image-4.4.13-4-osmc rbp2-image-4.4.8-3-osmc
Utilice «apt-get autoremove» para eliminarlos.
Listo
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
1 no instalados del todo o eliminados.
Se utilizarán 0 B de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] s
Configurando rbp2-image-4.4.13-4-osmc (4) …
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.13-4-osmc /boot/vmlinuz-4.4.13-4-osmc
run-parts: executing /etc/kernel/postinst.d/inform-updater 4.4.13-4-osmc /boot/vmlinuz-4.4.13-4-osmc
run-parts: executing /etc/kernel/postinst.d/process-vmlinuz-rbp 4.4.13-4-osmc /boot/vmlinuz-4.4.13-4-osmc
Aborting due to one or more missing device tree overlays.
run-parts: /etc/kernel/postinst.d/process-vmlinuz-rbp exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/rbp2-image-4.4.13-4-osmc.postinst line 391.
dpkg: error al procesar el paquete rbp2-image-4.4.13-4-osmc (–configure):
el subproceso instalado el script post-installation devolvió el código de salida de error 2
Se encontraron errores al procesar:
rbp2-image-4.4.13-4-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas??

thanks for your incredible job.

Never use apt-get upgrade, it will probably damage your installation to the point where a re-install is required.

Always use apt-get dist-upgrade instead.

You could try dist-upgrade, and if that doesn’t work a re-install is your best bet.

He needs to reinstall if he has ran upgrade.

Diste-upgrade does not work.

I’m going to reinstall.

Thanks for the fast response.

It won’t if you previous ran apt-get upgrade, no.