dist-upgrade 期间无法获取软件包

dist-upgrade 期间无法获取软件包

我正在尝试从 18.04.1 升级到 18.04.2,但出现以下错误,导致升级中止

sudo apt-get dist-upgrade --fix-missing
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apport apport-gtk python3-apport python3-problem-report
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 225 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-problem-report all 2.20.9-0ubuntu7.3
Ign:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-apport all 2.20.9-0ubuntu7.3
Ign:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 apport all 2.20.9-0ubuntu7.3
Ign:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 apport-gtk all 2.20.9-0ubuntu7.3
Err:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-problem-report all 2.20.9-0ubuntu7.3
  404  Not Found [IP: 91.189.91.23 80]
Err:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-apport all 2.20.9-0ubuntu7.3
  404  Not Found [IP: 91.189.91.23 80]
Err:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 apport all 2.20.9-0ubuntu7.3
  404  Not Found [IP: 91.189.91.23 80]
Err:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 apport-gtk all 2.20.9-0ubuntu7.3
  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/apport/python3-problem-report_2.20.9-0ubuntu7.3_all.deb  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/apport/python3-apport_2.20.9-0ubuntu7.3_all.deb  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/apport/apport_2.20.9-0ubuntu7.3_all.deb  404  Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/a/apport/apport-gtk_2.20.9-0ubuntu7.3_all.deb  404  Not Found [IP: 91.189.91.23 80]

是的,我确实运行了 sudo apt-get update 和 sudo apt-get upgrade,尽管升级在相同的软件包上显然失败了。

我可以在 launchpad.net 或 ubuntu.pkgs.org 上找到这些软件包,但我不确定如何重定向源以指向这些存储库,而不是查找它们不存在的地方。这些是启动板链接。

https://launchpad.net/ubuntu/bionic/amd64/python3-problem-report/2.20.9-0ubuntu7.3 https://launchpad.net/ubuntu/bionic/amd64/python3-apport/2.20.9-0ubuntu7.3 https://launchpad.net/ubuntu/+source/apport/2.20.9-0ubuntu7.3/+build/15147751

这是“sudo apt-get update”的输出

Hit:1 http://linux-packages.resilio.com/resilio-sync/deb resilio-sync InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                                               
Hit:3 http://dl.google.com/linux/chrome/deb stable Release                                                                                                              
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                                                             
Ign:5 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist InRelease                                                                                                                                      
Get:6 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist Release [2,040 B]                                                                                                                              
Hit:7 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease                                                                                                                                             
Get:8 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist Release.gpg [490 B]                                                                                                                            
Ign:9 https://debian.neo4j.org/repo stable/ InRelease                                                                                                                                                             
Hit:10 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                                                                                                                                       
Get:11 https://debian.neo4j.org/repo stable/ Release [1,479 B]                                                                                                                                             
Ign:12 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 InRelease                                                                                                                                       
Get:13 https://debian.neo4j.org/repo stable/ Release.gpg [819 B]                                                                                                                
Get:14 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                                                                          
Hit:15 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 Release                                                                                         
Hit:16 http://repo.mysql.com/apt/ubuntu bionic InRelease                                                                                                          
Hit:17 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic InRelease   
Hit:19 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Hit:20 http://ppa.launchpad.net/thomas.tsai/ubuntu-tuxboot/ubuntu bionic InRelease
Ign:8 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist Release.gpg
Ign:21 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages         
Hit:22 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Ign:23 http://us.archive.ubuntu.com/ubuntu bionic/restricted armhf Packages
Ign:24 http://us.archive.ubuntu.com/ubuntu bionic/universe armhf Packages                              
Ign:25 http://us.archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages                            
Ign:21 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages                                  
Ign:23 http://us.archive.ubuntu.com/ubuntu bionic/restricted armhf Packages      
Ign:24 http://us.archive.ubuntu.com/ubuntu bionic/universe armhf Packages        
Ign:25 http://us.archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages                         
Ign:21 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages                               
Ign:23 http://us.archive.ubuntu.com/ubuntu bionic/restricted armhf Packages                         
Ign:24 http://us.archive.ubuntu.com/ubuntu bionic/universe armhf Packages                           
Ign:25 http://us.archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages   
Err:21 http://us.archive.ubuntu.com/ubuntu bionic/main armhf Packages         
  404  Not Found [IP: 91.189.91.26 80]
