E:无法获取锁 /var/lib/apt/lists/lock。它由进程 1165 (packagekitd) 持有

E:无法获取锁 /var/lib/apt/lists/lock。它由进程 1165 (packagekitd) 持有

我是 ubuntu 新手,最近在系统上安装了 ubuntu 20.04。安装时,我收到此错误: PCIe bus error severity=corrected type=physical layer (receiver id) 遇到此问题时,我这样做了:在 grub 文件中的 GRUB_CMDLINE_LINUX_DEFAULT 末尾添加 pci=noaer。

然后我的 kern.log 文件变得非常大,大到占据了我的整个根文件夹。为此,我使用互联网连接安装了 ubuntu。这个问题也解决了。

现在运行时sudo apt update出现此错误:

E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1165 (packagekitd)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/

我甚至不能删除这个锁定文件;因为我的整个系统会崩溃,

你能帮我解决这个错误吗? 我将非常感谢整个社区。

相关内容