-1 command-line apt vmware vmware-workstation 19.10
我是 Ubuntu 的初学者,目前在我使用的终端中使用 Ubuntu 19.10
apt-get update
Run Code Online (Sandbox Code Playgroud)
出现了这个错误
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)
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?我在 VMware Workstation 15 Pro 上使用 Ubuntu 19.10,并在第一次午餐时使用“软件更新”进行了更新
您无法apt-get update以简单用户身份运行。
正如错误所说
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
Run Code Online (Sandbox Code Playgroud)
为此,您需要管理员权限
相反,使用 sudo 来获取管理员权限
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3592 次 |
| 最近记录: |