bash:sudo:在debian jessie上找不到命令

时间:2015-09-11 05:05:03

标签: linux debian sudo

我刚在笔记本电脑上安装了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映像 我该怎么办?

2 个答案:

答案 0 :(得分:3)

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

答案 1 :(得分:-3)

尝试" sudo su"获取root权限而不是只尝试" sudo"。希望它有所帮助