do-release-upgrade 已停止,无法重新运行

do-release-upgrade 已停止,无法重新运行

我尝试将 ubuntu 从 10.04 升级到 10.10 和 11.04。从 10.04 升级到 10.10 是成功的,但从 10.10 升级到 11.04 时,我感觉有些不对劲,于是停止了升级。我尝试重新运行 do-release-upgrade,但失败了。以下是错误消息。

Checking for a new ubuntu release
/usr/lib/python2.6/dist-packages/apt/progress/old.py:134: DeprecationWarning: apt.progress.FetchProgress is deprecated.
  FetchProgress.__init__(self)
/usr/lib/python2.6/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py:202: DeprecationWarning: apt_pkg.GetAcquire() is deprecated. Please see apt_pkg.Acquire() for the replacement.
  fetcher = apt_pkg.GetAcquire(self._progress)
/usr/lib/python2.6/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py:205: DeprecationWarning: apt_pkg.GetPkgAcqFile() is deprecated. Please see apt_pkg.AcquireFile() for the replacement
  af = apt_pkg.GetPkgAcqFile(fetcher,uri, descr=_("Upgrade tool signature"))
/usr/lib/python2.6/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py:208: DeprecationWarning: apt_pkg.GetPkgAcqFile() is deprecated. Please see apt_pkg.AcquireFile() for the replacement
  af = apt_pkg.GetPkgAcqFile(fetcher,self.uri, descr=_("Upgrade tool"))
/usr/lib/python2.6/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py:209: DeprecationWarning: Attribute 'Run' of the 'apt_pkg.Acquire' object is deprecated, use 'run' instead.
  if fetcher.Run() != fetcher.ResultContinue:
Failed Upgrade tool signature
Failed Upgrade tool
Done downloading            
Failed to fetch
Fetching the upgrade failed. There may be a network problem. 

有没有办法重新运行 do-release-upgrade,或者重置升级状态?

答案1

尝试运行sudo dpkg --configure -a以清理部分安装的东西,apt-get update然后apt-get upgrade

答案2

这一页- Ubuntu 网站 -说你可以从 10.10 升级到 11.04,只需按照说明操作即可。

您可以尝试以下命令来清理系统:apt-get clean apt-get update

然后尝试再次升级。

相关内容