ubuntu 报错 E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
比如输入apt-get install eclipse,或者apt-get update ,apt-get install git 会提示
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?
无法打开锁文件 /var/lib/dpkg/lock - open (13: 权限不够) 无法对状态列表目录加锁(/var/lib/dpkg/),请查看您是否正以 root 用户运行?
解决方案:在命令前加入sudo即可。