PDA

View Full Version : Network Manager interface deleted by mistake



Narender24
2015-07-25, 12:37
Hey I am pretty new to kali linux yesterday i was trying to fix the vpn grayed out problem which i successfully did i was able to add the vpn gateway n stuff but vpn wasn't connection after i clicked on vpn profile nothing happens no error nothing , So i turned off the pc for a while & after i get back to pc i was surprised
because my network manager was no more there which mean i am not able to access internet now

http://prntscr.com/7wt32h

What i did was i made some changes in repositories then i revert it back to officials one which are as below



## Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

Then i did

apt-get clean

apt-get update

apt-get upgrade

after that


aptitude -r install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome

At this point everything was fine i was able to add vpn (But it wasn't connecting tho)

So after reading for the solution of that i saw that someone actually posted a solution to this & that was


Have you tried to edit the /etc/network/interfaces file and the /etc/NetworkManager/NetworkManager.conf file? Edit /etc/network/interfaces and put a '#' in front of everything except these lines


So i edited that too but even that didn't fixed the problem so i turned off the pc & after i boot it again network manager was gone :/

Now so far what i did to resolve this problem

i edited the network manager n network interface back to default tried to remove network-manager from apt-get remove network-manager then installing the .deb package for network-manager. But still no success :3

Any help would be really appreciated

Thanks!

skycrazy
2015-07-25, 14:58
Ill guess you did from terminal. service network-manager start ? Have you any ethernet available you could plug into for the apt-get remove network-manager and apt-get install network-manager ?

Narender24
2015-07-25, 19:01
Ill guess you did from terminal. service network-manager start ? Have you any ethernet available you could plug into for the apt-get remove network-manager and apt-get install network-manager ?

Nope i didn't started network-manager from terminal all i did was run the command


aptitude -r install network-manager-openvpn-gnome network-manager-pptp network-manager-pptp-gnome network-manager-strongswan network-manager-vpnc network-manager-vpnc-gnome

I am using the kali os in vmware station as a virtual os & i have a wifi but i can directly insert my ethernet on to my laptop as well but i don't think that will make any difference tho, Correct me if i am wrong :/