Ubuntu – I accidentally deleted the network-manager and don’t have access to internet anymore


I cannot connect to any wifi connection since I deleted the network-manager. Is there any way to get it from another computer and then install it on mine or is there a way I can get an internet connection without the network-manager?

Best Answer

  • I suggest you edit a file:

    gksudo gedit /etc/network/interfaces

    Amend it to read:

    auto lo
    iface lo inet loopback
    auto wlan0
    iface wlan0 inet dhcp
    wpa-essid myssid
    wpa-psk mypasscode

    Restart the interface:

    sudo ifdown wlan0 && sudo ifup -v wlan0


    ping -c3 www.ubuntu.com

    If you get ping results, you are connected. If you wish, you may reinstall Network Manager and revert the file you amended to remove the wlan0 stanza.