AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1327615
Accepted
user227495
user227495
Asked: 2021-03-28 13:41:58 +0800 CST2021-03-28 13:41:58 +0800 CST 2021-03-28 13:41:58 +0800 CST

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

  • 772
这个问题在这里已经有了答案:
Apt Update 为 Wireguard 提供错误 3 个答案
chrome stable main 处的 Apt 更新失败:“文件大小意外(1103 != 1104)。正在进行镜像同步?” (7 个回答)
3 个月前关闭。

每次我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.

自过去 2 周以来,顶部栏上也有此错误图标和下拉菜单

在此处输入图像描述

更新 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.
apt
  • 1 1 个回答
  • 1181 Views

1 个回答

  • Voted
  1. Best Answer
    nobody
    2021-04-06T04:42:13+08:002021-04-06T04:42:13+08:00

    我看到 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/* 
    
    • 1

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve