Update problem

Hello, when i try to update the osmc from the tool inside cody i get an error.
i tried with apt-get and there is an error:

sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done E: The package rbp1-image-4.2.3-2-osmc needs to be reinstalled, but I can't find an archive for it.

i have the raspberry pi b+.
Any help?
Thanks in advance

Don’t use apt-get upgrade from the command line, use apt-get dist-upgrade.

sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done E: The package rbp1-image-4.2.3-2-osmc needs to be reinstalled, but I can't find an archive for it.

Thanks, but i have the same error here.

Did you run sudo apt-get update first ?

Have you customised your /etc/apt/sources.list ?

To be honest i don’t think.
This is my file:

deb http://mirrordirector.raspbian.org/raspbian jessie main contrib non-free deb http://apt.osmc.tv jessie main

Just realised that 4.2.3-2 is a fairly old kernel version and is no longer on our servers, that is why your system can’t download it. Why it’s trying to download such an old version, I don’t know. So try the following and post the output:

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

no difference

sudo apt-get update Hit http://apt.osmc.tv jessie InRelease Get:1 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B] Get:2 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB] Get:3 http://mirrordirector.raspbian.org jessie/main armhf Packages [8962 kB] Ign http://apt.osmc.tv jessie/main Translation-en Get:4 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB] Get:5 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.2 kB] Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en Ign http://mirrordirector.raspbian.org jessie/main Translation-en Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en Fetched 9087 kB in 2min 57s (51.2 kB/s) Reading package lists... Done osmc@osmc:~$ sudo apt-get -f dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done E: The package rbp1-image-4.2.3-2-osmc needs to be reinstalled, but I can't find an archive for it.

Can you please upload your debug logs with My OSMC log uploader - something fishing going on that will need full logs to diagnose.

do you mean apt logs?

http://paste.osmc.io/dudavaviza

It’s really difficult to diagnose your problem with only partial logs - please provide full debug logs.

how is named in My OSMC log uploader the full debug log that you need?

Just tick all the options.
But anyhow the fast way is on the CLI. Just use grab-logs -A

this one is ok?

http://paste.osmc.io/tariyohile

thanks in advance

Well I think @DBMandrake might comment in more detail. But it looks like your SD Card is failing. Suggest you make a backup and do a new install (ideally on a new SD card).

dic 13 18:01:44 osmc kernel: EXT4-fs (sdb1): error count since last fsck: 2547
dic 13 18:01:44 osmc kernel: EXT4-fs (sdb1): initial error at time 1429287207: ext4_lookup:1437: inode 39452673
dic 13 18:01:44 osmc kernel: EXT4-fs (sdb1): last error at time 1448194061: ext4_lookup:1584: inode 39452673

Hello, thanks for the reply, sdb1 isn’t the sd, is another storage.
I’m trying to repair it.

osmc@osmc:~$ fsck -fy /dev/sdb1 fsck from util-linux 2.25.2 e2fsck 1.42.12 (29-Aug-2014) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Nubby1: 396/122101760 files (0.5% non-contiguous), 398070807/488377856 blocks osmc@osmc:~$ sudo apt-get update Get:1 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB] Hit http://apt.osmc.tv jessie InRelease Get:2 http://mirrordirector.raspbian.org jessie/main armhf Packages [8963 kB] Get:3 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B] Ign http://apt.osmc.tv jessie/main Translation-en Get:4 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB] Get:5 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.2 kB] Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en Ign http://mirrordirector.raspbian.org jessie/main Translation-en Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en Fetched 9087 kB in 3min 11s (47.3 kB/s) Reading package lists... Done osmc@osmc:~$ sudo apt-get -f dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done E: The package rbp1-image-4.2.3-2-osmc needs to be reinstalled, but I can't find an archive for it.
No way

I can see from your log file that you are currently running the 4.3.0-11-osmc kernel - this was never made available to end users through the normal My OSMC update process, which means you must have added the jessie-devel staging repository to your /etc/apt/sources.list and attempted to update at some point, although I can see you have since removed it.

