我已经安装了 Kali Linux 2020.1 的 Vmware Workstation Player 15。
当我尝试在 vmware kali 上更新时,出现以下错误:
Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
我也尝试过该sudo rm /var/lib/apt/lists/
命令,但它也不起作用,它给了我这个错误:
rm: cannot remove '/var/lib/apt/lists/': Is a directory.
有什么建议吗?
答案1
你可能有
- 忘记用 sudo 运行 apt
过时的锁定文件。将其删除
sudo rm /var/lib/apt/lists/lock