ubuntu 18.04.1界面版,apt install python3-pip 出现 could not get lock /var/lib/dpkg/lock-frontend报错
root@always-virtual-machine:/home/always# cat /proc/version Linux version 5.3.0-40-generic (buildd@lcy01-amd64-024) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 root@always-virtual-machine:/home/always# apt install python3-pip 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 rm /var/cache/apt/archives/lock-frontend sudo rm /var/lib/dpkg/lock-frontend
当执行命令错误时,此为找不到该文件,不必理会,执行完成后再执行安装软件命令,就可以安装软件了。