Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have only wireless connection, one computer with a connection and 4gb usb .

My second computer has no network connection, because I have deleted it from the software center. However, now I want to re-install it. How can I do that?

share|improve this question
If anyone reading this has a wired connection, just run sudo dhclient eth0 (or whatever your device is called, see ifconfig -a). – Zaz Apr 16 '14 at 16:00
@Josh Thanks, I was looking for that command, gave up and resorted to re-installing network-manager, then that search led me here. Worked instantly. – gnomed Apr 14 '15 at 3:01
up vote 12 down vote accepted

In case you only removed just Network Manager with the Software Center it is quite easy to reinstall by downloading only 2 packages from another machine connected to the internet:

  • Using, download the network-manager package from a software mirror close to you. Take care to choose the appropriate architecture (amd64 for 64-bit, i386 for 32-bit), and release version of your installed OS.
  • Download network-manager-gnome package likewise (am64 or i386).
  • copy both files on your spare USB pen drive and take it to the broken machine.
    (e.g. network-manager-gnome_0.8xxx.deb and network-manager_0.8xxx.deb)
  • Install network-manager and network-manager-gnome simply by double-clicking on these two .deb files. This opens the Ubuntu Software Center or Gdebi for reinstallation.
  • After a reboot (or just logging out and logging back in) the network manager will run and uses your previous settings as before.

Note: This was not tested for the case when network-manager was removed in other ways, and if other applications were removed that may have deleted additional dependencies.

share|improve this answer

The following describes how to establish a wireless network connection via command line utilities.

I think this is a better option because it gives you the useful ability to interface with relevant command line utilities.

  1. Use ifconfig -a to identify your wireless card. From hence forward, I will assume it's eth1.
  2. sudo ifconfig eth1 up
  3. iwlist eth1 scan to find available networks. iwlist eth1 scan | less if it's a long list.
  4. sudo iwconfig eth1 essid [network] [key [pass]] Also, read man iwconfig to figure out how the wifi password is entered. You might also need to configure the channel and stuff.
    1. If you use WPA, wpa_supplicant will be necessary.
  5. sudo dhclient eth1
share|improve this answer

I had the same problem. I was on one and only computer - off-line and could not re-install Network manager. However, booting up in the root screen allowed an internet connection. I still could not install the network manager, but I was able to apt-get install wicd.

After doing that, I booted up again, this time to the GNOME window GUI and wicd was there in the applications. It sets up internet connection as does NetworkManager. But to be extra safe, I then installed network manager again since I was back online and able to do so. I have both now and feel more secure.

The first time a power line crash removed network manger and left me offline, I had to do a complete new installation as I did not know about wicd. I'm glad to have learned of it this time, and glad it is easy to install from the root directory.

share|improve this answer

I have never done it, but my understanding is that you can enable the cd as a repository from in the software centre

enter image description here

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.