apt-get 已损坏,我无法安装任何东西(更新问题)

apt-get 已损坏,我无法安装任何东西(更新问题)

我正在运行 ubuntu 16.04,发现我无法再安装软件包。无论我如何尝试,我都会收到以下消息

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created or
been moved out of Incoming. 

The following information may help to resolve the situation:
The following packages have unmet dependencies:  
   anydesk : Depends: libgtkglext1 but it is not installable 
E: Unable to correct problems, you have held broken packages.

我读到过一些文章说我应该运行它apt update,但是它坏了。它显示以下内容:

Ign:1 http://security.ubuntu.com/ubuntu artful-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu artful InRelease 
Err:3 http://security.ubuntu.com/ubuntu artful-security Release   404  Not Found [IP: 91.189.88.161 80] 
Ign:4 http://archive.ubuntu.com/ubuntu artful-updates InRelease 
Ign:5 http://archive.ubuntu.com/ubuntu artful-backports InRelease 
Err:6 http://archive.ubuntu.com/ubuntu artful Release   404  Not Found [IP: 91.189.88.161 80] 
Err:7 https://archive.ubuntu.com/ubuntu artful-updates Release  404  Not Found [IP: 91.189.88.161 80] 
Err:8 http://archive.ubuntu.com/ubuntu artful-backports Release   404  Not Found [IP: 91.189.88.161 80]
Reading package lists... Done 
E: The repository 'http://security.ubuntu.com/ubuntu artful-security 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 'archive.ubuntu.com/ubuntu artful Release' does not have 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 'archive.ubuntu.com/ubuntu artful-updates Release' does not have 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 'archive.ubuntu.com/ubuntu artful-backports Release' does not have 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.

我已经尝试过了sudo apt-get -f install,但我还没有synaptic安装(并且由于显而易见的原因无法安装)。

我应该怎么办?

答案1

您运行的是 17.10,而不是 16.04。您应该迁移到受支持的 Ubuntu 版本。

您的apt update输出似乎表明您正在运行 17.10 (Artful)。
以下是示例:

Ign:2 http://archive.ubuntu.com/ubuntu artful InRelease

注意到它说的是“artful”(17.10)而不是“xenial”(16.04)吗?

17.10 已达到使用寿命终止,这些存储库已被撤回(这就是您无法访问它们的原因),我们不再为其提供支持。

有几种简单的方法可以迁移到受支持的 Ubuntu 版本。我们强烈建议在尝试任何方法之前备份您的数据,因为您的系统可能存在我们不知道的问题。一个简单的方法do-release-upgrade将尝试将您的系统迁移到完全受支持的 18.04 (bionic)。或者,您可以为任何受支持的 Ubuntu 版本创建新的安装 USB,然后覆盖您当前的系统。

相关内容