linux - debian apt-get 权限被拒绝

标签 linux debian ovh

使用 debian linux 主机 (OVH pro) 当我运行 apt-get install Supervisor 时,我得到了

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?

而且当我运行 su 时,它询问的密码似乎与我的 ftp 不同,我得到(身份验证失败)我该如何解决这个问题?请

最佳答案

您需要以 super 用户权限运行apt-get;作为 root 或使用 sudo。尝试 sudo su - 更改为 root 用户。这需要您的密码。如果您使用 su - 它需要 root 用户的密码。 或者,您可以使用 sudo apt-get installsupervisor 获得相同的结果。

关于linux - debian apt-get 权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34162716/

相关文章:

PHP:从文件访问目录

linux - Alsa异步回调

php - Laravel 5.1 和 ovh 问题

linux - Nmon 分析器自动化问题

c - 为什么我们在linux c程序的开始调用signal函数?

logging - 我可以使用相同的命令 grep 压缩文件和未压缩文件吗

ubuntu - 奇怪的 CGI 错误

c - 在 libwget 中启用 cookie 会导致段错误

php - 在 OVH 上更改版本 php

linux - 连接被端口22的XX.XX.XX.XX关闭