因此我升级到了 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
但似乎没有什么工作!