4 steps to fix: Unable to locate package virtualbox-guest-x11 (Kali Linux 2018)

You won’t believe how quickly this Kali Linux issue can be fixed. You just need to add one line to your /etc/apt/sources.list file.

You need to add this line to /etc/apt/sources.list:

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

You can edit the file by using the following steps

  • nano /etc/apt/sources.list + enter
  • add the line (deb http://http.kali.org/kali kali-rolling main contrib non-free)
  • ctrl+x + enter
  • y + enter

The steps which you need to take after you have added the line which will fix the ‘unable to locate package virtualbox-guest-x11’ issue:

  1. apt-get update
  2. apt-get upgrade -y
  3. apt-get dist-upgrade -y
  4. apt-get install linux-headers-$(uname -r)

The steps above will make sure that your system is up to date.

Now go ahead and try to install the virtualbox-guest-x11 package again πŸ™‚