-2

Whenever I do apt-get update on my Kali system, it only downloads from one source.

root@anonymous # apt-get update
Hit:1 http://kali.download/kali kali-rolling InRelease
Reading package lists... Done

What should I do?


My sources.list is fine:

root@anonymous:/etc/apt# cat sources.list
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
  • 1
    Please edit your question to include new information, instead of posting answers. – Panki May 21 at 9:07
3

apt-get is working as intended.

Only the sources.lst lines beginning with the deb keyword are used in downloading regular binary packages.

The lines beginning with the deb-src keyword are for downloading source packages only, e.g. with apt-get source <package name>. You would use that only if you plan to compile a package from source code, for example because you have an experimental source code patch for it.

1

Check your sources list in /etc/apt/sources.list., It got modified somehow probably and/or your sources list might be probably missing or commented out the sources.

Here is the list of their resources Kali Linux Sources List

try to edit your sources.list, I believe it is in /etc/apt/sources.list.


Only one source are included in sources.list in kali linux so it's basically normal.

Kali rolling users should have these entries in their /etc/apt/sources.list file:

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

The deb-src is optional.

In case you require source packages, you might also want to add the following repositories as well: deb-src http://http.kali.org/kali kali-rolling main non-free contrib

Source: https://docs.kali.org/faq/kali-sources-list-faq

Your Answer

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

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