Update issues (Waiting for headers)

Hi All,

I have used OSMC for as long as I can remember now without any major issues. I noticed a few days ago that my Pi was stuck trying to run an auto-update. I SSH’d in to try and manually run the update and can see the following:

osmc@osmc:~$ sudo apt-get update
Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
Ign:2 http://ftp.debian.org/debian stretch InRelease
Hit:3 http://repozytorium.mati75.eu/raspbian jessie-backports InRelease
0% [Waiting for headers] [Waiting for headers] [1 InRelease 0 B/94.3 kB 0%]

I’ve restarted, gone to the url manually and confirmed my device has a valid internet connection (ping google.com returns valid results). However it never seems to succesfully download the headers to get past this step.

Any recommendations?

Note, I was following the command line update instructions - this also occurs when I run it via the OSMC update (My OSMC → Updater → Manual Controls → Check for updates now)

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

Looks like the repozytorium repository is down. (plus you have it set to jessie instead of stretch). Remove that from your sources.list and try again.

How do I remove that from my sources list? I don’t think I have ever changed my sources list.

You had to have added it. It would not be there otherwise.

ssh into your system and

sudo /etc/apt/sources.list

and remove the offending line.

Thanks, I have no idea how/when i added that.

I’ve re-run the command and still get stuck

osmc@osmc:~$ sudo apt-get update
Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
Ign:2 http://ftp.debian.org/debian stretch InRelease
0% [Waiting for headers] [Waiting for headers] [1 InRelease 0 B/94.3 kB 0%]

Thanks for the help. No idea what I’ve done.

Opps, typo:

sudo nano /etc/apt/sources.list

I used vi to edit the file and :wq

It has the following - do I need to adjust it further?

deb http://ftp.debian.org/debian stretch main contrib non-free

deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free

deb http://apt.osmc.tv stretch main

#deb http://repozytorium.mati75.eu/raspbian jessie-backports main contrib non-fr
#deb-src http://repozytorium.mati75.eu/raspbian jessie-backports main contrib no
~

I commented out the offending line

Yep, that’s OK.

Any idea why it still bugs out?

Everything looks OK now. Suggest posting logs, and testing your internet connection from the Pi.

As recommended.

Get:8 http://security.debian.org stretch/updates Release [92.7 kB]
Err:9 http://ftp.debian.org/debian stretch-updates Release
  Connection failed [IP: 130.89.148.12 80]

however, when I ping the IP directly it works.

osmc@osmc:~$ ping 130.89.148.12
PING 130.89.148.12 (130.89.148.12): 56 data bytes
64 bytes from 130.89.148.12: seq=0 ttl=48 time=309.608 ms
64 bytes from 130.89.148.12: seq=1 ttl=48 time=310.222 ms

Will upload logs shortly.

Solved the second problem myself, OpenVPN apparently caused the issue from the updates running successfully.

Hope this helps someone who needs to update in the future and has OpenVPN running.

Thanks for helping with my first issue.

Please close this issue

1 Like