将服务器更新至 17.04 时出错

将服务器更新至 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.

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

更新:

我发现服务器正在寻找一个名为 的文件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

答案1

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

Prompt=normal

然后运行do-release-upgrade(不带 -d 标志)

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

相关内容