Quantcast
Viewing all articles
Browse latest Browse all 5116

Troubleshooting • cannot get APT to update

I have tried doing an APT update on fresh installs of bookworm bullseye and buster and it fails to connect to the repository.
I have tried changing the repository to a mirror site but it doesn't make a difference.

The internet connection is working. I can ping google and the repository site.

I first tried bookworm version but couldn't get vnc to work, so abandoned that and went back to a legacy bullseye. I could enable vnc as usual but tried to install "motion" as i have done in the past and it was not recognised.

It seems that APT refuses to work on my internet connection. I have successfully used it in the past. I have never had any problems in connecting to the internet from the PI using ethernet or wifi.

Code:

sudo apt-get update Err:1 http://www.mirrorservice.org/sites/archive.raspbian.org/raspbian buster InRelease  Connection failed [IP: 212.219.56.184 80]Err:2 http://archive.raspberrypi.org/debian buster InRelease  Connection failed [IP: 46.235.230.122 80]Reading package lists... Done                 W: Failed to fetch http://www.mirrorservice.org/sites/archive.raspbian.org/raspbian/dists/buster/InRelease  Connection failed [IP: 212.219.56.184 80]W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease  Connection failed [IP: 46.235.230.122 80]W: Some index files failed to download. They have been ignored, or old ones used instead.
this is the sources file for APT which i changed:

Code:

#deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi# Uncomment line below then 'apt-get update' to enable 'apt-get source'deb-src http://www.mirrorservice.org/sites/archive.raspbian.org/raspbian/   buster main contrib non-free rpi

Statistics: Posted by pjzpi — Sun Dec 22, 2024 3:07 pm — Replies 1 — Views 28



Viewing all articles
Browse latest Browse all 5116

Trending Articles