arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
apt-get update error
#1
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. 


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?
Heart LOVE FOR ALL  HATRED FOR NONE Heart
#2
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".
[Image: kNLx30h.png]

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
[Image: zHHqO5Q.png]
#3
@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.
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.
Heart LOVE FOR ALL  HATRED FOR NONE Heart
#4
@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.
Sincere Thanks to VirMach for my VPS9. Also many thanks to Shadow Hosting and cubedata for the experiences I had with their VPSs.
#5
@rudra the problem is in sources.list all other you said i already done. all ok.
Heart LOVE FOR ALL  HATRED FOR NONE Heart
#6
@sagher
i checked all your outputs and then edited the above post accordingly. please do it. thanks
Sincere Thanks to VirMach for my VPS9. Also many thanks to Shadow Hosting and cubedata for the experiences I had with their VPSs.
#7
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:
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.
[Image: zHHqO5Q.png]
#8
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.
Heart LOVE FOR ALL  HATRED FOR NONE Heart
lockThread Closed 


Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
12,584
02-24-2021, 07:17 AM
Last Post: Pacific Spirit
3,017
11-27-2020, 02:53 AM
Last Post: Rehan
13,616
06-17-2020, 04:32 PM
Last Post: Mashiro
3,308
06-11-2020, 06:31 PM
Last Post: rudra

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting