从12.04.3 LTS升级到14.04.1 LTS故障


8

这可能已经被要求数百万次了,但是由于无法升级到14.04.1,所以我正在努力将Ubuntu系统从LTS更新到LTS。我的系统不断通知我升级到最新版本,声称

Your current Hardware Enablement Stack (HWE) is going out of support
on 2014-08-07.  After this date security updates for critical parts (kernel
and graphics stack) of your system will no longer be available.`

但是,当我运行时sudo do-release-upgrade,Ubuntu说我没有可用的更新。此外,将prompt参数更改/etc/update-manager/release-upgrades为prompt=normal而不是会prompt=lts引发以下错误:

Checking for a new Ubuntu release
404  Not Found [IP: 91.189.91.14 80]
Err Upgrade tool
404  Not Found [IP: 91.189.91.14 80]
Fetched 0 B in 0s (0 B/s)
WARNING:root:file 'quantal.tar.gz.gpg' missing
Failed to fetch
Fetching the upgrade failed. There may be a network problem.

对我来说,这似乎很奇怪,因为Quantal甚至不是最新版本,所以我不知道为什么系统会寻找它。

人们建议将-d标志附加到do-release-upgrade命令中,但是文档说这将安装我不想要的14.04开发版本。

任何帮助将使我绕开这一障碍将不胜感激。


您是否有任何quantal相关行/etc/apt/sources.list?
— muru

我稍后再检查。好建议。
— Noel Forte 2014年

不,我的系统中没有任何定量线……尽管如此!
— Noel Forte 2014年

为了明确起见,-d会安装当前版本,而不管它是什么版本。它不是开发版本,但是测试较少。因此,LTS版本上的do-release-upgrade在.1发布之前不会升级。
— tu-Restate Monica-dor duh 2014年

但是.1已发布。那是24号。
— Noel Forte 2014年

Answers:


16

您必须重新安装更新管理器。首先,将其删除/清除:

sudo apt-get purge update-manager-core update-notifier-common

然后看看控制台输出。如果它告诉您某些目录无法删除,请手动将其删除。就我而言:

rm -rf /var/lib/update-manager
rm -rf /var/lib/update-notifier

如果您使用的是13.04或更高版本,则还应该这样做以清除缓存的更新消息:

sudo rm /var/lib/ubuntu-release-upgrader/release-upgrade-available

然后更新您的来源:

sudo apt-get update

重新安装更新管理器:

sudo apt-get install update-manager-core update-notifier-common -y

仅当您当前正在使用LTS并想升级到最新的LTS时,请确保已在其中/etc/update-manager/release-upgrades设置:

Prompt=lts

否则(将任何版本升级到新版本)设置为:

Prompt=normal

现在dist-upgrade应该可以工作了:

sudo apt-get dist-upgrade

请注意,删除update-manager还会删除网络管理器和软管网络(除非您能够以其他方式访问网络,否则将阻止后续步骤的进行)。你被警告了。
— Daira Hopwood 2014年

1
事实证明,几年前我更改了sources.list并添加了东西,基本上对其进行了新的更新。我两次遵循了本指南。然后使用当前资源检查我是否具有量化,获取了量化资源,重做了整件事,现在它已经开展了业务。谢谢!然后,升级失败了,基本上,我在列表中留下了第三方资源。我只是将其清除到dist的原始来源,现在终于可以了。真的很棒的答案!!!!! +啤酒
— Piotr Kula 2015年

没用,现在不存在更新管理器。
— Kaitain '16

太棒了!!! 当其他人失败时很好的解决方案很好
— Aryeh Beitz
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.