如何在 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-getSynaptic 不工作...


注意事项

我在桌面界面中使用 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