bash:sudo:在 debian jessie 上找不到命令[关闭]

问题描述 投票:0回答:2

我最近在我的笔记本电脑上安装了 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
linux debian sudo
2个回答
3
投票

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


-3
投票

尝试“sudo su”来获取 root 访问权限,而不是仅尝试“sudo”。希望有帮助

© www.soinside.com 2019 - 2024. All rights reserved.