-3

I tried running sudo apt-get install apktool and got:

Reading package list... Done
Reading dependency tree... Done
Reading state information... Done
E: Unable to locate package apktool

I ran sudo apt-get update and got:

Ign:1 http://security.kali.org/kali-security sana/updates InRelease
Ign:2 http://http.kali.org/kali sana InRelease   
Err:3 http://http.kali.org/kali sana Release     
  404  Not Found [IP: 192.99.200.113 80]
Ign:1 http://security.kali.org/kali-security sana/updates InRelease
Ign:1 http://security.kali.org/kali-security sana/updates InRelease
Err:1 http://security.kali.org/kali-security sana/updates InRelease
  Could not resolve 'security.kali.org'
Reading package lists... Done
E: The repository 'http://http.kali.org/kali sana Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

How can I make apt-get work so I can install stuff?

Also: I am running kali as a vm in VMware... It is connected to the internet, but not sure if that is the problem.

Kovy Jacob
  • 85
  • 5
  • 2
    https://unix.meta.stackexchange.com/questions/5360/why-is-kali-linux-so-hard-to-set-up-why-wont-people-help-me/5361#5361 – Romeo Ninov Feb 20 '22 at 07:43
  • @RomeoNinov Humor me? – Kovy Jacob Feb 20 '22 at 07:45
  • 2
    No, read the Q/A. And if you ask this question, Kali is not for you. – Romeo Ninov Feb 20 '22 at 07:48
  • @RomeoNinov well thanks for the tip. The thing is, I only want kali for the specific tools kali has, and because every tutorial I watch uses kali. I guess I'll have to figure it out the hard way... – Kovy Jacob Feb 20 '22 at 07:53
  • As it is mentioned in the Q/A reinstall from fresh copy and then continue. And if you want to use `apktool` follow installation guide: https://ibotpeaches.github.io/Apktool/install/ As this tool need only `java` you can install it on virtually ANY Linux distribution – Romeo Ninov Feb 20 '22 at 07:56
  • 1
    @RomeoNinov Okay, thanks so much. And sorry if I'm an annoying newbie... – Kovy Jacob Feb 20 '22 at 07:58
  • 2
    Does this answer your question? [Can't get updates to Kali with updated source.list: "does not have a Release file"](https://unix.stackexchange.com/questions/608004/cant-get-updates-to-kali-with-updated-source-list-does-not-have-a-release-fil) – Stewart Feb 20 '22 at 08:06
  • @Stewart when I run apt-get clean && apt-get purge && apt autoremove (like in the question) I get E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? – Kovy Jacob Feb 20 '22 at 08:20
  • Run the commands as `root`: `sudo apt-get .....` – Romeo Ninov Feb 20 '22 at 08:21
  • @RomeoNinov I am... – Kovy Jacob Feb 20 '22 at 08:23
  • If you can't aquire the `dpkg` frontend, then that means you are either not root, or another process is already using it. At this point you should really read this: https://unix.meta.stackexchange.com/q/5360/272848 – Stewart Feb 20 '22 at 08:47
  • @Stewart You're the 2nd person to send me that! Is this question famous? – Kovy Jacob Feb 20 '22 at 08:52
  • 1
    @KovyJacob It saves a lot of repetition. Usually, anyway. – Paul_Pedant Feb 20 '22 at 09:29
  • @Paul_pedant what does? – Kovy Jacob Feb 20 '22 at 09:29
  • 2
    We see hundreds of kali install questions like this. Most people don't have the energy to answer them anymore. Most of those questions aren't answered anymore. It's a phenomenon unique to Kali. Ubuntu/Debian/Fedora/Redhat/Arch/Mint/ElementaryOS users don't have these types of problems. – Stewart Feb 20 '22 at 09:43
  • @Stewart The phenomena is the amount of questions or the unwillingness to answer ;-) – Kovy Jacob Feb 20 '22 at 09:44
  • @stewart Joking – Kovy Jacob Feb 20 '22 at 09:45
  • 1
    Does this answer your question? [Getting errors while updating Kali linux](https://unix.stackexchange.com/questions/423173/getting-errors-while-updating-kali-linux) – roaima Feb 20 '22 at 21:19
  • 4
    The phenomenon is "people who have no unix/linux experience ignoring the big fat warnings on Kali's own homepage about how it isn't meant for and shouldn't be used by beginners or as a desktop system, resulting in a flood of questions that are all best answered by 'For the love of gods or demons, *please* install something other than Kali if you're serious about learning linux"' " – Shadur Feb 21 '22 at 12:24
  • @shadur I'm not going to pretend to be a linux purist looking to learn linux, I merely want Kaliu for all the preinstalled tools. – Kovy Jacob Feb 25 '22 at 18:45
  • 1
    Purism has nothing to do with it. The fact that *Kali linux is not designed to be used by people who don't know linux* is. – Shadur Feb 25 '22 at 21:31
  • @shadur I guess I'll have to suffer through... – Kovy Jacob Mar 01 '22 at 01:09

2 Answers2

1

The generic recommendation is to install fresh copy of Kali Linux. This and few other things are explained in this meta Q/A.

You do not need Kali to run apktool. Just follow the installation guide and you will be able to install it on virtually any Linux distribution (where you can install java).

Romeo Ninov
  • 16,541
  • 5
  • 32
  • 44
-1

Kali Sana is an EOL release, it is no longer maintained. You need to migrate from Kali Sana to Kali rolling. Upgrading the installed system is not guaranteed, a fresh installation is more suitable, as said @Romeo Ninov.

Next step; The apktool is available in Kali repositories:

sudo apt install apktool

The VMware image can be downloaded from here. (Don't make chage the sources.list)

GAD3R
  • 63,407
  • 31
  • 131
  • 192
  • I downloaded the vmware file from kali.org 4 days ago and didn't change anything... How would a fresh installation help? – Kovy Jacob Feb 21 '22 at 01:06
  • @KovyJacob you should download the vmare image from here https://www.kali.org/get-kali/#kali-virtual-machines – GAD3R Feb 23 '22 at 17:54