Ubuntu 19.04 运行 apt update 时出现问题

Ubuntu 19.04 运行 apt update 时出现问题

我正在尝试在 Ubuntu 19.04 中安装 phpmyadmin,但遇到了以下问题。有人能帮我吗?

我的问题与一些人提到的所有问题都不同。我不确定他们在哪里找到了相似之处,但通过查看他们的问题,我的问题肯定是不同的。

sudo apt update
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:3 https://repo.skype.com/deb stable InRelease                              
Hit:4 http://security.ubuntu.com/ubuntu disco-security InRelease               
Hit:5 http://repo.mysql.com/apt/ubuntu disco InRelease                         
Hit:6 http://dl.google.com/linux/chrome/deb stable Release                     
Hit:8 http://linux.teamviewer.com/deb stable InRelease                         
Hit:9 http://archive.ubuntu.com/ubuntu disco InRelease                         
Hit:10 http://packages.microsoft.com/repos/vscode stable InRelease             
Err:11 http://in.mirrors.ustc.edu.cn/ubuntu disco InRelease                    
  Connection failed [IP: 202.141.176.110 80]
Err:12 http://in.mirrors.ustc.edu.cn/ubuntu disco-updates InRelease
  Connection failed [IP: 202.141.176.110 80]
Err:13 http://in.mirrors.ustc.edu.cn/ubuntu disco-backports InRelease
  Connection failed [IP: 202.141.176.110 80]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://in.mirrors.ustc.edu.cn/ubuntu/dists/disco/InRelease  Connection failed [IP: 202.141.176.110 80]
W: Failed to fetch http://in.mirrors.ustc.edu.cn/ubuntu/dists/disco-updates/InRelease  Connection failed [IP: 202.141.176.110 80]
W: Failed to fetch http://in.mirrors.ustc.edu.cn/ubuntu/dists/disco-backports/InRelease  Connection failed [IP: 202.141.176.110 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

这是命令的输出sudo apt-get update

Hit:1 http://linux.teamviewer.com/deb stable InRelease
Hit:2 http://repo.mysql.com/apt/ubuntu disco InRelease                         
Hit:3 https://repo.skype.com/deb stable InRelease                              
Hit:4 http://packages.microsoft.com/repos/vscode stable InRelease              
Get:5 http://security.ubuntu.com/ubuntu disco-security InRelease [97.5 kB]     
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu disco InRelease               
Hit:7 https://download.docker.com/linux/ubuntu bionic InRelease                
Ign:8 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:9 http://archive.ubuntu.com/ubuntu disco InRelease                         
Hit:10 http://dl.google.com/linux/chrome/deb stable Release         
Err:12 http://in.mirrors.ustc.edu.cn/ubuntu disco InRelease                    
  Connection failed [IP: 202.141.176.110 80]
Err:13 http://in.mirrors.ustc.edu.cn/ubuntu disco-updates InRelease
  Connection failed [IP: 202.141.176.110 80]
Err:14 http://in.mirrors.ustc.edu.cn/ubuntu disco-backports InRelease
  Connection failed [IP: 202.141.176.110 80]
Fetched 97.5 kB in 16s (6,182 B/s)                        
Reading package lists... Done
W: Failed to fetch http://in.mirrors.ustc.edu.cn/ubuntu/dists/disco/InRelease  Connection failed [IP: 202.141.176.110 80]
W: Failed to fetch http://in.mirrors.ustc.edu.cn/ubuntu/dists/disco-updates/InRelease  Connection failed [IP: 202.141.176.110 80]
W: Failed to fetch http://in.mirrors.ustc.edu.cn/ubuntu/dists/disco-backports/InRelease  Connection failed [IP: 202.141.176.110 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

我发现我sources.list的一些源链接不再存在。它们是在我尝试安装其他软件时添加的。因此,每次我尝试运行更新时,系统都无法获取必要的软件包。

我能够使用这篇文章中的答案解决这个问题通过替换来源列表

现在,我的问题已解决,我可以安装其他软件了。

相关内容