Linux Mint:无法进行 apt-get 更新

Linux Mint:无法进行 apt-get 更新

我在代理内使用 Linux Mint。我已经在中配置了代理设置/etc/environment我已经为整个系统https://askubuntu.com/questions/257290/configure-proxy-for-apt)来配置 apt 代理。

但是,当我尝试打电话时 sudo apt-get update,我得到以下结果:

Ign:1 http://archive.canonical.com/ubuntu bionic InRelease                     
Err:2 http://archive.canonical.com/ubuntu bionic Release            
  Redirection loop encountered
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease   
Ign:4 http://packages.linuxmint.com tessa InRelease                      
Err:5 http://packages.linuxmint.com tessa Release
  Redirection loop encountered
Hit:6 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease       
Hit:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease      
Reading package lists... Done
E: The repository 'http://archive.canonical.com/ubuntu bionic Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://packages.linuxmint.com tessa Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

我在互联网上进行了一些搜索,但没有找到该问题的解决方案。另外,我记得当我必须使用该curl命令时,我必须设置代理并启用 cookie,否则我会得到这些“重定向循环”。

请问,我应该怎么做才能解决这个问题?

谢谢。

答案1

尝试:

获取::http::代理”https://你的代理地址:代理端口”;

代替

获取::http::代理”http://你的代理地址:代理端口”;

相关内容