加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 23:19:24 所属栏目:Linux 来源:网络整理
导读:我刚在笔记本电脑上安装了debian 8,当我尝试使用“sudo”时,它回复了 bash:sudo:找不到命令 我用的时候 /usr/bin/sudo 它回答说 bash: /usr/bin/sudo: No such file or directory 然后,当我尝试用’apt-get’安装它时,我得到了这个 Reading package lists.
我刚在笔记本电脑上安装了debian 8,当我尝试使用“sudo”时,它回复了

bash:sudo:找不到命令

我用的时候

/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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读