无法从 17.10 升级到 18.04

无法从 17.10 升级到 18.04

当我运行升级到 Ubuntu 18.04 的命令时

/usr/lib/ubuntu-release-upgrader/check-new-release-gtk

我收到以下错误:

/usr/lib/ubuntu-release-upgrader/check-new-release-gtk:30: 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
Checking for a new Ubuntu release
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py:23: 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, Gdk
Segmentation fault (core dumped)

我无法理解如何解决上述错误。

答案1

18.04您可以通过以下方式升级到文章或者直接按照我的回答操作。我只从上面链接的文章中复制了必要的部分,这样就容易一些了。
开始吧;

首先运行这些命令,这样 ubuntu 就完全更新了。这使得升级变得更18.04容易。

$ sudo apt update 
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo apt autoremove

然后我们可以开始升级。使用以下命令;

$ sudo apt install update-manager-core
$ sudo do-release-upgrade -d

您现在应该可以看到升级已开始。有关更多信息,请参阅文章。

来源:https://linuxconfig.org/how-to-upgrade-to-ubuntu-18-04-lts-bionic-beaver

相关内容