Rbp2-image-4.9.29-10-osmc package install error on OSMC upgrade to Kodi 17.5

Currently trying to upgrade to 17.5 and the apt-get proecess has hit an error:

osmc@BerryMC:~$ sudo apt-get update && sudo apt-get dist-upgrade
Hit http://security.debian.org jessie/updates InRelease
[…]
Fetched 297 kB in 9s (31.3 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up rbp2-image-4.9.29-10-osmc (10) ...
Internal Error: Could not find image (/boot/vmlinuz-4.9.29-10-osmc)
dpkg: error processing package rbp2-image-4.9.29-10-osmc (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of rbp2-kernel-osmc:
 rbp2-kernel-osmc depends on rbp2-image-4.9.29-10-osmc; however:
  Package rbp2-image-4.9.29-10-osmc is not configured yet.

dpkg: error processing package rbp2-kernel-osmc (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 rbp2-image-4.9.29-10-osmc
 rbp2-kernel-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Anyone else seeing this? Any tips to get apt-get back on track?

Seems the new Kernel was not written to boot. First let’s gather some info
Provide URL of grab-logs -A
then try to manually install the kernel sudo apt-get install --reinstall rbp2-image-4.9.29-10-osmc

1 Like

Logs at https://paste.osmc.tv/fetivezafe

$ sudo apt-get install --reinstall rbp2-image-4.9.29-10-osmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for rbp2-image-4.9.29-10-osmc:armh

BTW the system froze during the initial update. I had to power cycle. Now when I try to update from OSMC GUI tool it says: Insufficient Space Free Some Storage Space and Try Again but it seems like there should be plenty of space so I’m confused:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        362M     0  362M   0% /dev
tmpfs           367M  5.1M  361M   2% /run
/dev/mmcblk0p7   28G  2.5G   25G  10% /
tmpfs           367M  8.0K  366M   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           367M     0  367M   0% /sys/fs/cgroup
/dev/mmcblk0p6   79M   57M   23M  72% /boot
/dev/mmcblk0p5   30M  662K   28M   3% /media/SETTINGS
/dev/mmcblk0p1  1.1G  1.0G   90M  92% /media/RECOVERY
tmpfs            74M     0   74M   0% /run/user/1000

Your boot partition is full

Looks like you have a NOOBS install that might be the problem

what is output of ls -lah /boot

1 Like

Yeah I did use noobs:

osmc@BerryMC:~$ ls -lah /boot
total 31M
drwxr-xr-x  7 root root 4.0K Oct 29 20:32 .
drwxr-xr-x 24 root root 4.0K Oct  3  2016 ..
-rwxr-xr-x  1 root root  16K Jul 28 20:03 bcm2708-rpi-0-w.dtb
-rwxr-xr-x  1 root root  15K Jul 28 20:03 bcm2708-rpi-b.dtb
-rwxr-xr-x  1 root root  16K Jul 28 20:03 bcm2708-rpi-b-plus.dtb
-rwxr-xr-x  1 root root  15K Jul 28 20:03 bcm2708-rpi-cm.dtb
-rwxr-xr-x  1 root root  17K Jul 28 20:03 bcm2709-rpi-2-b.dtb
-rwxr-xr-x  1 root root  18K Jul 28 20:03 bcm2710-rpi-3-b.dtb
-rwxr-xr-x  1 root root  16K Jul 28 20:03 bcm2710-rpi-cm3.dtb
-rwxr-xr-x  1 root root 8.9K Jul 28 20:03 bcm2835-rpi-a.dtb
-rwxr-xr-x  1 root root 9.0K Jul 28 20:03 bcm2835-rpi-a-plus.dtb
-rwxr-xr-x  1 root root 9.0K Jul 28 20:03 bcm2835-rpi-b.dtb
-rwxr-xr-x  1 root root 9.2K Jul 28 20:03 bcm2835-rpi-b-plus.dtb
-rwxr-xr-x  1 root root 9.2K Jul 28 20:03 bcm2835-rpi-b-rev2.dtb
-rwxr-xr-x  1 root root 8.9K Jul 28 20:03 bcm2835-rpi-zero.dtb
-rwxr-xr-x  1 root root  11K Jul 28 20:03 bcm2836-rpi-2-b.dtb
-rwxr-xr-x  1 root root  50K Sep 26 06:42 bootcode.bin
-rwxr-xr-x  1 root root   64 Jun  2  2016 cmdline.txt
-rwxr-xr-x  1 root root 126K Oct  8 19:03 config-4.9.29-10-osmc.dpkg-new
-rwxr-xr-x  1 root root 126K Jun 16 14:17 config-4.9.29-8-osmc
-rwxr-xr-x  1 root root 126K Jul 28 18:24 config-4.9.29-9-osmc
-rwxr-xr-x  1 root root  275 Oct 29 20:32 config.txt
drwxr-xr-x  3 root root 2.0K Jul  4 09:47 dtb-4.9.29-8-osmc
drwxr-xr-x  3 root root 2.0K Aug  1 15:01 dtb-4.9.29-9-osmc
-rwxr-xr-x  1 root root 9.7K Sep 26 06:42 fixup_x.dat
-rwxr-xr-x  1 root root 7.4M Aug  1 15:02 kernel.img
-rwxr-xr-x  1 root root 1.5K Sep 26 06:42 LICENCE.broadcom
-rwxr-xr-x  1 root root  287 Jun  2  2016 os_config.json
drwxr-xr-x  2 root root  12K Aug  1 15:01 overlays
drwxr-xr-x  4 root root  512 Oct 24  2016 .Spotlight-V100
-rwxr-xr-x  1 root root 3.8M Sep 26 06:42 start_x.elf
-rwxr-xr-x  1 root root    0 Oct 31  2016 SYSTEM~1.27-
-rwxr-xr-x  1 root root 2.1M Jun 16 15:30 System.map-4.9.29-8-osmc
-rwxr-xr-x  1 root root 2.1M Jul 28 19:33 System.map-4.9.29-9-osmc
drwxr-xr-x  2 root root  512 Oct 24  2016 .Trashes
-rwxr-xr-x  1 root root 4.0K Oct 24  2016 ._.Trashes
-rwxr-xr-x  1 root root 7.4M Jun 16 15:30 vmlinuz-4.9.29-8-osmc
-rwxr-xr-x  1 root root 7.4M Jul 28 19:33 vmlinuz-4.9.29-9-osmc

Try sudo apt-get purge rbp2-image-4.9.29-8-osmc
You might before want to run it with the -s switch to ensure only the old kernel will be remove sudo apt-get purge -s rbp2-image-4.9.29-8-osmc

1 Like

Actually I just saw the name of your device “BerryMC”. Could it be you are using BerryBoot?

$ sudo apt-get purge -s rbp2-image-4.9.29-8-osmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  rbp2-image-4.9.29-8-osmc*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
Purg rbp2-image-4.9.29-8-osmc [8]
Conf rbp2-image-4.9.29-10-osmc (10 OSMC:apt.osmc.tv [armhf])
Conf rbp2-kernel-osmc (3.9.0 OSMC:apt.osmc.tv [armhf])

No luck there. :frowning_face: I’m not using BerryBoot.

That looks ok, now run it without the -s

1 Like

Hmm still no luck

$ sudo apt-get purge rbp2-image-4.9.29-8-osmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  rbp2-image-4.9.29-8-osmc*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 68.0 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 36109 files and directories currently installed.)
Removing rbp2-image-4.9.29-8-osmc (8) ...
Examining /etc/kernel/prerm.d.
Examining /etc/kernel/postrm.d .
Purging configuration files for rbp2-image-4.9.29-8-osmc (8) ...
Examining /etc/kernel/postrm.d .
Setting up rbp2-image-4.9.29-10-osmc (10) ...
Internal Error: Could not find image (/boot/vmlinuz-4.9.29-10-osmc)
dpkg: error processing package rbp2-image-4.9.29-10-osmc (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of rbp2-kernel-osmc:
 rbp2-kernel-osmc depends on rbp2-image-4.9.29-10-osmc; however:
  Package rbp2-image-4.9.29-10-osmc is not configured yet.

dpkg: error processing package rbp2-kernel-osmc (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 rbp2-image-4.9.29-10-osmc
 rbp2-kernel-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Afterward:

osmc@BerryMC:~$ ls -lah /boot
total 22M
drwxr-xr-x  6 root root 4.0K Oct 29 21:43 .
drwxr-xr-x 24 root root 4.0K Oct  3  2016 ..
-rwxr-xr-x  1 root root  16K Jul 28 20:03 bcm2708-rpi-0-w.dtb
-rwxr-xr-x  1 root root  15K Jul 28 20:03 bcm2708-rpi-b.dtb
-rwxr-xr-x  1 root root  16K Jul 28 20:03 bcm2708-rpi-b-plus.dtb
-rwxr-xr-x  1 root root  15K Jul 28 20:03 bcm2708-rpi-cm.dtb
-rwxr-xr-x  1 root root  17K Jul 28 20:03 bcm2709-rpi-2-b.dtb
-rwxr-xr-x  1 root root  18K Jul 28 20:03 bcm2710-rpi-3-b.dtb
-rwxr-xr-x  1 root root  16K Jul 28 20:03 bcm2710-rpi-cm3.dtb
-rwxr-xr-x  1 root root 8.9K Jul 28 20:03 bcm2835-rpi-a.dtb
-rwxr-xr-x  1 root root 9.0K Jul 28 20:03 bcm2835-rpi-a-plus.dtb
-rwxr-xr-x  1 root root 9.0K Jul 28 20:03 bcm2835-rpi-b.dtb
-rwxr-xr-x  1 root root 9.2K Jul 28 20:03 bcm2835-rpi-b-plus.dtb
-rwxr-xr-x  1 root root 9.2K Jul 28 20:03 bcm2835-rpi-b-rev2.dtb
-rwxr-xr-x  1 root root 8.9K Jul 28 20:03 bcm2835-rpi-zero.dtb
-rwxr-xr-x  1 root root  11K Jul 28 20:03 bcm2836-rpi-2-b.dtb
-rwxr-xr-x  1 root root  50K Sep 26 06:42 bootcode.bin
-rwxr-xr-x  1 root root   64 Jun  2  2016 cmdline.txt
-rwxr-xr-x  1 root root 126K Oct  8 19:03 config-4.9.29-10-osmc.dpkg-new
-rwxr-xr-x  1 root root 126K Jul 28 18:24 config-4.9.29-9-osmc
-rwxr-xr-x  1 root root  275 Oct 29 20:32 config.txt
drwxr-xr-x  3 root root 2.0K Aug  1 15:01 dtb-4.9.29-9-osmc
-rwxr-xr-x  1 root root 9.7K Sep 26 06:42 fixup_x.dat
-rwxr-xr-x  1 root root 7.4M Aug  1 15:02 kernel.img
-rwxr-xr-x  1 root root 1.5K Sep 26 06:42 LICENCE.broadcom
-rwxr-xr-x  1 root root  287 Jun  2  2016 os_config.json
drwxr-xr-x  2 root root  12K Aug  1 15:01 overlays
drwxr-xr-x  4 root root  512 Oct 24  2016 .Spotlight-V100
-rwxr-xr-x  1 root root 3.8M Sep 26 06:42 start_x.elf
-rwxr-xr-x  1 root root    0 Oct 31  2016 SYSTEM~1.27-
-rwxr-xr-x  1 root root 2.1M Jul 28 19:33 System.map-4.9.29-9-osmc
drwxr-xr-x  2 root root  512 Oct 24  2016 .Trashes
-rwxr-xr-x  1 root root 4.0K Oct 24  2016 ._.Trashes
-rwxr-xr-x  1 root root 7.4M Jul 28 19:33 vmlinuz-4.9.29-9-osmc
osmc@BerryMC:~$ df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/mmcblk0p6   79M   47M   33M  59% /boot

But upgrade still fails:

$ sudo apt-get -fV dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up rbp2-image-4.9.29-10-osmc (10) ...
Internal Error: Could not find image (/boot/vmlinuz-4.9.29-10-osmc)
dpkg: error processing package rbp2-image-4.9.29-10-osmc (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of rbp2-kernel-osmc:
 rbp2-kernel-osmc depends on rbp2-image-4.9.29-10-osmc; however:
  Package rbp2-image-4.9.29-10-osmc is not configured yet.

dpkg: error processing package rbp2-kernel-osmc (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 rbp2-image-4.9.29-10-osmc
 rbp2-kernel-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks for all your help on this BTW! Let me know if you think it would just be easier to do a new install (I’ve got a spare SD card) and could import all the Kodi & OSMC settings.

Well that is always the best option also if you only use OSMC than recommendation is you use OSMC installer and not NOOBS install.

Maybe try one more time sudo apt-get install --reinstall rbp2-image-4.9.29-10-osmc

1 Like

Couldn’t get any of the apt-get commands to start working so I made a new install and migrated my settings without too much trouble (the bigger pain was the few things I run on Debian outside of OSMC).
Thanks for all the help @fzinken :+1:

1 Like