Can’t download mingw32 on Kali 4.17

Posted: February 8, 2020 in Offense

Mingw is a cross-compiler to compile windows-oriented exploit code into a windows PE executable within the Linux environment. Unfortunately, current version of Kali installed on my VM is 4.17 can’t find mingw32 when I try to download it with (apt-get install mingw32). It returns (E: Unable to locate package mingw32).


  1. Run this command to edit the sources.list (nano /etc/apt/sources.list)
  2. Comment out any repositories by adding # at the beginning of the line
  3.  Add these 2 repositories and save the file:

deb sana main non-free contrib
deb-src sana main non-free contrib

4. Run the following command (apt-get clean && apt-get update)

Now, you should be able to run (apt-get install mingw32). After you’re done, you should comment out the repositories you added and uncomment the ones you commented out earlier. Then run (apt-get clean && apt-get update).

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.