-我们的情况--
在过去的几周里,我们还没有能够在我们的Ubuntu16.04LTS系统上进行发布升级。
我们有100+机器需要升级。阅读了其他解决方案,但到目前为止它们都没有工作(例如:如何升级到更新版本的Ubuntu? 如何在Ubuntu的发布升级失败后删除过时的包? 如何只执行LTS升级? )--除了手动更改/etc/apt/ so . distro *中的发行版的“蛮力”方法之外。我不喜欢这种方法,因为它看起来过于凌乱,也不是特别友好。
在16.04LTS上发布升级是否中断?去年年中的某个时候发布升级已经开始了,而现在却没有.
-一些信息.--
* Require a command line based solution as we need to automate this.
We will be updating over 100 machines
* None of the existing solutions get do-release-upgrade to work.
sudo do-release-upgrade
sudo do-release-upgrade -d
sudo do-release-upgrade -c
* update-manager-core package is installed
* File /etc/update-manager/release-upgrades has:
[DEFAULT]
#...
Prompt=lts
* File /etc/update-manager/meta-release has:
# default location for the meta-release file
[METARELEASE]
URI = https://changelogs.ubuntu.com/meta-release
URI_LTS = https://changelogs.ubuntu.com/meta-release-lts
URI_UNSTABLE_POSTFIX = -development
URI_PROPOSED_POSTFIX = -proposed
/etc/update-manager/meta-release (END)
-错误信息--
do-release-upgrade :
Checking for a new Ubuntu release
No new release found.
do-release-upgrade -d :
Checking for a new Ubuntu release
Upgrades to the development release are only
available from the latest supported release.
do-release-upgrade -c :
Checking for a new Ubuntu release
No new release found.
更新#1
* Machines are running : Ubuntu 16.04.6 LTS
* Machines are updated every day by cron (apt update+upgrade)
* /etc/apt/sources.list.d/ubuntu.list has :
deb archive.canonical.com/ubuntu xenial partner
发布于 2020-02-01 17:45:26
我有同样的问题,并通过使用"Debian方式“来解决,就像在https://linuxconfig.org/how-to-upgrade-to-ubuntu-18-04-lts-bionic-beaver中描述的那样。
/etc/apt/sources.list
文件修改为这里描述的一个:https://gist.github.com/rohitrawat/60a04e6ebe4a9ec1203eac3a11d4afc1 (这个步骤可能没用,因为我的sources.list
文件看起来很好)。在那之后,do-release-upgrade
仍然产生了一条“没有新的发布发现”的消息。xenial
更改为bionic
in /etc/apt/sources.list
(/etc/apt/sources.list.d/
下的文件中没有任何更改):$ sudo sed -i 's/xenial/bionic/g' /etc/apt/sources.list
$ sudo apt update && sudo apt -y dist-upgrade
升级了所有东西然后我受到了Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-76-generic x86_64)
的欢迎,一切看起来都很好(lsb_release -a
确认我正在使用Ubuntu18.04.4LTS)。
注意,几周前我用do-release-upgrade
升级了14.04LTS到16.04LTS,没有问题。还请注意,我不是一个经验丰富的Linux/Ubuntu用户,但我希望这能有所帮助。
https://askubuntu.com/questions/1205332
复制相似问题