将服务器更新到 17.04 时出错

Jil*_*nig 7 upgrade server update-manager do-release-upgrade 17.04

我正在将登台服务器更新到最新版本的 ubuntu。我遇到了一个我无法弄清楚的错误...

当我跑

do-release-upgrade -d

我收到以下错误

ERROR:root:parse failed for ‘/var/lib/update-manager/meta-release-lts-development’
Traceback (most recent call last):
  File “/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py”, line 368, in download
    self.parse()
  File “/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py”, line 239, in parse
    while index_tag.step():
SystemError: E:Unable to parse package file  (1)
Upgrades to the development release are only 
available from the latest supported release.
Run Code Online (Sandbox Code Playgroud)

有没有人知道如何解决这个问题?

更新:

我发现服务器正在寻找一个名为 的文件meta-release-lts-development,该文件不存在(只有meta-release-lts,只有官方版本)。不确定如何处理这些信息,但可能会有所帮助......

输出 update-manager -c

Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
WARNING:root:can not import unity GI cannot import name Dbusmenu, introspection typelib not found
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Run Code Online (Sandbox Code Playgroud)

Jil*_*nig 12

如果do-release-upgrade失败,您可能需要编辑该release-updates文件。使用文本编辑器(例如 nano)打开该文件 nano /etc/update-manager/release-upgrades 编辑最后一行说:

Prompt=normal

然后运行do-release-upgrade(没有 -d 标志)

升级完成后,再次编辑该行说 Prompt=lts

  • 效果很好。我可以知道这有什么作用吗? (2认同)