2015-09-11 72 views
3

新我在我的筆記本電腦安裝的debian 8,當我試圖用「命令」它回答的bash:命令:Debian的傑西找不到命令

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映像 我應該怎麼辦?

+0

我發現它!在/etc/apt/source.list中的source.list爲 爲空! 對於有同樣問題的人:轉到下面的鏈接,找到你的國家和複製鏈接到source.list或搜索debian源列表生成器 https://www.debian.org/mirror/list-full – SlashArash

+0

請添加您的解決方案作爲適當的「答案」並將其標記爲「已接受」,因此該問題不會顯示在搜索需要回答的問題上。 –

回答

2

我發現它! /etc/apt/source.list中的source.list是空的!對於有同樣問題的人:去下面的鏈接,找到你的國家,並複製鏈接到source.list或搜索debian源列表生成器 debian.org/mirror/list-full

-3

嘗試「sudo su」獲取root訪問權限,而不是隻嘗試「sudo」。希望它有幫助