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 the administration directory (/var/lib/dpkg/), are you root?
怎么办?我正在尝试安装 tor,但无法运行命令
apt-get update
我收到了上述错误。
答案1
您需要以 root 用户身份运行此命令,或者至少使用它sudo
授予您超级用户权限。
尝试:
sudo apt-get update
希望有帮助!