每当我尝试运行时:
apt --fix-broken install
表明:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
如何解决这个问题?
答案1
在命令前加上sudo
,如下所示:
sudo apt --fix-broken install
这将授予您运行命令所需的权限apt
。