我对 ubuntu 很陌生。我今天才安装。我尝试通过在终端中输入命令来更新软件,如下所示
pranay@Hom-lnx:~$ sudo apt-get update && sudo apt-get upgrade
[sudo] password for pranay:
输入密码后我收到此错误
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
我尝试在论坛上搜索,但找不到有用的链接。请提供一些建议
答案1
请重启您的系统。因为您的管理目录已被其他进程锁定。因此重启将产生奇迹。希望对您有所帮助!
答案2
使用 -
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update
它将解决你的问题。