I leave my RPi2 RC3 device on all the time, set to automatically check for updates once a day. For the past 4 or 5 days now, whenever I turn on my TV I see an “OSMC Update Error” message. Screenshot is below.
Any ideas what is causing this? Please let me know if any output log might be useful.
I was experiencing this issue with my Vero. Yesterday, finally, I was able to solve it.
After some reading in the forum, I thought it had to to with the selected skin I was using, which was Aeon Nox. Switched to OSMC, but no luck.
Then I noticed that I had the Internet connection frequently toggling from None to Occupied. So, I disabled the ethernet conection and enabled the Wireless one.
Voilá!!! After a reboot, I manually checked for an update, which was successfully applied, and after another reboot I switched again to the ethernet connection and to the Aeon Nox skin.
I just enabled Kodi debug mode, I think (Settings >> System >> Debugging >> enable). I will upload logs next time I get the error. I am not sure your idea about running manual update will work here, since manual update always works fine. Whenever I see the error, I click “OK” and then just run manually. The manual process always seems successful, without any error message windows.
This is interesting. I use Ethernet, and have no wifi dongle. I did notice in the past that the internet was listed as “no internet” or “disconnected” (something like that, anyways) under the network settings. Seemed strange, but I didn’t really think more of it. Anyways, I checked again now: internet says “connected” and there was no error on the screen this morning.
Thanks - the error seems to be caused by the updater failing to lock the APT cache.
This normally means that some other program is already trying to run an update or install an app - is there anything else installed on your system that might be trying to run updates or install software ?
I don’t think so, but I am not certain how to check this.
I have a pretty barebones setup - just standard OSMC and a handful of external addons (backup, global search, keymap editor). I did not see anything in those program settings that would indicate auto updating or installing software. And is it strange that this conflict would happen every single day?
I also use the OSMC backup app, set to run a backup before checking for updates. Not sure if this would cause any issues. It seems like the backup process completes successfully, because I can see a new tar.gz file at the time the backup was set. For example, update was set for 9AM, and I can see a file today: “OSMCBACKUP_2015_06_23_09_00_18.tar.gz”
If there was, that should be locking /var/lib/apt/lists/lock and we should not proceed if that’s not available, and I think we would’ve backed off the update before. Instead it seems like the schedule may be locking and then in another thread trying to obtain the lock again?
@DBMandrake@Karnage Glad to hear it! To be clear, is it the OSMC backup feature or the separate “backup” add-on causing the conflict? (I use both.) Was the cause that backup is trying to run an app update as part of the backup process?
The problem reported in this thread a year ago has long ago been fixed, so while you might appear to have similar symptoms it will not have the same cause. The debug log you posted does not show the same problem as depicted in the original post.
What happens if you update from ssh like so ?
sudo apt-get update
sudo apt-get dist-upgrade
If this fails, please post the reported errors.
Also I notice you have added an APT repository:
deb http://www.deb-multimedia.org sid main non-free
Do you still have an update error if you remove this repository ? If so it will be an issue with the repository.