Ign:23 http://us.archive.ubuntu.com/ubuntu bionic/restricted armhf Packages   
Ign:24 http://us.archive.ubuntu.com/ubuntu bionic/universe armhf Packages     
Ign:25 http://us.archive.ubuntu.com/ubuntu bionic/multiverse armhf Packages   
Hit:26 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease      
Ign:28 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages 
Get:29 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [480 kB]
Get:30 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [284 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [561 kB]
Get:32 http://us.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [207 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [278 kB]
Get:34 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [66.6 kB]
Get:35 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [123 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages [6,488 B]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Ign:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
Ign:65 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
Ign:66 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
Ign:28 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
Ign:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
Ign:65 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
Ign:66 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
Ign:28 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
Ign:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
Ign:65 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Ign:66 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
Err:28 http://us.archive.ubuntu.com/ubuntu bionic-updates/main armhf Packages
  404  Not Found [IP: 91.189.91.26 80]
Ign:36 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted armhf Packages
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Get:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages [187 kB]
Ign:65 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe armhf Packages
Ign:66 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse armhf Packages
Ign:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages
Ign:71 http://security.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
Ign:72 http://security.ubuntu.com/ubuntu bionic-security/universe armhf Packages
Ign:73 http://security.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
Ign:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages
Ign:71 http://security.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
Ign:72 http://security.ubuntu.com/ubuntu bionic-security/universe armhf Packages
Ign:73 http://security.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
Ign:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages
Ign:71 http://security.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
Ign:72 http://security.ubuntu.com/ubuntu bionic-security/universe armhf Packages
Ign:73 http://security.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
Err:42 http://security.ubuntu.com/ubuntu bionic-security/main armhf Packages
  404  Not Found [IP: 91.189.88.161 80]
Ign:71 http://security.ubuntu.com/ubuntu bionic-security/restricted armhf Packages
Ign:72 http://security.ubuntu.com/ubuntu bionic-security/universe armhf Packages
Ign:73 http://security.ubuntu.com/ubuntu bionic-security/multiverse armhf Packages
Reading package lists... Done
W: GPG error: http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist Release: The following signatures were invalid: 492EAFE8CD016A07919F1D2B9ECBEC467F0CEB10
E: The repository 'http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist Release' 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.
N: Skipping acquire of configured file 'mysql-apt-config/binary-armhf/Packages' as repository 'http://repo.mysql.com/apt/ubuntu bionic InRelease' doesn't support architecture 'armhf'
N: Skipping acquire of configured file 'mysql-5.7/binary-armhf/Packages' as repository 'http://repo.mysql.com/apt/ubuntu bionic InRelease' doesn't support architecture 'armhf'
N: Skipping acquire of configured file 'mysql-tools/binary-armhf/Packages' as repository 'http://repo.mysql.com/apt/ubuntu bionic InRelease' doesn't support architecture 'armhf'

答案1

您应该完全禁用系统中的非 x86 存储库。

您可以通过以下命令检查有问题的行:

grep -r "^deb.*armhf" /etc/apt/sources.list* --include="*.list"

然后手动禁用这些存储库软件与更新software-properties-gtk)或手动编辑相关*.list文件。

不要忘记sudo apt-get update在更改后运行。

如果您确定armhf没有找到*.list- 那么armhf使用以下命令删除体系结构:

sudo dpkg --remove-architecture armhf
sudo apt-get update

可以通过禁用此 repo 来删除有关的最后一条错误消息http://downloads-distro.mongodb.org/repo/ubuntu-upstart。似乎您不需要它,因为您的 18.04 LTS(Bionic Beaver)不再使用,upstart并且它是systemd基于的。另请注意,18.04 LTS 已经具有MongoDB 3.6.3,而有问题的存储库提供 2.6.x

相关内容