how to fix source.list

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 kali main contrib non-free
deb 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 
11

1 Answer

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 kali main contrib non-free
    deb 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.

7

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like