软件更新程序在 20.04 中反复崩溃

软件更新程序在 20.04 中反复崩溃

Send error report每次我尝试通过 查找软件更新时都会出现这种情况Software and updates。目前,我点击了它,但什么也没发生。

我尝试使用 进行更新sudo apt-get update。在终端中,我收到很多错误,提示未签名,如下所示

E: Repository 'http://in.archive.ubuntu.com/ubuntu focal-updates InRelease' changed its 'Origin' value from 'LP-PPA-tista-plata-theme' to 'Ubuntu'
E: Repository 'http://in.archive.ubuntu.com/ubuntu focal-updates InRelease' changed its 'Label' value from 'Plata-theme' to 'Ubuntu'
E: Repository 'http://in.archive.ubuntu.com/ubuntu focal-updates InRelease' changed its 'Suite' value from 'focal' to 'focal-updates'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.canonical.com/ubuntu focal InRelease: Splitting up /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_focal_InRelease into data and signature failed
W: GPG error: http://security.ubuntu.com/ubuntu focal-security InRelease: Splitting up /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_focal-security_InRelease into data and signature failed
E: The repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' is no longer 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.
E: Clearsigned file '/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_focal_InRelease' contains unsigned lines.
E: The package lists or status file could not be parsed or opened.

自过去两周以来,顶部栏上也出现了这个错误图标和下拉菜单

在此处输入图片描述

更新1:

sudo apt update按照+Kulfy 的评论尝试

Release file created at: Thu, 08 Oct 2020 11:47:42 +0000
Get:18 http://in.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [207 kB]
Get:19 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [264 kB]
Get:20 http://in.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 48x48 Icons [55.6 kB]
Get:21 http://in.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 64x64 Icons [87.9 kB]
Get:22 http://in.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 64x64@2 Icons [29 B]
Get:23 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [12.9 kB]
Get:24 http://in.archive.ubuntu.com/ubuntu focal-updates/restricted i386 Packages [16.2 kB]
Get:25 http://in.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [171 kB]
Get:26 http://in.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [25.3 kB]
Get:27 http://in.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [436 B]
Get:28 http://in.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [755 kB]
Get:29 http://in.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [560 kB]
Get:30 http://in.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [159 kB]
Get:31 http://in.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [303 kB]
Get:32 http://in.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 48x48 Icons [200 kB]
Get:33 http://in.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 64x64 Icons [356 kB]
Get:34 http://in.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 64x64@2 Icons [29 B]
Get:35 http://in.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [16.5 kB]
Get:36 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse i386 Packages [4,356 B]
Get:37 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [21.6 kB]
Get:38 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [5,508 B]
Get:39 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Get:40 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse DEP-11 48x48 Icons [29 B]
Get:41 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse DEP-11 64x64 Icons [2,638 B]
Get:42 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse DEP-11 64x64@2 Icons [29 B]
Get:43 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [596 B]
Reading package lists... Error!                                                
W: GPG error: http://packages.microsoft.com/repos/code stable InRelease: Splitting up /var/lib/apt/lists/partial/packages.microsoft.com_repos_code_dists_stable_InRelease into data and signature failed
E: The repository 'http://packages.microsoft.com/repos/code stable InRelease' is no longer 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: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://in.archive.ubuntu.com/ubuntu focal InRelease: Splitting up /var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_focal_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.canonical.com/ubuntu focal InRelease: Splitting up /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_focal_InRelease into data and signature failed
W: GPG error: http://security.ubuntu.com/ubuntu focal-security InRelease: Splitting up /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_focal-security_InRelease into data and signature failed
E: The repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' is no longer 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.
E: Clearsigned file '/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_focal_InRelease' contains unsigned lines.
E: The package lists or status file could not be parsed or opened.

更新 2:

sudo apt update再次尝试

$ sudo apt update
[sudo] password for myPC: 
Get:1 http://in.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Hit:2 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu focal InRelease      
Ign:3 http://dl.google.com/linux/webdesigner/deb stable InRelease              
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]      
Get:5 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]      
Ign:6 http://linux.dropbox.com/ubuntu disco InRelease                          
Err:5 http://packages.microsoft.com/repos/code stable InRelease                
  Splitting up /var/lib/apt/lists/partial/packages.microsoft.com_repos_code_dists_stable_InRelease into data and signature failed
Get:7 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]     
Err:1 http://in.archive.ubuntu.com/ubuntu focal InRelease                      
  Splitting up /var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_focal_InRelease into data and signature failed
Get:8 http://linux.dropbox.com/ubuntu disco Release [6,598 B]                  
Hit:9 http://archive.canonical.com/ubuntu focal InRelease                      
Hit:10 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal InRelease          
Get:11 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [264 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [303 kB]
Err:9 http://archive.canonical.com/ubuntu focal InRelease                      
  Splitting up /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_focal_InRelease into data and signature failed
Get:14 http://in.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
Hit:15 http://dl.google.com/linux/webdesigner/deb stable Release               
Hit:16 http://ppa.launchpad.net/tista/plata-theme/ubuntu focal InRelease       
Err:4 http://security.ubuntu.com/ubuntu focal-security InRelease
  Splitting up /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_focal-security_InRelease into data and signature failed
Ign:18 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal/main i386 Packages
Get:18 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal/main i386 Packages [520 B]
Get:18 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal/main i386 Packages [520 B]
Err:18 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal/main i386 Packages
  File has unexpected size (32 != 520). Mirror sync in progress? [IP: 91.189.95.85 80]
  Hashes of expected file:
   - Filesize:520 [weak]
   - SHA256:a3773bb530cff42a2d0897847644b9d65187c8ecb3556a98641ed51a199bafe0
   - SHA1:dd9a0819692490aaa173d9d4509651e08ec89c2c [weak]
   - MD5Sum:e38999641c7c26e004f9ad328196758b [weak]
  Release file created at: Thu, 08 Oct 2020 11:47:42 +0000
Reading package lists... Error!
W: GPG error: http://packages.microsoft.com/repos/code stable InRelease: Splitting up /var/lib/apt/lists/partial/packages.microsoft.com_repos_code_dists_stable_InRelease into data and signature failed
E: The repository 'http://packages.microsoft.com/repos/code stable InRelease' is no longer 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: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://in.archive.ubuntu.com/ubuntu focal InRelease: Splitting up /var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_focal_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.canonical.com/ubuntu focal InRelease: Splitting up /var/lib/apt/lists/archive.canonical.com_ubuntu_dists_focal_InRelease into data and signature failed
W: GPG error: http://security.ubuntu.com/ubuntu focal-security InRelease: Splitting up /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_focal-security_InRelease into data and signature failed
E: The repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' is no longer 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.
E: Clearsigned file '/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_focal_InRelease' contains unsigned lines.
E: The package lists or status file could not be parsed or opened.

答案1

我看到 2 个错误,其中有 apt key for microsoft repo。也许这会 帮助

请注意,我尚未测试过。

# uninstall code
sudo apt remove code
sudo rm /etc/apt/sources.list.d/vscode.list
sudo apt update # should succeed now

# download code and reinstall it
    wget -O ~/Downloads/code.deb https://update.code.visualstudio.com          
    /latest/linux-deb-x64/stable
    sudo dpkg -i ~/Downloads/code.deb

下一步将删除 apt/apt-get 中可用的软件包源信息

sudo rm -rf /var/lib/apt/lists/*

跑步

sudo apt update

sudo apt-get update重新创建已删除的文件

下一部分将删除部分下载的包。

sudo rm -rf /var/cache/apt/archive/partial/* 

相关内容