I was trying to install VirtualBox in Kali Linux but somehow ended up screwing up whole system two times.
What I did :
Updated the repository to the following:
deb http:// http.kali.org/kali kali-rolling main contrib non-free deb http:// old.kali.org/kali sana main non-free contrib
apt update && apt -y dist-upgradeapt-get install virtualbox
After this I opened virtualbox from the terminal. However it opened and gave error that I need to install virtualbox-dkms. It installed successfully (no errors) but when I tried to open virtualbox there was same error as mentioned above. So, I remembered something, while I was installing dkms it showed few line: which stated COULDN'T FIND LINUX HEADERS. But as far I have searched dist-upgrade should have upgraded the kernel headers. Isn't it? So, next I ran
Next
apt-get install gcc make linux-headers-$(uname -r)Error:
Couldnt find any package by glob 'linux-headers-4.3.0-kali-amd64
I found a similar post (Cannot find linux-headers-4.3.0-kali-amd64) and tried the solutions presented there but it was of no help. I was still searching web for some solution, one post suggested that I should run apt -y install open-vm-tools-desktop fuse. I am so dumb, without doing any further research about it. I simply ran it and did a reboot. After that Kali was not able to find any WiFi network connection. So I checked ifconfig but it did not have any wlan0, however eth0 and local host is still there.
My Problems :
- When I try to open VirtualBox it gives error.
Not able to connect to the internet via WiFi after running
apt -y install open-vm-tools-desktop fuseAfter this I searched a little bit more and found the following link: http://docs.kali.org/general-use/install-vmware-tools-kali-guest. I guess from heading only it is clear that it was for Kali Guest.
Is there any way to revert back, so Linux could connect to web. How do I fix VirtualBox? I am sure secure boot is off and virtualization is enabled.
1:
After running lspci -knn | grep Net -A2
Output-
08:00.0 Network controller [0280]: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe [1814:3290] Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter [103c:18ec] Kernel driver in use: rt2800pci
2:
As suggested to Check the available kernels :
apt-cache search linux-image
Install the latest linux-image and the linux-headers:
apt-get install linux-image-X.Y...
apt-get install linux-headers-X.Y...
I installed the top two search result and did a reboot and to my shock again WiFi connection was gone again(it was a fresh install). How can it be happening? Did something went wrong while installng linux-image? but when I run uname -r is shows 4.8.0 earlier it was 4.6.0
lspci -knn | grep Net -A2