ubuntu1@iZ60ayk75fwmy5Z:~$ apt-get update Reading package lists... Done 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)
时间: 2023-08-08 13:06:01 浏览: 119
sudo apt-get update时的问题
这个问题是由于没有足够的权限来执行apt-get update命令导致的。你需要以root用户或者使用sudo命令来执行这个命令。尝试以下命令:
```
sudo apt-get update
```
系统会提示你输入密码,输入你的用户密码然后按Enter键。这样应该就能够成功执行apt-get update命令了。
阅读全文