使用 do-release-upgrade 时,我似乎无法从 20.04 LTS 升级到 22.04 LTS。

使用 do-release-upgrade 时,我似乎无法从 20.04 LTS 升级到 22.04 LTS。

该机器是新的,它是一台戴尔 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

相关内容