Error updating osmc

Hi

osmc is displaying an error message while updating and I should report to forum
see log: https://paste.osmc.tv/dagakiqixe

thanks

Looks like the last update was done over a month ago. Can you post the output of

sudo apt-get update

then

sudo apt-get dist-upgrade

update:
it:7 raspotify | A Spotify Connect client that mostly Just Works™ jessie InRelease
Fetched 91,0 kB in 8s (11,2 kB/s)
Global symbol “%optc” requires explicit package name (did you forget to declare “my %optc”?) at /usr/bin/apt-show-versions line 293.
syntax error at /usr/bin/apt-show-versions line 293, near “$optc{”
Unrecognized character \xFD; marked by ← HERE after tc{‘regex’<-- HERE near column 38 at /usr/bin/apt-show-versions line 293.
Reading package lists… Done
E: Problem executing scripts APT::Update::Post-Invoke-Success ‘test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i’
E: Sub-process returned an error code

not sure if this is caused by raspotify

Your SD card seems corrupted.

sudo apt-get dist-upgradeReading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
rbp2-mediacenter-osmc
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/69,6 MB of archives.
After this operation, 27,6 kB of additional disk space will be used.
Do you want to continue? [Y/n] y

just running the update

will check fsck for sd card

did touch/forcefsck
after reboot , where do I see result of check?

still having the update error

osmc@DEVosmc18_ST_5696RPI2B:~$ 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.

That means you’re up to date.

Hi, thanks, I know that, but I still have the error in OSMC
saying update error report to forum?

see log:
https://paste.osmc.tv/dogedakore

thx for helping

I don’t see where you did:

sudo apt update

you just did dist-upgrade.

Try the update again and then the dist-upgrade, so:

sudo apt update
sudo apt dist-upgrade

I did it earlier having an error

Hit:5 Index of /osmc/osmc/download/dev/gmc-18 gmc-18 InRelease
Global symbol “%optc” requires explicit package name (did you forget to declare “my %optc”?) at /usr/bin/apt-show-versions line 293.
syntax error at /usr/bin/apt-show-versions line 293, near “$optc{”
Unrecognized character \xFD; marked by ← HERE after tc{‘regex’<-- HERE near column 38 at /usr/bin/apt-show-versions line 293.

Then as originally suggested, it looks like you have a corrupt/dying SD card. I’d suggest backup you settings and a new install on a new SD card.

ok, will check that, thanks

Hi,

It seems like your SD card may be problematic.

Some SD cards are not genuine or have a lower capacity than advertised. Some simply fail over time.

Symptoms of SD cards not working correctly are:

  • Read-only behaviour, or changes made not persisting
  • A filesystem corruption error

Symptoms of counterfeit SD cards are:

  • Writing works until a certain filesystem size is reached, thereafter, writes seem to cause issues where existing data is lost or newly written data is not preserved.
  • SD card fails after a short amount of time.

Counterfeit cards are usually found on Amazon and eBay.

SD cards have a limited lifespan. I recommend you change SD card and suspect that issues will no longer persist with a good card. If you would like to be a good quality SD card purpose manufactured for OSMC, then you can find one in the Store.

1 Like