Ubuntu 18.04.5 LTS 中的更新管理器损坏

Ubuntu 18.04.5 LTS 中的更新管理器损坏

我的任务栏有来自更新管理器的通知,内容是“检查更新时出现问题”。

我用过sudo apt-get update但输出是这样的:

Hit:1 http://dl.winehq.org/wine-builds/ubuntu bionic InRelease
Hit:2 https://linux.teamviewer.com/deb stable InRelease                                                                                                                                                                                                                             
Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                                                                                                        
Hit:4 https://updates.signal.org/desktop/apt xenial InRelease                                                                                                                                                                                                                       
Hit:5 http://in.archive.ubuntu.com/ubuntu bionic InRelease                                                                                                                                                                                                                          
Hit:6 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease                                                                                                                                                                                                                  
Hit:7 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease                                                                                                                                                                                                                
Hit:8 http://ppa.launchpad.net/audio-recorder/ppa/ubuntu bionic InRelease                                                                                                                                                                                                           
Hit:9 http://packages.microsoft.com/repos/code stable InRelease                                                                                                                                                                                                                     
Hit:10 https://packages.microsoft.com/repos/vscode stable InRelease                                                                                                                                                                                                                 
Hit:11 http://security.ubuntu.com/ubuntu bionic-security InRelease                                                                                                                                                                                                                  
Hit:12 https://packages.microsoft.com/repos/ms-teams stable InRelease                                                                                                                                                                                                               
Get:13 https://packages.cloud.google.com/apt cloud-sdk InRelease [6,739 B]                                                                                                                                                                                         
Get:14 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease [1,559 B]                                                                                                                                           
Hit:15 https://qgis.org/ubuntu-ltr bionic InRelease                                                                                                                                                                 
Hit:16 https://download.sublimetext.com apt/stable/ InRelease                                                        
Hit:18 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease                            
Hit:17 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease                                                             
Hit:19 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease   
Err:13 https://packages.cloud.google.com/apt cloud-sdk InRelease               
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB
Err:14 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease
  The following signatures were invalid: EXPKEYSIG DFA175A75104960E Emulators OBS Project <[email protected]>
Hit:20 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu bionic InRelease
Hit:21 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu bionic InRelease   
Hit:22 http://ppa.launchpad.net/sunderme/texstudio/ubuntu bionic InRelease     
Hit:23 http://ppa.launchpad.net/ubuntuhandbook1/audacity/ubuntu bionic InRelease
Hit:24 http://ppa.launchpad.net/umang/indicator-stickynotes/ubuntu bionic InRelease
Hit:25 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease       
Hit:26 http://ppa.launchpad.net/yg-jensge/shotwell/ubuntu bionic InRelease     
Reading package lists... Done                      
W: GPG error: https://packages.cloud.google.com/apt cloud-sdk InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FEEA9169307EA071 NO_PUBKEY 8B57C5C2836F4BEB
E: The repository 'https://packages.cloud.google.com/apt cloud-sdk InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease: The following signatures were invalid: EXPKEYSIG DFA175A75104960E Emulators OBS Project <[email protected]>
E: The repository 'https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04 ./ InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

我尝试了以下

sudo apt-get upgrade -f
sudo apt-get upgrade --fix-missing
sudo apt-get install -f
sudo apt-get clean
sudo apt autoremove && sudo apt autoclean -y

什么都没用。我也无法打开“更新管理器”。它没有打开。以下是一些相关输出。

$ ls /etc/apt/sources.list.d
audio-recorder-ubuntu-ppa-bionic.list       libreoffice-ubuntu-ppa-bionic.list                          obs.list                                    teams.list                                           vlijm-ubuntu-takeabreak-bionic.list
audio-recorder-ubuntu-ppa-bionic.list.save  libreoffice-ubuntu-ppa-bionic.list.save                     obs.list.save                               teams.list.save                                      vlijm-ubuntu-takeabreak-bionic.list.save
deadsnakes-ubuntu-ppa-bionic.list           maarten-baert-ubuntu-simplescreenrecorder-bionic.list       signal-xenial.list                          teamviewer.list                                      vscode.list
deadsnakes-ubuntu-ppa-bionic.list.save      maarten-baert-ubuntu-simplescreenrecorder-bionic.list.save  signal-xenial.list.save                     teamviewer.list.save                                 vscode.list.save
google-chrome.list                          mc3man-ubuntu-trusty-media-bionic.list                      slack.list                                  ubuntuhandbook1-ubuntu-audacity-bionic.list          webupd8team-ubuntu-java-bionic.list
google-chrome.list.save                     mc3man-ubuntu-trusty-media-bionic.list.save                 slack.list.save                             ubuntuhandbook1-ubuntu-audacity-bionic.list.save     webupd8team-ubuntu-java-bionic.list.save
google-cloud-sdk.list                       nilarimogard-ubuntu-webupd8-bionic.list                     sunderme-ubuntu-texstudio-bionic.list       umang-ubuntu-indicator-stickynotes-bionic.list       yg-jensge-ubuntu-shotwell-bionic.list
google-cloud-sdk.list.save                  nilarimogard-ubuntu-webupd8-bionic.list.save                sunderme-ubuntu-texstudio-bionic.list.save  umang-ubuntu-indicator-stickynotes-bionic.list.save  yg-jensge-ubuntu-shotwell-bionic.list.save

$ cat /etc/apt/sources.list
deb https://qgis.org/ubuntu-ltr bionic main
# deb-src https://qgis.org/ubuntu-ltr bionic main

# deb cdrom:[Ubuntu 18.04.3 LTS _Bionic Beaver_ - Release amd64 (20190805)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic universe
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates universe
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb https://download.sublimetext.com/ apt/stable/
# deb-src https://download.sublimetext.com/ apt/stable/
deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main
# deb-src http://dl.winehq.org/wine-builds/ubuntu/ bionic main
deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main
# deb-src [arch=amd64] https://packages.microsoft.com/repos/vscode stable main

请帮忙。如何成功更新我的系统?

答案1

您必须通过以下方式重新添加有问题的存储库的 GPG 密钥:

cd /tmp
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key
sudo apt-key add Release.key

wget https://packages.cloud.google.com/apt/doc/apt-key.gpg
sudo apt-key add apt-key.gpg

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FEEA9169307EA071
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B57C5C2836F4BEB
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DFA175A75104960E

然后sudo apt-get update再次运行。

相关内容