![打开缓存时出错(/var/lib/dpkg/status 上的 E:flAbspath 失败 - realpath(13:权限被拒绝))](https://linux22.com/image/1017902/%E6%89%93%E5%BC%80%E7%BC%93%E5%AD%98%E6%97%B6%E5%87%BA%E9%94%99%EF%BC%88%2Fvar%2Flib%2Fdpkg%2Fstatus%20%E4%B8%8A%E7%9A%84%20E%3AflAbspath%20%E5%A4%B1%E8%B4%A5%20-%20realpath%EF%BC%8813%EF%BC%9A%E6%9D%83%E9%99%90%E8%A2%AB%E6%8B%92%E7%BB%9D%EF%BC%89%EF%BC%89.png)
因此我升级到了 Ubuntu 20.04 LTS,然后我的桌面顶部栏开始出现此错误:
Error opening the cache(E:flAbspath on /var/lib/dpkg/status failed - realpath (13:permission denied),
E: could not open file - open(2: No such file or directory),
E: Problem opening,
E: The Package list or status file could not be parsed or open).
This usually means that your installed packages have unmet dependencies.
当我使用时,sudo apt update
我也会收到警告:
W: 下载以非沙盒形式以 root 身份执行,因为文件 '/var/lib/apt/lists/partial/mirror.de.leaseweb.net_ubuntu_dists_focal_InRelease' 无法被用户 '_apt' 访问。- pkgAcquire::Run (13:权限被拒绝)
我检查了 /var/lib/dpkg/status 中的状态文件,文件如下:
-rw-r--r-- 1 root root 3192885 5月 16 11:12 /var/lib/dpkg/status
我还将 /var/lib/apt/lists/partial/ 的所有权更改为,_apt:root
但似乎没有什么工作!