Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How to install network-manager without internet access?

Writer Matthew Harrington

I have been trying to install some kind of network indicator to show my current bandwidth usage on the panel on top of the screen so I decided to install

But just after I have put sudo apt-get install indicator-network I have uninstalled a bunch of vital ubuntu applications e.g. network manager - which was my fault because Ubuntu warned me about it but hey! - why would it mark these applications to remove while installing just an indicator ?

Now I am unable to connect to the internet with that machine on Ubuntu. How can I install network manager back or install it from the USB boot drive with 12.04 that I have ?

4

3 Answers

You don't need NetworkManager to connect to a network. Assuming you're using automatic configuration (probably you are) you just need to sudo dhclient eth0 to get an IP address (replace eth0 with your network device if that's the case).

4
sudo apt-get install network-manager

Will fail. Note what dependencies are needed to install the package. Mine were-

The following NEW packages will be installed: iputils-arping libnl-route-3-200 modemmanager network-manager network-manager-gnome usb-modeswitch usb-modeswitch-data wpasupplicant

The download will fail obviously with error:

Failed to fetch
Could not resolve 'us.archive.ubuntu.com

Download all such links which gives above error including network-manager by some other system. I downloaded the following links-

The links above does not contain the link of network-manager itself. You can download it from here; 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.

Now copy the deb files to /var/cache/apt/archives/

Run sudo-apt-get install network-manager in terminal. Now it will pick up deb files from cache and will not prompt to download them. If all goes well network-manager will be installed.

Finally reboot the system.

I had the same issue. I managed to connect to wireless like this for WPA APs

wpa_passphrase networkname password > foo.conf
killall -9 wpa_supplicant
sudo wpa_supplicant -Dwext -i wlan0 -c foo.conf

If you're using WEP then than you can do it with

iwconfig wlan0 essid network
iwconfig wlan0 key password

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy