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:
apt-get upgrade -y
apt-get dist-upgrade -y
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 🙂