Linux·Ubuntu16.04 sudo apt-get update更新失败的问题

miaolegemi@ubuntu:~$ sudo apt-get update
[sudo] password for miaolegemi: 
Sorry, try again.
[sudo] password for miaolegemi: 
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu xenial InRelease
Hit:4 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease                
Hit:5 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease              
Hit:6 http://mirrors.aliyun.com/ubuntu xenial-security InRelease               
Hit:7 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial InRelease    
Err:8 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease        
  Could not connect to archive.ubuntukylin.com:10006 (120.26.139.159). - connect (111: Connection refused)
W: Failed to fetch http://archive.ubuntukylin.com:10006/ubuntukylin/dists/xenial/InRelease  Could not connect to archive.ubuntukylin.com:10006 (120.26.139.159). - connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

以上是报错代码片段
里面问题主要是两个部分

  • 首先第一个
			Err:8 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease        
		    Could not connect to archive.ubuntukylin.com:10006 (120.26.139.159). - connect (111: Connection refused)

而这个部分指的是搜狗拼音更新问题。因为无所谓搜狗拼音更新所以我选择取消了他的更新,操作如下:
1.进入系统设置:
Linux·Ubuntu16.04 sudo apt-get update更新失败的问题_第1张图片
2.选择软件更新选项:
Linux·Ubuntu16.04 sudo apt-get update更新失败的问题_第2张图片
3.进入其他软件更新,将最下方的那个(箭头指的选项)去掉勾(我已经去掉了)
Linux·Ubuntu16.04 sudo apt-get update更新失败的问题_第3张图片

  • 另一个问题
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

这个是在其他博主上看到的
详情点击

解决办法:
在终端敲入这两句命令:

           sudo rm /var/cache/apt/archives/lock
           sudo rm /var/lib/dpkg/lock

over(=·w·=)

你可能感兴趣的:(Linux学习)