从 18.04 升级到 20.04 时遇到问题,可能是由于较旧的不受支持的版本缺少有效签名

从 18.04 升级到 20.04 时遇到问题,可能是由于较旧的不受支持的版本缺少有效签名

背景是,昨天我尝试使用 itsfoss 指南从 18.04 升级到 20.04,但立即遇到了麻烦。我的 CPU 超出了系统要求,但是它自带了 Win 10,我在 2 年前购买后不久就双启动了 Ubuntu。我使用 Ubuntu 作为操作系统已经超过 8 年了,但我是一个 Linux 新手,大部分时间都只能将说明复制并粘贴到终端窗口中。问题很可能出在我身上,因为我对系统架构/磁盘分区了解不多,和/或版本升级后缺乏定期维护。

第一次运行时,sudo apt update && sudo apt dist-upgrade我立即收到有关缺少适当签名的错误消息,昨天花了几个小时搜索并尝试进行故障排除,但除了不同的错误消息外一无所获。我在开始之前保存了我的文件,如果不是因为我与 Windows 双重启动并且担心这对我来说是一个更大的挑战,我可能会考虑擦除 CPU 并重新开始。所以,当您阅读下面的当前错误消息时,请告诉我您是否认为擦除所有内容并从头开始安装 20.04 是更好的选择(以及是否有任何我需要知道的警告)。Orr,有没有办法让它工作?

目前,我的软件更新程序显示“并非所有更新都可以安装“并说我可以继续部分升级。在研究了部分升级之后,看起来这是一个坏主意,对于像我这样的业余爱好者来说效果并不好,所以我还没有尝试过。

感谢您查看!以下是我终端中的最后 4 条错误消息,(最新):

sj@sj-lenovo-yoga-920:~$ sudo update-manager
[sudo] password for sj: 
WARNING:root:Error loading .desktop file /usr/share/applications/vim.desktop: constructor returned NULL

(software-properties-gtk:10419): IBUS-WARNING **: 00:15:14.586: The owner of /home/sj/.config/ibus/bus is not root!

(software-properties-gtk:10419): IBUS-WARNING **: 00:15:14.848: Unable to connect to ibus: Unexpected lack of content trying to read a line
WARNING:root:Error loading .desktop file /usr/share/applications/vim.desktop: constructor returned NULL

sj@sj-lenovo-yoga-920:~$ sudo update-manager
Checking for a new Ubuntu release
/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
/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py:33: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.rerequire_versionquire_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import WebKit2 as WebKit

(do-release-upgrade:4796): IBUS-WARNING **: 23:31:37.339: The owner of /home/sj/.config/ibus/bus is not root!
Gtk-Message: 23:31:37.348: GtkDialog mapped without a transient parent. This is discouraged.

(do-release-upgrade:4796): IBUS-WARNING **: 23:31:37.349: Unable to connect to ibus: Unexpected lack of content trying to read a line
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' 
Gtk-Message: 23:31:50.285: GtkDialog mapped without a transient parent. This is discouraged.
sj@sj-lenovo-yoga-920:~$ sudo update-manager
Checking for a new Ubuntu release
/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
/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py:33: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import WebKit2 as WebKit

(do-release-upgrade:5692): IBUS-WARNING **: 23:36:09.636: The owner of /home/sj/.config/ibus/bus is not root!
Gtk-Message: 23:36:09.646: GtkDialog mapped without a transient parent. This is discouraged.

(do-release-upgrade:5692): IBUS-WARNING **: 23:36:09.646: Unable to connect to ibus: Unexpected lack of content trying to read a line
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' 
Gtk-Message: 23:36:21.886: GtkDialog mapped without a transient parent. This is discouraged.

sj@sj-lenovo-yoga-920:~$ sudo update-manager

(software-properties-gtk:2963): IBUS-WARNING **: 23:26:10.206: The owner of /home/sj/.config/ibus/bus is not root!

**NOTE: Deleted 2 Warning entries because filter said they look like spam**

(software-properties-gtk:2963): Gtk-CRITICAL **: 23:26:35.954: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkNotebook
Checking for a new Ubuntu release
/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
/usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py:33: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import WebKit2 as WebKit

注意:删除了另外 2 个 IBUS 警告,因为过滤器认为它是垃圾邮件

 'focal.tar.gz' against 'focal.tar.gz.gpg' 
Gtk-Message: 23:28:00.767: GtkDialog mapped without a transient parent. This is discouraged.

sj@sj-lenovo-yoga-920:~$ sudo apt update && sudo apt dist-upgrade

注意:此消息充满了指向 ubuntu 版本的链接。因为我是新成员,所以每条帖子只能发布 8 个链接。因此,我删除了前 7 个没问题的链接,并从其余链接的开头删除了“http:”,希望它能通过筛选

Get:8 http://us.old-releases.ubuntu.com/ubuntu bionic InRelease                
Err:8 http://us.old-releases.ubuntu.com/ubuntu bionic InRelease                
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Hit:9 //archive.ubuntu.com/ubuntu bionic-backports InRelease              
Ign:10 //old-releases.ubuntu.com/ubuntu bionic-security InRelease         -
Get:11 //us.old-releases.ubuntu.com/ubuntu artful InRelease               
Err:11 //us.strong textold-releases.ubuntu.com/ubuntu artful InRelease         
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Err:12 http://old-releases.ubuntu.com/ubuntu bionic-security Release           
  404  Not Found [IP: 2001:67c:1360:8001::25 80]
Get:13 //us.o

注意:删除了大约 100 条类似的行,因为过滤器认为它们是垃圾邮件

向大家道歉,这个问题太乱了——我通常都能解决问题,但这个问题很难。如果您需要更多信息或从我的终端复制粘贴更多内容,请告诉我。

相关内容