apt-get update 错误!

apt-get update 错误!

我是一个新的 Ubuntu 用户。请帮助我。

apt-get 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)

答案1

不知道是否有帮助:

权限问题:你必须apt以 root 或 sudoer 身份执行操作,即: - 以 root 身份登录(危险) - 成为 sudoer 然后你可以这样编写命令:

$ sudo apt-get update

另一个有类似错误/警告的问题:您无法apt同时执行操作 = 检查是否有其他apt进程正在运行 - 在另一个控制台中可能运行aptitude,在 Xwindows 中运行Synaptics。其他进程确实锁定了必要的库、包列表等。

祝你好运

相关内容