1

In a way my question is an inversion of this question.

I'm trying to do sudo apt-get install jags from the terminal, and it selects mirrors close to me, but then it says "Not Found".

I'd like to select a mirror that isn't close to me, but which actually works. Can I do that?

This seems to point at a solution, but it won't work for me because I can only access the terminal.

1 Answers1

2

If you only have terminal, you have to manually edit your /etc/apt/sources.list file. There's no other way unfortunately to do this.

You'll have to replace the domain names in the sources.list of the current mirror with whatever mirror you wish to use. The standard archives tend to be the most updated source with updated packages, however it may not be the closest to you (archive.ubuntu.com).

However, a 404 error suggests that there's a newer package version or such available; make sure to run sudo apt-get update first, then try and install the package, to rule out the mirror you're using as the actual problem.

Thomas Ward
  • 74,764
  • 1
    How do you find the domain names one can use to update /etc/apt/sources.list? I'm doing that in a Docker container and right now my sources.list contains these deb http://deb.debian.org/debian stretch main, deb http://security.debian.org/debian-security stretch/updates main, deb http://deb.debian.org/debian stretch-updates main – Alexis.Rolland Feb 08 '20 at 13:46