![使用 do-release-upgrade 时,我似乎无法从 20.04 LTS 升级到 22.04 LTS。](https://linux22.com/image/1190358/%E4%BD%BF%E7%94%A8%20do-release-upgrade%20%E6%97%B6%EF%BC%8C%E6%88%91%E4%BC%BC%E4%B9%8E%E6%97%A0%E6%B3%95%E4%BB%8E%2020.04%20LTS%20%E5%8D%87%E7%BA%A7%E5%88%B0%2022.04%20LTS%E3%80%82.png)
该机器是新的,它是一台戴尔 Latitude 5300,带有 我Prompt=never
更换的ubuntu 20.04 LTS 默认镜像Prompt=lts
/etc/update-manager/release-upgrades
我明白了
root@lat530-26:/etc/update-manager# do-release-upgrade
Checking for a new Ubuntu release
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.
root@lat530-26:/etc/update-manager#
非常奇怪,因为 wget 可以毫无问题地下载该文件:
root@lat530-26:/etc/update-manager# wget https://changelogs.ubuntu.com/meta-release-lts
--2022-10-26 09:43:51-- https://changelogs.ubuntu.com/meta-release-lts
Resolving changelogs.ubuntu.com (changelogs.ubuntu.com)... 185.125.190.17, 91.189.91.49, 91.189.91.48, ...
Connecting to changelogs.ubuntu.com (changelogs.ubuntu.com)|185.125.190.17|:443... connected.
HTTP request sent, awaiting response... 200
Length: 5623 (5,5K)
Saving to: ‘meta-release-lts’
meta-release-lts 100%[=====================================================================================================================>] 5,49K --.-KB/s in 0s
2022-10-26 09:43:51 (730 MB/s) - ‘meta-release-lts’ saved [5623/5623]
root@lat530-26:/etc/update-manager#
我也尝试过改变
Prompt=lts
进入Prompt=normal
/etc/update-manager/release-upgrades
root@lat530-26:/etc/update-manager# do-release-upgrade
Checking for a new Ubuntu release
Failed to connect to https://changelogs.ubuntu.com/meta-release. Check your Internet connection or proxy settings
No new release found.
root@lat530-26:/etc/update-manager#
正如预期的那样,这并没有改变任何事情
答案1
我假设你已经做了备份......
这样sudo do-release-upgrade -d -f DistUpgradeViewGtk3
您就可以通过 GUI 查看正在发生的事情,或者sudo update-manager -c
启动升级。
检查更新管理器的配置,查看它是否允许更新,即从不、正常或 LTS 使用cat /etc/update-manager/release-upgrades