拾点灵犀
提示chmod 0700 of directory /var/lib/apt/lists/partial failed

在安装RASPBIAN STRETCH LITE OS时,执行apt-get update出错:

1
2
3
4
5
6
7
apt update
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)

l4ftpod6.png
这就是提示权限不够,使用:

sudo apt-get update

问题解决。

署名 - 非商业性使用 - 禁止演绎 4.0