This is why you are stuck in a situation where it is looking for packages that are no longer available, as our staging repository is for testing only and is often in a “broken” state that is not suitable for end users to update from. Attempting to do so is at your own risk.

It should be possible to recover from this though, the first thing I would try is:

sudo apt-get update
sudo apt-get install -f rbp1-kernel-osmc --reinstall

Post the results of that.

deb http://mirrordirector.raspbian.org/raspbian jessie main contrib non-free deb http://apt.osmc.tv jessie main

this is my source.list and i never used jessie-devel or somethings.

sudo apt-get install -f rbp1-kernel-osmc --reinstall Reading package lists... Done Building dependency tree Reading state information... Done E: The package rbp1-image-4.2.3-2-osmc needs to be reinstalled, but I can't find an archive for it.

No way :frowning:

I can’t see any other way you could have the 4.3.0-11-osmc kernel though - it has not been published to users.

Anyway, try this:

wget http://ftp.fau.de/osmc/osmc/apt/pool/main/r/rbp1-kernel-osmc/rbp1-kernel-osmc_1.9.7_armhf.deb
sudo dpkg -i rbp1-kernel-osmc_1.9.7_armhf.deb
sudo apt-get update
sudo apt-get -f install
sudo apt-get dist-upgrade
`osmc@osmc:~$ wget http://ftp.fau.de/osmc/osmc/apt/pool/main/r/rbp1-kernel-osmc/rbp1-kernel-osmc_1.9.7_armhf.deb
converted 'http://ftp.fau.de/osmc/osmc/apt/pool/main/r/rbp1-kernel-osmc/rbp1-kernel-osmc_1.9.7_armhf.deb' (ANSI_X3.4-1968) -> 'http://ftp.fau.de/osmc/osmc/apt/pool/main/r/rbp1-kernel-osmc/rbp1-kernel-osmc_1.9.7_armhf.deb' (UTF-8)
--2015-12-17 10:07:15--  http://ftp.fau.de/osmc/osmc/apt/pool/main/r/rbp1-kernel-osmc/rbp1-kernel-osmc_1.9.7_armhf.deb
Resolving ftp.fau.de (ftp.fau.de)... 131.188.12.211, 2001:638:a000:1021:21::1
Connecting to ftp.fau.de (ftp.fau.de)|131.188.12.211|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 992 [application/x-debian-package]
Saving to: 'rbp1-kernel-osmc_1.9.7_armhf.deb.1'

rbp1-kernel-osmc_1. 100%[=====================>]     992  --.-KB/s   in 0s     

2015-12-17 10:07:15 (12.8 MB/s) - 'rbp1-kernel-osmc_1.9.7_armhf.deb.1' saved [992/992]

osmc@osmc:~$ sudo dpkg -i rbp1-kernel-osmc_1.9.7_armhf.deb
(Reading database ... 39544 files and directories currently installed.)
Preparing to unpack rbp1-kernel-osmc_1.9.7_armhf.deb ...
Unpacking rbp1-kernel-osmc (1.9.7) over (1.9.7) ...
dpkg: dependency problems prevent configuration of rbp1-kernel-osmc:
 rbp1-kernel-osmc depends on rbp1-image-4.3.0-10-osmc; however:
  Package rbp1-image-4.3.0-10-osmc is not installed.

dpkg: error processing package rbp1-kernel-osmc (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 rbp1-kernel-osmc
osmc@osmc:~$ sudo apt-get update
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://apt.osmc.tv jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Get:1 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]         
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en           
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://apt.osmc.tv jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Fetched 2023 B in 25s (78 B/s)                                                 
Reading package lists... Done
osmc@osmc:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package rbp1-image-4.2.3-2-osmc needs to be reinstalled, but I can't find an archive for it.
osmc@osmc:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package rbp1-image-4.2.3-2-osmc needs to be reinstalled, but I can't find an archive for it.

`

No way :frowning: