我无法从 Ubuntu 18.10 升级到 19.04。
\n\n我确认 19.04 已正式发布,并出现在https://changelogs.ubuntu.com/meta-release中。
\n\n当我跑步时sudo update-manager -c,我在终端中收到以下错误消息(尽管 GUI 只是高兴地报告没有可用的更新):
\n\n\n无法连接到https://changelogs.ubuntu.com/meta-release。检查您的互联网连接或代理设置
\n
我尝试使用 \n 访问该文件并wget changelogs.ubuntu.com/meta-release收到以下错误消息
\n\n\n--2019-04-20 21:01:27-- https://changelogs.ubuntu.com/meta-release \n 解决changelogs.ubuntu.com (changelogs.ubuntu.com)... 91.189.95.15, 2001 :67c:1560:8008::11
\n\n正在连接到changelogs.ubuntu.com (changelogs.ubuntu.com)|91.189.95.15|:443...已连接。
\n\n错误:无法验证由\xe2\x80\x98CN=Let\'s Encrypt Authority X3、O=Let\'s Encrypt、C=US\xe2\x80\x99:\ 颁发的changelogs.ubuntu.com\ 的证书:\ n 无法在本地验证发行者的权限。
\n\n要不安全地连接到changelogs.ubuntu.com,请使用“--no-check-certificate\”。
\n
尽管当我尝试使用 访问同一文件时curl changelogs.ubuntu.com/meta-release,下载成功(我在某处读到它的证书可能是最新的)。
正如我所看到的建议,我多次重新启动系统,等待超过 24 小时,并尝试删除本地~/.cache/update-manager-core/meta-release,但这没有帮助。
我在https://www.ssllabs.com/ssltest/analyze.html?d=changelogs.ubuntu.com&latest上验证了该网站的证书并获得了 A+。
\n\n我更喜欢不需要我通过 http 而不是 https 获取文件的解决方案。
\n这是我解决问题的方法:
我使用 curl: 通过 https 下载了元发布文件curl http://changelogs.ubuntu.com/meta-release > ~/.cache/update-manager-core/meta-release。
然后我将本地编辑/etc/update-manager/meta-release为:
# default location for the meta-release file
[METARELEASE]
#URI = https://changelogs.ubuntu.com/meta-release
URI = file:///home/YOUR-USERNAME/.cache/update-manager-core/meta-release
URI_LTS = https://changelogs.ubuntu.com/meta-release-lts
URI_UNSTABLE_POSTFIX = -development
URI_PROPOSED_POSTFIX = -proposed
Run Code Online (Sandbox Code Playgroud)
请注意,您必须将 YOUR-USERNAME 更改为系统上的适当值。
现在升级工作顺利!
| 归档时间: |
|
| 查看次数: |
2952 次 |
| 最近记录: |