从15.10升级到16.04未安装

尝试使用终端升级时,我的升级停止。 这是终端中显示的行:

The required dependency 'apt(>=1.0.10.2 ubuntu2)' is not installed. 

我的问题是我不知道安装此依赖项的命令。 使用其他命令,它说apt是最新的。 解决方案?

有同样的问题,通过强制更新apt并清理当前安装解决了安德鲁建议:

 sudo apt-get update sudo apt-get upgrade sudo apt-get -f install # (not "install -f"!) sudo apt-get -y install apt sudo do-release-upgrade 

我有这个错误,对我来说,我错过了/etc/apt/sources.list中的wily-updates行:

 deb http://archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse 

我也有这个问题,这将更新你所有的好东西以及从15升级到16。

转到“ Software and Updates >“ Updates

勾选以下内容

  • 狡猾的安全
  • 狡猾的更新
  • 狡猾的提议

更新和升级当前系统

 sudo apt-get update && sudo apt-get upgrade 

获得升级

 sudo apt-get dist-upgrade 

在CLI中升级

 sudo do-release-upgrade 

我对’apt’有同样的问题。 我从这个链接得到了解决方案。 运行sudo dpkg -l | grep apt sudo dpkg -l | grep apt 。 您可以在命令的输出中看到此条目:

 ii apt 1.0.10.2ubuntu1 amd64 commandline package manager 

如果这样做,您将需要获得所需的apt(> = 1.0.10.2 ubuntu2) 。 以下是我遵循的步骤:

  1. 转到软件和更新 – > Ubuntu软件。 将服务器更改为主服务器。(在我的情况下,我更改为Server for India)。 我以前使用过不同的镜子,因此有一个较旧的’apt’版本。

  2.   sudo apt-get update sudo apt-get install --reinstall apt 
  3. 运行sudo dpkg -l | grep apt sudo dpkg -l | grep apt再次检查版本已更改。 希望输出中的条目应该更改为: apt 1.0.10.2ubuntu2

  4. 运行sudo apt-get update && sudo apt-get upgrade ,然后继续更新到ubuntu 16.04。