最近每当我尝试通过终端更新时,我都会收到此消息
E: could not open lock file /var/lib/apt/lists/lock - open (13: permission denied)
E: unable to lock directory /var/lib/apt/lists/
E: could not open lock file /var/lib/dpkg/lock - open (13: permission denied)
E: unable to lock administration directory (/var/lib/dpkg/), are you root?
我正在使用 ubuntu 14.04.1,到目前为止 apt-get 一直运行良好
答案1
要运行这样的命令您需要特殊权限。
使用sudo
,但要小心。它可能会要求输入密码,即 root 密码。