我回答了这个问题关于do-release-upgrade不允许从14.10升级到15.04到15.10,我认为这是因为15.04是生命的终结。
一个用户(@xangua )发帖说,不可能跳过do-release-upgrade的发行版,所以我在14.04框上运行命令查看了这个信息,但这就是混乱的开始。
我的14.04想直接升级到15.04?
当然,这使我的回答无效,因为15.04是生命的终结,但是为什么这个命令似乎要跳过版本,如果不是基于生命的结束?
没有任何迹象表明,从14.10下载的东西是由升级和software-updater说,Ubuntu15.04现在可以下载,一些澄清这将是很好的。
发布于 2016-01-26 05:34:37
你最初的猜测是对的。15.04支持整个2016-02-04,因此do-release-upgrade试图将您升级到下一个支持的版本,而不是您所拥有的版本。
下面是来自/etc/update-manager/release-upgrades的正常升级提示模式的描述:
检查是否有新版本可用。如果发现多个新版本,则发布升级程序将尝试升级到立即成功当前运行的版本的版本。
因此,如果我在14.04,它应该尝试带我到14.10,但现在do-release-upgrade正在尝试将OP (和我)改为15.04。
因此,在阅读/usr/lib/python3/dist-packages/DistUpgrade/MetaRelease.py时,我们似乎跳过了不受支持的版本,找出要升级到哪个版本(除非您使用的是developer标志):
# then see what we can upgrade to
upgradable_to = ""
for dist in dists:
if dist.date > current_dist.date:
# Only offer to upgrade to an unsupported release if running
# with useDevelopmentRelease, this way one can upgrade from an
# LTS release to the next supported non-LTS release e.g. from
# 14.04 to 15.04.
if not dist.supported and not self.useDevelopmentRelease:
continue
upgradable_to = dist
self._debug("new dist: %s" % upgradable_to)
break我应该补充一点,我不建议尝试使用do-release-upgrade -d来解决这个问题。当我尝试使用prompt=normal时,我得到了404 s,因为14.10是EoL。我还认为,在我的精神错乱,我一定是尝试了do-release-upgrade -p,它试图带我直接到16.04。当我意识到它要带我去异种的时候,一切都坏了,我不得不从工厂恢复。最后,我决定等到16.04发布后再重新安装。
https://askubuntu.com/questions/719465
复制相似问题