E: Could not get lock /var/lib/dpkg/lock-frontend ...

    选择打赏方式


This may happen if

'Synaptic Package Manager' or 'Software Updater' is open.

Some apt command is running in Terminal.

Some apt process is running in background.

For above wait for the process to complete. If this does not happen run in terminal:


sudo killall apt apt-get


If none of the above works, remove the lock files. Run in terminal:


sudo rm /var/lib/apt/lists/lock

sudo rm /var/cache/apt/archives/lock

sudo rm /var/lib/dpkg/lock*


then reconfigure the packages. Run in terminal:

sudo dpkg --configure -a

and

sudo apt update


That should do the job.


版权声明:若无特殊注明,本文皆为《 zuoer 》原创,转载请保留文章出处。
本文链接:E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) [duplicate] https://www.zuoer.xin/?post=66
正文到此结束

热门推荐

管理员已关闭本篇文章评论!