Update Error at Rasperry PI

OSMC Reports an error: It says that "rbp1-image-4.4.0-1-osmc " ist not correctly installed.
Here are my trys to reinstall the Image “vmlinuz-4.4.0-1-osmc”

osmc@osmc:~/.kodi/temp$ sudo apt-get install rbp1-image-4.4.0-1-osmc
Reading package lists… Done
Building dependency tree
Reading state information… Done
rbp1-image-4.4.0-1-osmc is already the newest version.
rbp1-image-4.4.0-1-osmc set to manually installed.
The following packages were automatically installed and are no longer required:
apt-transport-https armv6l-libafpclient-osmc libbluray1 libcurl3-gnutls libfile-copy-recursive-perl libflac8 libhdb9-heimdal libkdc2-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6
python-dnspython rbp1-image-4.3.3-3-osmc rbp1-image-4.4.1-1-osmc samba samba-dsdb-modules tdb-tools update-inetd
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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 rbp1-image-4.4.0-1-osmc (1) …
Internal Error: Could not find image (/boot/vmlinuz-4.4.0-1-osmc)
dpkg: error processing package rbp1-image-4.4.0-1-osmc (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
rbp1-image-4.4.0-1-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

osmc@osmc:/boot$ sudo apt-get install vmlinuz-4.4.0-1-osmc
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package vmlinuz-4.4.0-1-osmc
E: Couldn’t find any package by regex ‘vmlinuz-4.4.0-1-osmc’
osmc@osmc:/boot$ sudo apt-get install vmlinuz-4.4.0-1-osmc
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package vmlinuz-4.4.0-1-osmc
E: Couldn’t find any package by regex ‘vmlinuz-4.4.0-1-osmc’

osmc@osmc:~/.kodi/temp$ sudo apt-get update

removed Links

Fetched 2023 B in 22s (91 B/s)
Reading package lists… Done
osmc@osmc:~/.kodi/temp$ sudo apt-get 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, 0 B of additional disk space will be used.
Setting up rbp1-image-4.4.0-1-osmc (1) …
Internal Error: Could not find image (/boot/vmlinuz-4.4.0-1-osmc)
dpkg: error processing package rbp1-image-4.4.0-1-osmc (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
rbp1-image-4.4.0-1-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Please can you help me, the error still exists

Regards Marcus

Try adding --reinstall to the apt-get command to reinstall something you already have installed

sudo apt-get install --reinstall rbp1-image-4.4.0-1-osmc

Hi shadow,
i tried this, here the result:

osmc@osmc:~$ sudo apt-get install --reinstall rbp1-image-4.4.0-1-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.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for rbp1-image-4.4.0-1-osmc:armhf


Regards Marcus

You are trying to install an old kernel that is not available anymore.
Try

sudo apt-get update
sudo apt-get dist-upgrade

Hi frzinken,
tried this also … here the result:

osmc@osmc:~$ sudo apt-get update
links removed-- i am a new user
Get:1 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
links removed – i am a new user can only Display 3 links —
Fetched 2023 B in 21s (93 B/s)
Reading package lists… Done
osmc@osmc:~$ sudo apt-get 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.
1 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 rbp1-image-4.4.0-1-osmc (1) …
Internal Error: Could not find image (/boot/vmlinuz-4.4.0-1-osmc)
dpkg: error processing package rbp1-image-4.4.0-1-osmc (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
rbp1-image-4.4.0-1-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)


Regards Marcus

Something is wrong there, post full logs with grab-logs -A

Hi frzinken

done:

osmc@osmc:~$ grab-logs -A
Logs successfully uploaded.
Logs available at http://paste.osmc.io/tevulixibu

Regards Marcus

Ok, you have a USB install and looks like you have corruption issues with your USB drive. This could either be caused by power issues or other problems with the USB drive.
You would need to fix that problems first and then you would need to check if your install can be saved or you need to start fresh.

Hi frzinken,
i have an USB Memory Stick installed. How can i repair it?

ive tried:

osmc@osmc:/dev$ sudo blkid -o list -w /dev/null
device fs_type label mount point UUID

/dev/mmcblk0
(in use)
/dev/mmcblk0p1
vfat /boot 116D-8B0A
/dev/sda1 ext4 / 2243c720-5c4f-4d8c-b3f7-b082faa69c8f
/dev/sdb1 vfat PS3 /media/PS3

and fsck dont work…

osmc@osmc:/dev$ fsck.ext4 /dev/sda1
e2fsck 1.42.12 (29-Aug-2014)
/dev/sda1 is mounted.
e2fsck: Cannot continue, aborting.

Regards Marcus

You cannot fsck a mounted disk.

To do an fsck the partition needs to be unmounted. Suggest you go into recovery console by holding down Shift while booting and check from there (actually that will already run an fsck).

But as mentioned I believe you might have connectivity/power issues with your USB Stick so running fsck might only partly solve your issue.
You might also want to try to add max_usb_current=1 to /boot/config.txt assuming that you are going to connect more USB devices, requires good power supply.

That advice is actually out of date now.

All recent versions of OSMC (from about December on) run an automatic fsck on the root file system during boot. Holding down shift for the recovery console no longer does an fsck as it would be redundant.

If you want to force a full in depth fsck of the root file system (instead of a quick check) you can add forcefsck to /boot/cmdline.txt then reboot. (Then remove it again when finished so it doesn’t do a full, slow scan every boot)

Hi frzinken , Hi DBMandrake,
Ive added "max_usb_current=1 to /boot/config.txt " and insert “forcefsck” to cmdline.txt. Now at boot fsck Report “all ok” but after inserting
sudo apt-get update
sudo apt-get dist-upgrade
ive get the same issues.

osmc@osmc:~$ sudo apt-get 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.
1 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 rbp1-image-4.4.0-1-osmc (1) …
Internal Error: Could not find image (/boot/vmlinuz-4.4.0-1-osmc)
dpkg: error processing package rbp1-image-4.4.0-1-osmc (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
rbp1-image-4.4.0-1-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)


Regards Marcus

I’m just curious if this is still a valid option (adding forcefsck to cmdline.txt)… I tried that but it didn’t seem to actually run a scan. Thanks.

Yes it is still valid. Make sure it’s on the same line and separated by a space.

The scan runs before the blue OSMC splash screen appears while the screen is still black and may not be visible if your TV has too much overscan, as it is just a small bit of text in the top left corner.

Oh… on the same line. Ok… that explains it. Thanks :slight_smile: