Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Few days ago I tried to install the iceweasel browser, but got no result. After searching a little I understood that there is a problem with my sources.list.

But now I don't know how to edit, replace or what to compare it with? How to proceed with it? I got one more link having entries of sources.list as

deb http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free

Are this links useful in any sense ?

Result for cat /etc/apt/sources.list is

deb cdrom:[Debian GNU/Linux 7.0 Kali - Official Snapshot i386 LIVE/INSTALL Binary 20130327-18:35]/ kali contrib main non-free 
share|improve this question
    
The contents of your sources.list will depend on what distribution you are using. Is this Debian? Ubuntu? Mint? Kali? –  terdon Jul 16 '13 at 14:34
    
It's debian distribution –  wek Jul 16 '13 at 14:37
    
OK, Debian, not Ubuntu right? What does grep -E "_ID|CODENA" /etc/lsb-release return? Also,please post (edit your question, do not answer with a comment) the contents of your /etc/apt/sources.list file. –  terdon Jul 16 '13 at 14:39
    
grep: /etc/lsb-release: No such file or directory. How to see source.list content I don't know.Please can you give a command for it –  wek Jul 16 '13 at 14:44
    
Hey I am using kali OS but I think its based on debian –  wek Jul 16 '13 at 14:44

1 Answer 1

up vote 2 down vote accepted

According to the Kali FAQ you linked to, your sources.list should contain exactly whatyou have posted. Follow these steps to make it so:

  1. Open a terminal and run

    sudo gedit `/etc/apt/sources.list`
    

    I am not sure if gedit is installed by default. Apparently, Kali uses gvim as its default editor, if you know how to use vim and gedit is not installed, replace gedit with gvim in the command above. If you don't know how to use vim, try nano instead.

  2. Edit the file so that its contents are:

    deb http://http.kali.org/kali kali main contrib non-free
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    deb cdrom:[Debian GNU/Linux 7.0 Kali - Official Snapshot i386 LIVE/INSTALL Binary 20130327-18:35]/ kali contrib main non-free 
    
  3. Save the file, close the editor and run

    sudo apt-get update
    
  4. You should now be able to install iceweasel with this command:

    sudo apt-get install iceweasel
    

I must stress that if you don't know how to do these things, Kali is not the right distribution for you. You should consider switching to something else.

share|improve this answer
    
But every distribution will have some or the other problem.I picked this because I want to learn security.And on one of the another form one guy suggested me something like you do but with more links.Here is the link.Can you suggest me if this is right. –  wek Jul 16 '13 at 15:28
    
@wek yes, every distribution has different problems. You are using a distribution that is targeted at expert users, this is really not a good lace to start. You can learn about security using ANY Linux, Kali is not designed to help you learn, it assumes you already do. Why don't you have a look at Mint or Ubuntu or any of these? As for the other answer, it is the same idea, I gave you the minimal version, both are correct. –  terdon Jul 16 '13 at 15:32
    
Thanks very very much terdon. Yes you are right,I will switch to Ubuntu first.I am kind of lazy guy and avoid to install all the security softwares . So I choosed this distribution.I will inform you if its a sucess.You helped me a lot. :) –  wek Jul 16 '13 at 15:37
    
You're very welcome (remember to accept my answer and the one on U&L if we answered your question). –  terdon Jul 16 '13 at 15:48
    
Thanks a lot terdon.I finally fixed it with your guidance.however it took 2 hrs to fix 13 MB software.What is U&L. –  wek Jul 16 '13 at 17:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.