bash: sudo: 在 debian jessie 上找不到命令
bash: sudo: command not found on debian jessie
最近我在我的笔记本电脑上安装了 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
我是用U盘安装的,没有CD镜像
我该怎么办?
尝试 "sudo su" 获取 root 访问权限,而不是仅尝试 "sudo"。希望对你有帮助
我找到了! source.list 在 /etc/apt/source.list 中是空的!对于有同样问题的人:转到下面的 link 并找到您的国家并将 links 复制到 source.list 或搜索 debian 源列表生成器
debian.org/mirror/list-full
最近我在我的笔记本电脑上安装了 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
我是用U盘安装的,没有CD镜像 我该怎么办?
尝试 "sudo su" 获取 root 访问权限,而不是仅尝试 "sudo"。希望对你有帮助
我找到了! source.list 在 /etc/apt/source.list 中是空的!对于有同样问题的人:转到下面的 link 并找到您的国家并将 links 复制到 source.list 或搜索 debian 源列表生成器 debian.org/mirror/list-full