无法将 Ubuntu 服务器 12.04LTS 升级到 14.04LTS
Unable to upgrade Ubuntu server 12.04LTS to 14.04LTS
我遇到无法使用以下命令升级 Ubuntu 12.04LTS 的问题:
$ sudo apt-get update
$ sudo apt-get install update-manager-core
然后用命令升级:
$ sudo do-release-upgrade
要么
$ sudo do-release-upgrade -d
最后一条命令导致以下结果:
Checking for a new Ubuntu release
No new release found
内核是:
$ uname -r
3.2.0-126-generic
文件结尾 /var/lib/update-manager/meta-release-lts
是:
Dist: trusty
Name: Trusty Tahr
Version: 14.04.1 LTS
Date: Thu, 17 Apr 2014 14:04:00 UTC
Supported: 1
Description: This is the 14.04.1 LTS release
Release-File: http://archive.ubuntu.com/ubuntu/dists/trusty/Release
ReleaseNotes: http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/dist-upgrader-all/current/ReleaseAnnouncement
ReleaseNotesHtml: http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/dist-upgrader-all/current/ReleaseAnnouncement.html
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/dist-upgrader-all/current/trusty.tar.gz
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/dist-upgrader-all/current/trusty.tar.gz.gpg
/etc/update-manager/release-upgrades
的内容是:
[DEFAULT]
Prompt=lts
我尝试将 Prompt 从 lts 更改为 normal 并 运行 升级命令但得到了相同的结果。
/etc/apt/sources.list
的内容是:
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
如果有人能帮助我解决问题,我将不胜感激。迷惑了我这么久
Ubuntu 12.04,2012年发布,现在已经是很老的操作系统了。已经到了2017年8月的"End Of Life Date",这大概就是升级失败的原因。
您可能需要在控制台中输入 ubuntu-support-status
来验证这一点。
要升级系统,我建议备份您的数据并重新安装更新版本的 ubuntu(当前版本是 18.04.1 LTS)。
我遇到无法使用以下命令升级 Ubuntu 12.04LTS 的问题:
$ sudo apt-get update
$ sudo apt-get install update-manager-core
然后用命令升级:
$ sudo do-release-upgrade
要么
$ sudo do-release-upgrade -d
最后一条命令导致以下结果:
Checking for a new Ubuntu release
No new release found
内核是:
$ uname -r
3.2.0-126-generic
文件结尾 /var/lib/update-manager/meta-release-lts
是:
Dist: trusty
Name: Trusty Tahr
Version: 14.04.1 LTS
Date: Thu, 17 Apr 2014 14:04:00 UTC
Supported: 1
Description: This is the 14.04.1 LTS release
Release-File: http://archive.ubuntu.com/ubuntu/dists/trusty/Release
ReleaseNotes: http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/dist-upgrader-all/current/ReleaseAnnouncement
ReleaseNotesHtml: http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/dist-upgrader-all/current/ReleaseAnnouncement.html
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/dist-upgrader-all/current/trusty.tar.gz
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/dist-upgrader-all/current/trusty.tar.gz.gpg
/etc/update-manager/release-upgrades
的内容是:
[DEFAULT]
Prompt=lts
我尝试将 Prompt 从 lts 更改为 normal 并 运行 升级命令但得到了相同的结果。
/etc/apt/sources.list
的内容是:
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
如果有人能帮助我解决问题,我将不胜感激。迷惑了我这么久
Ubuntu 12.04,2012年发布,现在已经是很老的操作系统了。已经到了2017年8月的"End Of Life Date",这大概就是升级失败的原因。
您可能需要在控制台中输入 ubuntu-support-status
来验证这一点。
要升级系统,我建议备份您的数据并重新安装更新版本的 ubuntu(当前版本是 18.04.1 LTS)。