Debian apt-get update 404 not found error

My Raspberry Pi 3 is having problems. When I try to run apt-get update, I get a 404 not found error. I am very new to Linux and I am not sure what is wrong.

Here is the error code:

pi@raspberrypi:~ $ sudo apt-get update
Ign jessie InRelease
Ign jessie InRelease
Hit jessie InRelease
Ign jessie Release.gpg
--*cut*--
W: Failed to fetch 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
pi@raspberrypi:~ $ 

My /etc/apt/sources.list file looks like this:

deb jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src jessie main contrib non-free rpi

My /etc/apt/sources.list.d/raspi.list file looks like this:

deb jessie main ui
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src jessie main ui

Please help. I can provide more information if necessary.

Note: Chromium, ping (from bash shell) is working.

Note: The sites that were not able to be fetched are not reachable from another computer using the same WiFi, (nor on the Raspberry Pi 3) e.g. gives a 404 Not Found Error.

has something about a EOL Debian version. Is this my problem?

I have tried a few of the Super User posts on this topic, but none of the solutions that I have tried have worked.

Raspbian GNU/Linux 8.0 (jessie) is the descriptor line from lsb_release -a.

2 Answers

Your version of Debian was obsoleted in 2017 or thereabouts. The Raspberry Pi Foundation doesn't support it anymore.

The simplest way is to start with the latest Raspberry Pi OS, reapply whatever changes you've made (I have a fairly simple set of instructions on serverfault on how I'd do it) and work from there.

Alternatively you could try upgrading the distro, but on single board computers, there's occasionally strangeness that you won't find on x86es, and it depends on the repos still being available.

If you have anything important on the SD card/install please back it up.

Then things get interesting. The 'previous' version of Raspbian is "Stretch". The current one is "Buster", the next one "Bullseye" is about to be released soon - you have Jessie.

In theory, if the repos are still up, you can modify your /etc/apt/sources.list and *.list files in /etc/apt/sources.list.d and replace jessie with stretch, do an apt update then an apt full-upgrade, then do it again, replacing stretch with buster (and soon in another step buster with bullseye) - doing it for one version is mentioned in the docs but jumping multiple versions isn't something I've seen people do - do it in steps. On the bright side, if things fail you have a backup and can work from there.

1

I ran into this same issue but didn't want to go through the work of upgrading versions, so simply updated the mirror link in my sources.list from mirrordirector.raspbian.org to legacy.raspbian.org

sources.list

deb jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src jessie main contrib non-free

Method from this post where someone ran into the same issue using Wheezy - an even older Raspbian version.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like