...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?
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 withsudo 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.While the accepted answer may be correct in some cases, for example in my case I did not touch
squid-deb-proxy
(or anythingsquid
) as this happened.One possible reason for this (at least this was my problem under
bionic
) the way the detection script usesnc
. It does simplync -z $host $port
, but if$host:$port
does not exist,nc
will try forever (or for some very long time), andProxyAutoDetect
will fail. (Interestingly the detect script worked underxenial
.) The solution is to set the timeout (-w $INTEGER
) onnc
, so it times out faster thanProxyAutoDetect
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.