-1

I just tried to update using apt-get command and it shows

bash: apt-get: command not found

And my sources.list is always empty although i add the repositories.

I use Kali Linux

I have no idea what to do.

6
  • 1
    I guess I'm too late, but why would Kali not ship with apt? Or was removed afterwards?
    – Braiam
    Nov 9 '17 at 15:56
  • @Braiam It appears the OP ditched it by mistake, see this question in meta: unix.meta.stackexchange.com/questions/4657/…
    – dr_
    Nov 9 '17 at 16:37
  • @dr01 I'm pretty sure apt is in the essential segment of both debian and Kali, so they would have had to consciously and deliberately disable multiple safeguards specifically designed to prevent such "mistakes"...
    – Shadur
    Nov 12 '17 at 11:39
  • @Shadur And are you surprised by so? ;)
    – dr_
    Nov 12 '17 at 16:07
  • 4
    "I use Kali Linux and I have no idea what to do" pretty much sums up so many of these questions.
    – Shadur
    Nov 12 '17 at 18:50
7

The latest version of Kali Linux is based on Debian testing. On Kali rolling the apt version is 1.6~alpha3. Go to the Debian -- package search results -- apt webpage and manually download the apt package that matches the architecture of your Kali Linux (e.g. amd64). When you click the architecture link it will take you to a download page where you can choose a download mirror that is close to your physical location.

Then install the apt package from the terminal using a command of the form: sudo dpkg -i <package-name-of-downloaded-apt>

0

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.