3

...as mentioned in title. The errors are:

Err:107 http://mirror.cogentco.com/pub/linux/ubuntu yakkety-security/main amd64 Packages
  Sub-process ProxyAutoDetect returned an error code (100)

and

E: The repository 'http://archive.canonical.com/ubuntu yakkety Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

Little info on googles about this.

I've tried changing the repo servers, same issue with any I try.

I've also tried disabling ipv6, no avail.

Any ideas what I can do here?

jfacemyer
  • 207
  • 1
  • 10

2 Answers2

3

Did you purge the squid-deb-proxy package or did you just remove it with apt? The latter does remove the package but not the entire configuration. Some parts of the configuration may still be active, you can remove them with sudo dpkg -P squid-deb-proxy.

The corresponding config files can be found in /etc/apt/apt.conf.d/.


You can regenerate your apt sources list at https://repogen.simplylinux.ch/ and then replace your default /etc/apt/sources.list. I would also make a copy of your /etc/apt/sources* for future references, and to possibly get an idea what went wrong there.

LiveWireBT
  • 29,597
albert j
  • 1,463
1

While the accepted answer may be correct in some cases, for example in my case I did not touch squid-deb-proxy (or anything squid) as this happened.

One possible reason for this (at least this was my problem under bionic) the way the detection script uses nc. It does simply nc -z $host $port, but if $host:$port does not exist, nc will try forever (or for some very long time), and ProxyAutoDetect will fail. (Interestingly the detect script worked under xenial.) The solution is to set the timeout (-w $INTEGER) on nc, so it times out faster than ProxyAutoDetect and can try the next proxy.

To find the script you could try to look after its path in the files under /etc/apt/apt.conf.d/.

Note: the script I am using is a slightly modified version of the script posted here: http://askubuntu.com/questions/53443/how-do-i-ignore-a-proxy-if-not-available.