Skip to content

Instantly share code, notes, and snippets.

@groundcat
Last active August 23, 2019 20:37
Show Gist options
  • Save groundcat/0cb7255dc0c506eaedb5487b8320d79d to your computer and use it in GitHub Desktop.
Save groundcat/0cb7255dc0c506eaedb5487b8320d79d to your computer and use it in GitHub Desktop.
Fix Debian 8 sources.list and 404 issues

Edit sources.list

nano /etc/apt/sources.list

Replace it with:

deb http://ftp.debian.org/debian jessie main contrib
deb http://ftp.debian.org/debian jessie-updates main contrib
deb http://security.debian.org jessie/updates main contrib

To fix 0% download progress issue, edit gai.conf

nano /etc/gai.conf

uncomment this line:

precedence ::ffff:0:0/96  100

To fix 404 issues:

echo 'Acquire::Check-Valid-Until no;' > /etc/apt/apt.conf.d/99no-check-valid-until
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment