Debian:找不到deb命令。我该如何解决? [英] Debian: deb command not found. How can i fix it?
问题描述
我正在尝试在台式机上安装图形卡Nvidia Geforce 660。操作系统:debian 8。
I am trying to install graphics card Nvidia Geforce 660 on my desktop. Os: debian 8.
以下是提供指导的Wiki: https://wiki.debian.org/NvidiaGraphicsDrivers#jessie-304xx
Here is the wiki which gives guidelines : https://wiki.debian.org/NvidiaGraphicsDrivers#jessie-304xx
但是,一旦我迈出第一步:
But as soon as I am on the first step:
deb http://http.debian.net/debian/ jessie main contrib non-free
bash: deb: command not found
我如何安装deb?
推荐答案
指令是
添加 contrib和非自由表示/etc/apt/sources.list的组件,例如
Add "contrib" and "non-free" components to /etc/apt/sources.list, for example
即,您应该使用文本编辑器将该行添加到给定文件中。您不应该在命令行上执行它。
I.e., you're supposed to add that line to the given file with a text editor. You are not supposed to execute it on a command line.
您还可以安装 software-properties-common 软件包:
sudo apt-get install software-properties-common
之后,您可以运行以下命令:
Afterwhich you can run the command below:
sudo add-apt-repository "deb http://http.debian.net/debian/ jessie main contrib non-free"
您可以使用以下命令确认存储库已添加到存储库列表中:
You can confirm that the repository was added to the list of repositories using this command:
sudo nano /etc/apt/sources.list
仅此而已。
我希望这会有所帮助
这篇关于Debian:找不到deb命令。我该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!