我正在尝试将我的 ubuntu 服务器 22.10 Kinetic Kudu 升级到 23.10 mantic。
我可以使用此sources.list将我的Kinetic版本升级到最新更新:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu kinetic main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu kinetic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu kinetic-updates main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu kinetic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu kinetic universe
# deb-src http://old-releases.ubuntu.com/ubuntu kinetic universe
deb http://old-releases.ubuntu.com/ubuntu kinetic-updates universe
# deb-src http://old-releases.ubuntu.com/ubuntu kinetic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://old-releases.ubuntu.com/ubuntu kinetic multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu kinetic multiverse
deb http://old-releases.ubuntu.com/ubuntu kinetic-updates multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu kinetic-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu kinetic-backports main restricted universe multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu kinetic-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu kinetic-security main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu kinetic-security main restricted
deb http://old-releases.ubuntu.com/ubuntu kinetic-security universe
当我执行 do-release-upgrade 时,我收到以下消息:
此工具不支持从“kinetic”升级到“mantic”
确实不可能执行我想要执行的升级路径吗?
答案1
最后我能够通过以下步骤进行升级:
- 修改当前的 /etc/apt/sources.list 并替换以以下开头的网址http://存档... 经过http://旧版本
- 完成后,执行须藤apt更新然后sudo apt 升级和sudo apt dist-upgrade
- 然后重新启动
- 修改/etc/apt/sources.list并放回去档案代替旧版本
- 修改 /etc/apt/sources.list 并替换所有出现的动力学经过农历
- 然后执行须藤apt更新,sudo apt 升级和sudo apt dist-upgrade。这将确保您升级到 23.04
- 然后重新启动
- 然后执行 sudo do-release-upgrade 升级到 23.10
答案2
从 22.10 (Kinetic Kudu) 升级到 23.10 (Mantic Minotaur) 时,我遇到了同样的“不支持”错误。我首先成功do-release-upgrade
升级到 23.04(Lunar Lobster):
- 首先执行您的
apt update
操作apt upgrade
并重新启动 - 编辑
/etc/update-manager/meta-release
- 该文件告诉do-release-upgrade
您在哪里可以找到有关最新版本的信息 - 注释掉此现有
URI
行并将其指向来自 Wayback Machine 的元发布文件的旧副本:#URI = https://changelogs.ubuntu.com/meta-release URI = https://web.archive.org/web/20230917010657id_/http://changelogs.ubuntu.com/meta-release
- 运行
do-release-upgrade
- 这将使您的系统达到 23.04(月球龙虾) - 再次编辑
/etc/update-manager/meta-release
并恢复原来的URI
- 运行另一个
do-release-upgrade
- 这将使您的系统达到 23.10 (Mantic Minotaur)
关于其工作原理的一些注意事项:
do-release-upgrade
几乎总是尝试将系统升级到最新的可用版本,并且几乎没有记录的方法来控制其行为--devel-release
让您升级到下一个版本的不稳定/预览版本- 设置只会升级到 LTS
Prompt=lts
版本/etc/update-manager/release-upgrades
- URI 指向的文件预计为纯文本文件,而 Wayback Machine 通常以 HTML 形式提供它们 - 添加
id_
在时间戳末尾会返回原始文件。
答案3
好消息是,Linux 现在比 Windows 更容易使用,所以与 Windows 机器上的情况不同,在 Windows 机器上,你在 2 年后将其拉出,并且必须花费数小时安装自动更新,而使用 Ubuntu,你所要做的就是:
Modify your current /etc/apt/sources.list and replace the urls starting with http://archive... by http://old-releases
Once done, execute sudo apt update then sudo apt upgrade and sudo apt dist-upgrade
Then reboot
Modify the /etc/apt/sources.list and put back archive instead of old-releases
Modify the /etc/apt/sources.list and replace all occurences of kinetic by lunar
Then perform sudo apt update, sudo apt upgrade and sudo apt dist-upgrade.
然后等待几个小时以安装升级。这将确保您升级到 23.04 然后重新启动。请务必测试系统以确保一切正常。
然后执行 sudo do-release-upgrade 升级到 23.10,并再等待几个小时以安装新更新。这就是 Linux 明显优于 Windows 的原因。它是如此容易。
但说真的,我不能把这个交给我年迈的母亲,并指望她祈祷让它发挥作用。我们最大的敌人就是我们自己。