我正在尝试更新我的 Linux Mint 17.1。
但如果我发出这个命令,
sudo apt-get update
它给出以下错误。
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
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?
正如错误中引用的,该lock
文件如下所示,
更新:
在给出评论后,我关闭了我的突触包管理器并尝试了,但它给出了以下内容
sudo apt-get update
[sudo] password for biostat:
Err http://ppa.launchpad.net trusty InRelease
Err http://ppa.launchpad.net trusty InRelease
Err http://ppa.launchpad.net trusty InRelease
Err http://ppa.launchpad.net trusty InRelease
Err http://ppa.launchpad.net trusty InRelease
Err http://ppa.launchpad.net saucy InRelease
Err http://ppa.launchpad.net trusty Release.gpg
Unable to connect to ppa.launchpad.net:http:
Err http://ppa.launchpad.net trusty Release.gpg
Unable to connect to ppa.launchpad.net:http:
Err http://ppa.launchpad.net trusty Release.gpg
Unable to connect to ppa.launchpad.net:http:
Err http://ppa.launchpad.net trusty Release.gpg
Unable to connect to ppa.launchpad.net:http:
Err http://ppa.launchpad.net trusty Release.gpg
Unable to connect to ppa.launchpad.net:http:
Err http://ppa.launchpad.net saucy Release.gpg
Unable to connect to ppa.launchpad.net:http:
Err http://liveusb.info all InRelease
Err http://dl.google.com stable InRelease
Err http://liveusb.info all Release.gpg
Unable to connect to liveusb.info:http:
Err http://dl.google.com stable Release.gpg
Cannot initiate the connection to dl.google.com:80 (2a00:1450:400d:807::200e). - connect (101: Network is unreachable) [IP: 2a00:1450:400d:807::200e 80]
Err http://www.remastersys.com quantal InRelease
Err http://www.remastersys.com quantal Release.gpg
Unable to connect to www.remastersys.com:http:
Err http://archive.canonical.com trusty InRelease
Err http://archive.canonical.com trusty Release.gpg
Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::1b 80]
Err http://packages.linuxmint.com rebecca InRelease
Err http://packages.linuxmint.com rebecca Release.gpg
Unable to connect to packages.linuxmint.com:http: [IP: 68.235.39.11 80]
Err http://extra.linuxmint.com rebecca InRelease
Err http://extra.linuxmint.com rebecca Release.gpg
Unable to connect to extra.linuxmint.com:http: [IP: 68.235.39.11 80]
Err http://security.ubuntu.com trusty-security InRelease
Err http://security.ubuntu.com trusty-security Release.gpg
Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
Err http://archive.ubuntu.com trusty InRelease
Err http://archive.ubuntu.com trusty-updates InRelease
Err http://archive.ubuntu.com trusty Release.gpg
Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
Err http://archive.ubuntu.com trusty-updates Release.gpg
Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
Reading package lists... Done
W: Failed to fetch http://liveusb.info/multisystem/depot/dists/all/InRelease
W: Failed to fetch http://www.remastersys.com/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/aims/sagemath/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/InRelease
W: Failed to fetch http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://packages.linuxmint.com/dists/rebecca/InRelease
W: Failed to fetch http://extra.linuxmint.com/dists/rebecca/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://ppa.launchpad.net/webupd8team/tor-browser/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/saucy/InRelease
W: Failed to fetch http://ppa.launchpad.net/aims/sagemath/ubuntu/dists/trusty/Release.gpg Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/trusty/Release.gpg Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/dists/trusty/Release.gpg Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/trusty/Release.gpg Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/webupd8team/tor-browser/ubuntu/dists/trusty/Release.gpg Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/saucy/Release.gpg Unable to connect to ppa.launchpad.net:http:
W: Failed to fetch http://liveusb.info/multisystem/depot/dists/all/Release.gpg Unable to connect to liveusb.info:http:
W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg Cannot initiate the connection to dl.google.com:80 (2a00:1450:400d:807::200e). - connect (101: Network is unreachable) [IP: 2a00:1450:400d:807::200e 80]
W: Failed to fetch http://www.remastersys.com/ubuntu/dists/quantal/Release.gpg Unable to connect to www.remastersys.com:http:
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg Cannot initiate the connection to archive.canonical.com:80 (2001:67c:1360:8c01::1b). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::1b 80]
W: Failed to fetch http://packages.linuxmint.com/dists/rebecca/Release.gpg Unable to connect to packages.linuxmint.com:http: [IP: 68.235.39.11 80]
W: Failed to fetch http://extra.linuxmint.com/dists/rebecca/Release.gpg Unable to connect to extra.linuxmint.com:http: [IP: 68.235.39.11 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::15). - connect (101: Network is unreachable) [IP: 2001:67c:1562::15 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
biostat@biostat-HP-Compaq-dc5750-Microtower ~ $
答案1
关闭 Synaptic 包管理器并重试。