首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在Ubuntu16.04LTS上发布-升级失败-说:没有找到新版本

在Ubuntu16.04LTS上发布-升级失败-说:没有找到新版本
EN

Ask Ubuntu用户
提问于 2020-01-24 05:07:32
回答 1查看 14K关注 0票数 3

-我们的情况--

在过去的几周里,我们还没有能够在我们的Ubuntu16.04LTS系统上进行发布升级。

我们有100+机器需要升级。阅读了其他解决方案,但到目前为止它们都没有工作(例如:如何升级到更新版本的Ubuntu? 如何在Ubuntu的发布升级失败后删除过时的包? 如何只执行LTS升级? )--除了手动更改/etc/apt/ so . distro *中的发行版的“蛮力”方法之外。我不喜欢这种方法,因为它看起来过于凌乱,也不是特别友好。

在16.04LTS上发布升级是否中断?去年年中的某个时候发布升级已经开始了,而现在却没有.

-一些信息.--

代码语言:javascript
运行
复制
* 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)

-错误信息--

代码语言:javascript
运行
复制
  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

代码语言:javascript
运行
复制
 * 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 
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2020-02-01 17:45:26

我有同样的问题,并通过使用"Debian方式“来解决,就像在https://linuxconfig.org/how-to-upgrade-to-ubuntu-18-04-lts-bionic-beaver中描述的那样。

  1. 在此之前,我已经将默认的/etc/apt/sources.list文件修改为这里描述的一个:https://gist.github.com/rohitrawat/60a04e6ebe4a9ec1203eac3a11d4afc1 (这个步骤可能没用,因为我的sources.list文件看起来很好)。在那之后,do-release-upgrade仍然产生了一条“没有新的发布发现”的消息。
  2. 通过运行以下命令,我将xenial更改为bionic in /etc/apt/sources.list (/etc/apt/sources.list.d/下的文件中没有任何更改):$ sudo sed -i 's/xenial/bionic/g' /etc/apt/sources.list
  3. 我用:$ sudo apt update && sudo apt -y dist-upgrade升级了所有东西
  4. 和重新启动

然后我受到了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用户,但我希望这能有所帮助。

票数 6
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1205332

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档