如何在 Debian Stable 中配置 apt-get,无法获得锁定 /var/lib/dpkg/lock
How to configure apt-get in Debian Stable, Could not get lock /var/lib/dpkg/lock
我正在使用稳定版 Debian (8.1 - jessie),安装自 Live (debian-live-8.1.0-amd64-xfce-desktop.iso)...
现在,开始安装所有其他东西,没有什么是可能的 (!)...apt-get
和 Synaptic 不工作...
与 apt-get install apache2
: "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?".
with Synaptic 接口:标记 apache2
, ... 当我按下 [apply] 时,它说,在警报中,"Could not apply changes, Fix broken packages first".
注意事项
我在桌面界面中使用 root
登录,并执行(没有错误提示)所有建议的更新,
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install -f
没什么可怕的问题...是/etc/apt/sources.list
,需要评论旧的并添加新的
# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150606-15:13]/ jessie main
#deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150606-15:13]/ jessie main
#lixio deb http://security.debian.org/ jessie/updates main
#lixo deb-src http://security.debian.org/ jessie/updates main
deb http://ftp.br.debian.org/debian jessie main contrib non-free
deb-src http://ftp.br.debian.org/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
我正在使用稳定版 Debian (8.1 - jessie),安装自 Live (debian-live-8.1.0-amd64-xfce-desktop.iso)...
现在,开始安装所有其他东西,没有什么是可能的 (!)...apt-get
和 Synaptic 不工作...
与
apt-get install apache2
: "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?".with Synaptic 接口:标记
apache2
, ... 当我按下 [apply] 时,它说,在警报中,"Could not apply changes, Fix broken packages first".
注意事项
我在桌面界面中使用 root
登录,并执行(没有错误提示)所有建议的更新,
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install -f
没什么可怕的问题...是/etc/apt/sources.list
,需要评论旧的并添加新的
# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150606-15:13]/ jessie main #deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150606-15:13]/ jessie main #lixio deb http://security.debian.org/ jessie/updates main #lixo deb-src http://security.debian.org/ jessie/updates main deb http://ftp.br.debian.org/debian jessie main contrib non-free deb-src http://ftp.br.debian.org/debian jessie main contrib non-free deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main