Sujay Kundu

Sujay Kundu

Sujay Kundu is a Certified Web developer and Digital Marketing Expert. He is currently working as Nodejs Developer at Katerra. Know more about him..

Kali Linux Problems - Solved

Posted on January 16, 2020

If you are a begineer in Kali Linux , You may have encountered several problems while your installation with kali like no sound , graphics issue and all.The best solutions are listed here.

So this post might help you solve the problems

How to Solve VMWare gcc error --------------------------------------------

How to Solve Bluetooth Problem in Kali Linux --------------------------------------------------

This video explains the process to fix bluetooth in kali linux

How to Solve No Sound or Mute Problem in Kali Linux

First Time When You Install Kali Linux , You might encounter this problem . Your Sound and audio is muted.

Just Type the following command in your terminal .

$ systemctl --user enable pulseaudio && systemctl --user start pulseaudio

How To Solve Grub Rescue Screen in Kali Linux**

Find out which devices are available by typing ls Set to the correct value :

    set prefix=(hd0,1)/grub
    set root=(hd0,1)
    insmod normal

The above commands will get you out of the rescue mode to the normal terminal mode. After the above commands you can go ahead and start the rest of the settings.

    insmod linux
    linux /vmlinuz root=/dev/sdXY ro 

If the above command doesnt work try this :

    linux /boot/vmlinuz-3.2.0-14-generic root=/dev/sda1 ro

Additionally dont forget to update your grub Update the GRUB config file.:

$ sudo update-grub

Reinstallation of Grub on the device:

$ sudo grub-install /dev/sdX

hope it helps

How To Install .deb file in Kali Linux

When you use apt to install a package, internally it uses dpkg. When you install a package using apt, it first creates a list of all the dependencies and downloads it from the repository. Once the download is finished it calls dpkg to install all those files, satisfying all the dependencies. So if you have a .deb file:

  • You can install it using sudo dpkg -i /path/to/deb/file followed by sudo apt-get install -f.
  • You can install it using apt-get install package_name. But first move your deb file to /var/cache/apt/archives/ directory. After executing this command, it will automatically download its dependencies.
  • Install gdebi and open your .deb file using it (Right-click -> Open with). It will install your .deb package with all its dependencies.

    (Note: APT maintains the package index which is a database of available packages available in repo defined in /etc/apt/sources.list file and in the /etc/apt/sources.list.d directory. All these methods will fail to satisfy the software dependency if the dependencies required by the deb is not present in the package index.)

How to Solve Unable to Update Packages (apt-get) install Problems

Recently i figured out that i was unable to install any package using my terminal with the command sudo apt-get install , every time i do so , it shows up a error message saying

Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package npm

This was really very important to solve. Follow this steps to solve yours too

Go to this Official Documentation of Kali for Repository Sources

Then Go Down To Check The Active Repository

It Should look something like this

The Kali Rolling Repository

kali-rolling is our current active repository since the release of Kali 2016.1. Kali Rolling users are expected to have the following entries in their sources.list:

deb kali-rolling main contrib non-free # For source package access, uncomment the following line # deb-src kali-rolling main contrib non-free

Copy the repository links

Now open a new terminal , and type

leafpad /etc/apt/sources.list

This will open a text file sources.list in leafpad

replace the contents of that file , with the ones you copied

Save the file and close it.

Now type

sudo apt-get update

This will update the package lists , will take some time. All done.

You can now use the apt-get install command for latest packages.

How to Solve Node NPM Registry Problems When You Are Behing a Corporate Proxy o in College SSL

Open a Terminal ,

$ sudo npm config set registry