"OSMC Update Error: Error installing: Please report this on the OSMC forum"

Hi Monchote,

Thank you for the link to your fix. I tried both the suggestions

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

and

sudo rm -r /var/lib/apt/lists/*
sudo mkdir /var/lib/apt/lists/partial
sudo apt-get update

This resulted in the following output

osmc@osmc:~$ sudo rm -r /var/lib/apt/lists/*
osmc@osmc:~$ sudo mkdir /var/lib/apt/lists/partial
osmc@osmc:~$ sudo apt-get update
Ign http://staging.apt.osmc.tv jessie InRelease
Err http://staging.apt.osmc.tv jessie Release.gpg
  Something wicked happened resolving 'staging.apt.osmc.tv:http' (-5 - No address associated with hostname)
Ign http://staging.apt.osmc.tv jessie Release
Get:1 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Get:2 http://mirrordirector.raspbian.org jessie/main armhf Packages [8981 kB]
Err http://staging.apt.osmc.tv jessie/main armhf Packages
  Something wicked happened resolving 'staging.apt.osmc.tv:http' (-5 - No address associated with hostname)
Err http://staging.apt.osmc.tv jessie/main Translation-en
  Something wicked happened resolving 'staging.apt.osmc.tv:http' (-5 - No address associated with hostname)
Get:3 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
Get:4 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 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 9104 kB in 1min 29s (101 kB/s)
W: Failed to fetch http://staging.apt.osmc.tv/dists/jessie/Release.gpg  Something wicked happened resolving 'staging.apt.osmc.tv:http' (-5 - No address associated with hostname)

W: Failed to fetch http://staging.apt.osmc.tv/dists/jessie/main/binary-armhf/Packages  Something wicked happened resolving 'staging.apt.osmc.tv:http' (-5 - No address associated with hostname)

W: Failed to fetch http://staging.apt.osmc.tv/dists/jessie/main/i18n/Translation-en  Something wicked happened resolving 'staging.apt.osmc.tv:http' (-5 - No address associated with hostname)

E: Some index files failed to download. They have been ignored, or old ones used instead.
osmc@osmc:~$ more /etc/ap
apm/ apt/
osmc@osmc:~$ more /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian jessie main contrib non-free
deb http://staging.apt.osmc.tv jessie main

But I didn’t get very far and I still get the error “OSMC Update Error: Error installing: Please report this on the OSMC forum” when I restart my rpi2 and try the update again. The “sudo apt-get dist-upgrade” did update a bunch of things but I didn’t capture what it said It had updated. But I guess that worked because if I try and run it again it just says that there is nothing to update anymore

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I am far from an expert with linux but it does seem to me that it is having trouble connecting to “staging.apt.osmc.tv

I tried from my windows machine to reach that address but it failed.

C:\Users\Neil>tracert staging.apt.osmc.tv
Unable to resolve target system name staging.apt.osmc.tv.

I have uploaded all the logs this time here http://paste.osmc.io/nabeviwuja in the hope that it might shine some light on my problem.

Thanks in advanace to anyone who helps out…

Regards
Neil.