Debian: deb command not found. How can i fix it? [closed]

◇◆丶佛笑我妖孽 提交于 2020-12-05 07:16:18

问题


I am trying to install graphics card Nvidia Geforce 660 on my desktop. Os: debian 8.

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

How can I install deb?


回答1:


The instruction is

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.

You can also install the software-properties-common package:

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

That's all.

I hope this helps



来源:https://stackoverflow.com/questions/30854687/debian-deb-command-not-found-how-can-i-fix-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!