问题描述
操作系统:Ubuntu Desktop 20.04.2
Ubuntu启动后,通过SSH远程连接,产生如下输出:
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-45-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
0 updates can be installed immediately.
0 of these updates are security updates.
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Wed Mar 3 18:28:50 2021 from 192.168.23.1
ubuntu@ubuntu-virtual-machine:~$
其中的异常为:
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
解决办法
- 移除
/var/lib/ubuntu-release-upgrader/release-upgrade-available
$ sudo rm /var/lib/ubuntu-release-upgrader/release-upgrade-available
- 运行
/usr/lib/ubuntu-release-upgrader/release-upgrade-motd
$ cd /usr/lib/ubuntu-release-upgrader/
$ ls
check-new-release check-new-release-gtk do-partial-upgrade release-upgrade-motd
$ sudo ./release-upgrade-motd
再次通过SSH远程访问时,经验证该问题消失。
参考资料
- https://askubuntu.com/questions/919441/failed-to-connect-to-http-changelogs-ubuntu-com-meta-release