我已经在 Azure 上创建了一个 Ubuntu VM,但是在尝试安装程序时遇到了一些问题。带有sudo
和不带有的命令sudo
:
ali@Azure:~$ sudo apt-get update
bash: sudo: command not found
ali@Azure:~$ apt-get update
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/E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
ali@Azure:~$