JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

ubuntu 报错 E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)

发布时间 2023-03-22 21:12:53作者: 一个人的孤独自白

比如输入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即可。

    本栏目推荐文章
  • 安装了open-vm-tools,还是没有办法拖文件到虚拟机或者将虚拟机的文件拖出来。
  • open打开文件教程
  • OPEN SQL取单条数据DEMO
  • MySQL记录锁、间隙锁、临键锁(Next-Key Locks)加锁过程
  • open a camera in pylon
  • message报错 crond postdrop maildrop permission denied
  • Ansible 报错 Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
  • An unexpected error has occurred while opening the workflow. See the event log on the AOS and contact your system administrator to resolve the issue.
  • 解决Nginx报error while loading shared libraries: libjemalloc.so.2: cannot open
  • P9194 [USACO23OPEN] Triples of Cows P 题解
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们