我一直在尝试从以下方式升级我的 Ubuntu 服务器:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
升级到 Ubuntu 18.04 LTS。我已经更新了系统
$ sudo apt update && sudo apt upgrade
Get:1 https://ubuntu.mirror.ac.za xenial InRelease [247 kB]
Get:2 https://ubuntu.mirror.ac.za xenial-updates InRelease [109 kB]
Get:3 https://ubuntu.mirror.ac.za xenial-backports InRelease [107 kB]
Get:4 https://ubuntu.mirror.ac.za xenial/main amd64 Packages [1,201 kB]
Get:5 https://ubuntu.mirror.ac.za xenial/main i386 Packages [1,196 kB]
Hit:6 http://apt.puppetlabs.com xenial InRelease
Get:7 https://ubuntu.mirror.ac.za xenial/main Translation-en [568 kB]
Get:8 https://ubuntu.mirror.ac.za xenial/restricted amd64 Packages [8,344 B]
Fetched 29.9 MB in 7s (4,183 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo do-release-upgrade
Checking for a new Ubuntu release
No new release found.
You have new mail in /var/mail/root
$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
Upgrades to the development release are only
available from the latest supported release.
我是否遗漏了什么?
答案1
常规升级方式
要从 升级lts
到lts
,请/etc/update-manager/release-upgrades
使用以下行编辑您的:
Prompt=lts
然后运行:
sudo do-release-upgrade
看:升级政策
这Debian 升级方式:
sudo sed -i.ORIG 's/xenial/bionic/g' /etc/apt/sources.list
sudo mv /etc/apt/sources.list.d/ /etc/apt/sources.list.d.ORIG/
sudo mkdir /etc/apt/sources.list.d/
sudo aptitude update
sudo aptitude safe-upgrade
sudo aptitude full-upgrade
答案2
谢谢大家的协助。
问题出在:
/etc/update-manager/meta-release # 有一些监控软件的几行代码,删除它们并保存,然后完美运行 :)
协助的命令,不记得在哪里看到过,但谢谢你
导出 DEBUG_UPDATE_MANGER=true
希望这能帮助遇到此问题的人