sudo apt-get update 冻结。没有错误消息

sudo apt-get update 冻结。没有错误消息
$ sudo apt-get update
Hit http://ppa.launchpad.net trusty InRelease
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://repository.spotify.com stable InRelease                             
Hit http://ppa.launchpad.net trusty/main Translation-en                        
Hit http://repository.spotify.com stable/non-free amd64 Packages               
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://repository.spotify.com stable/non-free i386 Packages                
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Ign http://ppa.launchpad.net trusty/main Translation-en_US                     
Ign http://ppa.launchpad.net trusty/main Translation-en                        
Ign http://repository.spotify.com stable/non-free Translation-en_US            
Ign http://repository.spotify.com stable/non-free Translation-en               
Ign http://extras.ubuntu.com trusty InRelease                                  
Hit http://extras.ubuntu.com trusty Release.gpg                                
Hit http://extras.ubuntu.com trusty Release                                    
Hit http://extras.ubuntu.com trusty/main Sources                               
Hit http://extras.ubuntu.com trusty/main amd64 Packages                        
Hit http://extras.ubuntu.com trusty/main i386 Packages                         
Ign http://extras.ubuntu.com trusty/main Translation-en_US                     
Ign http://extras.ubuntu.com trusty/main Translation-en                        
100% [Connecting to us.archive.ubuntu.com (2001:67c:1562::16)] [Connecting to s

它总是在那一行停止更新,并会停留在那一行几个小时。我也无法从 Ubuntu 下载新软件。

我应该怎么办?

答案1

看起来你的源文件可能已损坏。

打开终端并输入

此命令将删除您的 sources.list

sudo rm /etc/apt/sources.list

现在sources.list通过打开终端并输入来重新生成

sudo software-properties-gtk

勾选所有软件源,然后单击“关闭”。

在此处输入图片描述

然后尝试运行

sudo apt-get update

相关内容