To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
andy@andy-Aspire-5750:~$ 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)
andy@andy-Aspire-5750:~$
你能帮忙解读一下吗?
答案1
apt-get update
需要修改可用软件包的系统缓存。您必须以超级用户身份运行此类命令。
运行sudo apt update
以更新包列表,并sudo apt install packagename
安装包,或者sudo apt upgrade
升级。