Ubuntu – how to install a network manager on Ubuntu

downloadsnetworkingsoftware installation

I uninstalled my network manager trying to fix a problem. Now I have no network manager and therefore no internet. So I need one and I need to install it?

Best Answer

I did not realize the OP could not connect to the internet. You don't need a network manager to connect to the internet. Don't waste your time looking for a different computer and transferring the files. If you have an Ethernet cable connect the computer directly to the modem and then:

sudo nano /etc/network/interfaces

Append the following lines to the end of the file:

allow-hotplug eth0
iface eth0 inet dhcp

Ctrl+X to exit and Y to save. Then:

sudo ifdown eth0
sudo ifup eth0

You should get an internet connection. If you do not have a DHCP server use the following instead (if you don't know if you have a DHCP server, then you probably have one so nevermind the following):

iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254

Replacing the address, netmask and gateway values with the ones you are used to.

If you cannot possibly connect the computer directly to the modem, you can also manually connect to a wireless AP, though it's much more complicated.

After connecting to the internet:

sudo apt-get install network-manager

or wicd instead of network-manager - it's the one I use.

If you are not on the sudoers list issue su to become root and then do all the commands without sudo.

Related Question