【问题标题】:bash: sudo: command not found on debian jessie [closed]bash:sudo:在debian jessie上找不到命令[关闭]
【发布时间】:2015-09-11 05:05:03
【问题描述】:

我最近在笔记本电脑上安装了 debian 8,当我尝试使用“sudo”时,它回复了

bash: sudo: command not found

我用的时候

/usr/bin/sudo

回复了

bash: /usr/bin/sudo: No such file or directory

然后当我尝试使用 'apt-get' 安装它时,我得到了这个

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  sudo
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/850 kB of archives.
After this operation, 2,694 kB of additional disk space will be used.
Media change: please insert the disc labeled
 'Debian GNU/Linux 8.0.0 _Jessie_ - Official amd64 CD Binary-1 20150425-12:54'
in the drive '/media/cdrom/' and press enter

我用 USB 闪存安装它,但我没有 cd 映像 我该怎么办?

【问题讨论】:

  • 我找到了! /etc/apt/source.list 中的 source.list 是空的!对于有同样问题的人:转到下面的链接并找到您的国家并将链接复制到 source.list 或搜索 debian 源列表生成器debian.org/mirror/list-full
  • 请将您的解决方案添加为正确的“答案”并将其标记为“已接受”,这样问题就不会在搜索需要答案的问题时出现。

标签: linux debian sudo


【解决方案1】:

我找到了! /etc/apt/source.list 中的 source.list 是空的!对于有同样问题的人:转到下面的链接并找到您的国家并将链接复制到 source.list 或搜索 debian 源列表生成器 debian.org/mirror/list-full

【讨论】:

    【解决方案2】:

    尝试“sudo su”来获得 root 访问权限,而不是只尝试“sudo”。希望对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-01-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-21
      • 2016-01-05
      • 1970-01-01
      相关资源
      最近更新 更多