E: Could not get lock varlibdpkglock-frontend - open (11: Resource temporarily unavailable)

    科技2024-10-11  31

    在linux系统下键入apt-get install sudo弹出错误为

    E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

    E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

    由于在登录用户后已经键入两行命令

    sudo docker start 用户名#之后键入密码(不会显示已经输入)按回车即可 sudo docker exec -it 用户名/bin/bash

    因此已经进入到了root用户权限下,之后输入的suto 指令(例如sudo rm /var/lib/dpkg/lock命令)直接去掉sudo执行即可。

    Processed: 0.011, SQL: 8