Debian 8 jessie repo error

On a Debian 8 server, when running apt update, got following error

W: Failed to fetch http://mirror.com/debian/dists/jessie/main/source/Sources  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie/non-free/source/Sources  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie/contrib/source/Sources  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie/main/binary-amd64/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie/non-free/binary-amd64/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie/contrib/binary-amd64/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie/main/binary-i386/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie/non-free/binary-i386/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie/contrib/binary-i386/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie-updates/main/source/Sources  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie-updates/contrib/source/Sources  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie-updates/non-free/source/Sources  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie-updates/contrib/binary-amd64/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie-updates/non-free/binary-amd64/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie-updates/main/binary-i386/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie-updates/contrib/binary-i386/Packages  404  Not Found [IP: 185.194.238.133 80]
W: Failed to fetch http://mirror.com/debian/dists/jessie-updates/non-free/binary-i386/Packages  404  Not Found [IP: 185.194.238.133 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

To fix it, run

cp /etc/apt/sources.list /etc/apt/sources.list.backup
vi /etc/apt/sources.list

Add following content to the file

Advertisement

deb http://cdn-fastly.deb.debian.org/debian/ jessie main
deb-src http://cdn-fastly.deb.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
deb http://archive.debian.org/debian jessie-backports main
deb-src http://archive.debian.org/debian jessie-backports main

Create

vi /etc/apt/apt.conf

Add

Acquire::Check-Valid-Until "false";
Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement