apt-get update error - sagher - 04-02-2019
Hi experts. as you all know i have some critical issues in past with my OS. and i reinstall it as suggest. but after a month i try to use again apt-get update and upgrade command and found these issues.
Code: Err http://ftp.debian.org jessie-updates/main amd64 Packages
404 Not Found
Err http://ftp.debian.org jessie-updates/contrib amd64 Packages
404 Not Found
Err http://ftp.debian.org jessie-updates/non-free amd64 Packages
404 Not Found
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/contrib/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/non-free/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
what does it means?
RE: apt-get update error - Mashiro - 04-02-2019
Error 404 (Not Found) means that the file(s) or folder(s) that the APT package manager was looking for are no longer existing on the server.
And the current situation on the server is indeed how the error describes it. The directory "jessie-updates" doesn't exist on that Debian package server mirror. There is only the folder "jessie".
The reason for that is most likely that Jessie has become "Oldstable" now. Meaning it is being kind of archived as Debian "Stretch" 9 is the latest stable Distro. What that means... of course they're reorganizing the mirror servers.
You need to update your /etc/apt/sources.list with new mirrors from https://pastebin.com/RBQV42Uh
RE: apt-get update error - sagher - 04-02-2019
@HR i got sources.list content from your given link and paste it after taking backup of old one. and then make again update command and it's looks like error are become more then before.
Code: Ign http://ftp.debian.org jessie-backports InRelease
Ign http://ftp.debian.org jessie-backports Release.gpg
Ign http://ftp.debian.org jessie-backports Release
Ign http://deb.debian.org oldstable InRelease
Ign http://deb.debian.org oldstable-updates InRelease
Get:1 http://deb.debian.org oldstable/updates InRelease [44.9 kB]
Get:2 http://deb.debian.org oldstable Release.gpg [2420 B]
Ign http://deb.debian.org oldstable-updates Release.gpg
Get:3 http://deb.debian.org oldstable Release [148 kB]
Get:4 http://deb.debian.org oldstable/updates/main Sources [306 kB]
Get:5 http://deb.debian.org oldstable/updates/main amd64 Packages [664 kB]
Err http://ftp.debian.org jessie-backports/main Sources
404 Not Found
Err http://ftp.debian.org jessie-backports/main amd64 Packages
404 Not Found
Ign http://ftp.debian.org jessie-backports/main Translation-en
Get:6 http://deb.debian.org oldstable/updates/main Translation-en [335 kB]
Ign http://deb.debian.org oldstable-updates Release
Get:7 http://deb.debian.org oldstable/main Sources [7063 kB]
Get:8 http://deb.debian.org oldstable/contrib Sources [50.4 kB]
Get:9 http://deb.debian.org oldstable/non-free Sources [99.2 kB]
Get:10 http://deb.debian.org oldstable/main amd64 Packages [6818 kB]
Get:11 http://deb.debian.org oldstable/contrib amd64 Packages [49.8 kB]
Get:12 http://deb.debian.org oldstable/non-free amd64 Packages [83.2 kB]
Get:13 http://deb.debian.org oldstable/contrib Translation-en [38.3 kB]
Get:14 http://deb.debian.org oldstable/main Translation-en [4581 kB]
Get:15 http://deb.debian.org oldstable/non-free Translation-en [72.0 kB]
Err http://deb.debian.org oldstable-updates/main Sources
Err http://deb.debian.org oldstable-updates/contrib Sources
Err http://deb.debian.org oldstable-updates/non-free Sources
Err http://deb.debian.org oldstable-updates/main amd64 Packages
Err http://deb.debian.org oldstable-updates/contrib amd64 Packages
Err http://deb.debian.org oldstable-updates/non-free amd64 Packages
Err http://deb.debian.org oldstable-updates/main Sources
Err http://deb.debian.org oldstable-updates/contrib Sources
Err http://deb.debian.org oldstable-updates/non-free Sources
Err http://deb.debian.org oldstable-updates/main amd64 Packages
Err http://deb.debian.org oldstable-updates/contrib amd64 Packages
Err http://deb.debian.org oldstable-updates/non-free amd64 Packages
Err http://deb.debian.org oldstable-updates/main Sources
Err http://deb.debian.org oldstable-updates/contrib Sources
Err http://deb.debian.org oldstable-updates/non-free Sources
Err http://deb.debian.org oldstable-updates/main Sources
Err http://deb.debian.org oldstable-updates/contrib Sources
Err http://deb.debian.org oldstable-updates/non-free Sources
Err http://deb.debian.org oldstable-updates/main amd64 Packages
Err http://deb.debian.org oldstable-updates/contrib amd64 Packages
Err http://deb.debian.org oldstable-updates/non-free amd64 Packages
Err http://deb.debian.org oldstable-updates/main Sources
404 Not Found
Err http://deb.debian.org oldstable-updates/contrib Sources
404 Not Found
Err http://deb.debian.org oldstable-updates/non-free Sources
404 Not Found
Err http://deb.debian.org oldstable-updates/main amd64 Packages
404 Not Found
Err http://deb.debian.org oldstable-updates/contrib amd64 Packages
404 Not Found
Err http://deb.debian.org oldstable-updates/non-free amd64 Packages
404 Not Found
Ign http://deb.debian.org oldstable-updates/contrib Translation-en
Ign http://deb.debian.org oldstable-updates/main Translation-en
Ign http://deb.debian.org oldstable-updates/non-free Translation-en
Fetched 20.4 MB in 13s (1510 kB/s)
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/source/Sources 404 Not Found
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/main/source/Sources 404 Not Found
W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/contrib/source/Sources 404 Not Found
W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/non-free/source/Sources 404 Not Found
W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/contrib/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/non-free/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
RE: apt-get update error - rudra - 04-02-2019
@sagher
i would like the output of 'uname -a'
also comment out all the source links. you dont need them. then purge cache and run again. 'apt-get clean'
also check
/etc/resolv.conf
it should have good name servers. like
nameserver 8.8.8.8
nameserver 1.1.1.1
ensure that. then check
'ping google.com'
also make sure port 21, 53, and 80 are open in firewall.
may be do a 'ufw disable' and then try.
replying from mobile. so didnt notice the hits. you dont need to do what i said above. Just keep the links that is successfully connecting and comment out others. I mean all those with error (E) and ignored (Ign). Also commeng out thd source links. src
next clean it.
apt-get clean
now run update.
RE: apt-get update error - sagher - 04-02-2019
@rudra the problem is in sources.list all other you said i already done. all ok.
RE: apt-get update error - rudra - 04-02-2019
@sagher
i checked all your outputs and then edited the above post accordingly. please do it. thanks
RE: apt-get update error - Mashiro - 04-02-2019
Actually, I have no idea what the heck Debian developers are currently doing but so far pretty much any mirror lacks the "oldstable-updates" / "jessie-updates" folders and the "jessie-backports" folders. So about this sources there isn't much you can do other than comment out all lines that have jessie-backports, jessie-updates or oldstable-updates in them.
The sources.list should look like this after that:
Code: deb http://deb.debian.org/debian/ oldstable main contrib non-free
deb-src http://deb.debian.org/debian/ oldstable main contrib non-free
deb http://deb.debian.org/debian-security oldstable/updates main
deb-src http://deb.debian.org/debian-security oldstable/updates main
Run apt-get clean all after that and then do apt-get update. See if there are still any errors.
God knows what exactly is happening on the mirror servers that the "oldstable-updates" / "jessie-updates" and "jessie-backports" repos aren't available at the moment.
RE: apt-get update error - sagher - 04-02-2019
Now as the final solution i update my sourses.list as given and clean all command then update command. and now there is no error up again. thank you @HR.
|