执行命令:source /etc/apt/sources.list 时,报错:Command 'deb' not found, did you mean: command 'dab' from deb bsdgames (2.17-28build1) command 'derb' from deb icu-devtools (66.1-2ubuntu2.1) command 'deb3' from deb quilt (0.65-3) command 'debc' from deb devscripts (2.20.2ubuntu2) command 'dex' from deb dex (0.8.0-2) command 'debi' from deb devscripts (2.20.2ubuntu2) command 'dep' from deb go-dep (0.5.4-3ubuntu0.1) command 'dub' from deb dub (1.19.0-1build2.1) command 'edb' from deb edb-debugger (1.0.0-1build3) Try: apt install <deb name> Command 'deb' not found, did you mean: command 'dub' from deb dub (1.19.0-1build2.1) command 'edb' from deb edb-debugger (1.0.0-1build3) command 'dex' from deb dex (0.8.0-2) command 'debc' from deb devscripts (2.20.2ubuntu2) command 'deb3' from deb quilt (0.65-3) command 'debi' from deb devscripts (2.20.2ubuntu2) command 'dep' from deb go-dep (0.5.4-3ubuntu0.1) command 'dab' from deb bsdgames (2.17-28build1) command 'derb' from deb icu-devtools (66.1-2ubuntu2.1) Try: apt install <deb name> deb-src: command not found
时间: 2023-07-28 12:06:49 浏览: 504
这个错误提示看起来很奇怪,因为它似乎在尝试执行一个命令 'deb',但是在Ubuntu中并没有这个命令。实际上,这个命令应该是在/etc/apt/sources.list文件中的一个关键字,用于指定软件源。因此,我建议你检查一下这个文件,看看是否有任何语法错误,或者是否有任何未知的关键字。你可以使用以下命令来检查此文件:
```
sudo nano /etc/apt/sources.list
```
如果你发现有任何语法错误,请修复它们并保存文件。然后运行以下命令以重新加载软件包列表:
```
sudo apt update
```
如果你仍然遇到相同的错误,请尝试重新安装apt软件包:
```
sudo apt install --reinstall apt
```
希望这可以解决你的问题。
相关问题
source /etc/apt/sources.list Command 'deb' not found, did you mean: command 'deb3' from deb quilt (0.65-3) command 'derb' from deb icu-devtools (66.1-2ubuntu2.1) command 'dub' from deb dub (1.19.0-1build2.1) command 'debc' from deb devscripts (2.20.2ubuntu2) command 'dab' from deb bsdgames (2.17-28build1) command 'edb' from deb edb-debugger (1.0.0-1build3) command 'debi' from deb devscripts (2.20.2ubuntu2) command 'dep' from deb go-dep (0.5.4-3ubuntu0.1) command 'dex' from deb dex (0.8.0-2) Try: sudo apt install <deb name>
It seems like the 'deb' command is not recognized. You can try running the following command to install it:
```
sudo apt install debian-archive-keyring
```
Then, try running the 'source /etc/apt/sources.list' command again.
阅读全文