我已经设置了一个 ssh 用户并将该用户添加到 sudo 用户中。
但是当我通过 ssh 连接并想要安装某些东西时,apt-get install
出现了这个错误
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 2.)
debconf: falling back to frontend: Readline
dpkg: error: requested operation requires superuser privilege
我该如何解决这个问题?
提前致谢
答案1
要调用 sudo 权限,您需要在命令前面加上sudo
空格。