sudo apt update sudo
apt upgrade sudo
apt dist-upgrade
sudo apt install update-manager-core
sudo nano /etc/update-manager/release-upgrades
并确保文件包含:
Prompt=lts
sudo do-release-upgrade
如遇:Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings异常
检查网络是否正常
ping -c 4 changelogs.ubuntu.com
检查Ubuntu 的 changelogs 服务器是否有问题
curl https://changelogs.ubuntu.com/meta-release-lts
检查证书是否同步
sudo update-ca-certificates --verbose --fresh
export SSL_CERT_DIR=/etc/ssl/certs
忽略证书
sudo nano /usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py
from __future__ import absolute_import, print_function import ssl ssl._create_default_https_context = ssl._create_unverified_context import apt import apt_pkg
升级完成后重启服务器
完成之后重启服务器
sudo shutdown -r now
查询ubuntu版本号
lsb_release -a
标签:系统升级,sudo,apt,changelogs,ubuntu,release,import From: https://www.cnblogs.com/-llf/p/18521186