Unfortunately, I uninstalled
sudo apt-get remove --purge network-manager. I was trying to reinstall it from but without internet connection I cannot do so. What is the solution for this?
Unfortunately, I uninstalled
If you've recently upgraded your network manager you can use "sudo apt-get install --reinstall network-manager", but this only works if the package is still in your apt cache. I'm guessing you haven't so you'll have to do things the long way, but I thought I'd throw that in just in case.
Step #1 = Boot an ubuntu livecd in "try without installing". (Make sure you are connected to the internet.)
Step #2 = In terminal type "sudo mount --bind /dev /chrootlocation/dev". (you will need to replace "chrootlocation" with the appropriate location of your ubuntu install, typically the label of the partition it's installed on. The partition must also be mounted so that you can access it.)
Step #3 = In terminal type "sudo mount --bind /proc /chrootlocation/proc".
Step #4 = In terminal type "sudo mount --bind /sys /chrootlocation/sys".
Step #5 = In terminal type "sudo cp /etc/resolv.conf /chrootlocation/etc/resolv.conf".
Step #6 = In terminal type "sudo chroot /chrootlocation".
Step #7 = In terminal type "sudo apt-get update". (If you don't you'll likely get an unable to connect error.)
Step #8 = In terminal type "sudo apt-get install network-manager".
Step #9 = In terminal type "exit". (This exits you from the chroot)
Step #10 = In terminal type "sudo reboot".
My previous answer assumes that the reason you cannot access the internet is because you uninstalled "network-manager", and that normally the computer is connnected to the internet. However on the off chance that I read your question wrong, and this is in fact a computer that isn't ever connected to the internet you will need to use this answer instead though it will be more time consuming.
Step #1 = On another computer (It can be running Windows, doesn't matter), go to "http://packages.ubuntu.com/precise/network-manager". (This link assumes you are using Ubuntu 12.04, if not you will need to find the link appropriate to your version).
Step #2 = At the bottom of the web page there is a link for "amd64" and "i386", click on the approriate one. I'm using amd64 so my steps will assume that.
Step #3 = On the new page there are a bunch of mirror links that are direct download links for "network-manager_0.9.4.0-0ubuntu3_amd64.deb". Pick a link, and download the .deb file.
Step #4 = On the first url I provided it also lists the dependencies for network-manager. You may have some of these still installed, but for the ones you don't you will need to download them as well by visiting their page and selecting a mirror.
Step #5 = Once you've downloaded all the .debs you will be needing transfer them to the Ubuntu computer and put them in "/var/cache/apt/archives". You will need root privileges to do this which can be achieved with "gksu nautilus /var/cache/apt/archives". You could also use dpkg to install them, but it won't tell if you've forgetten a dependency so I'm not going to get into how to use that.
Step #6 = In terminal type "sudo apt-get install --reinstall network-manager".
Take a look at nm-applet crash In UBUNTU 13.04 (Raring) and 13.10 (Saucy) and a simple fix . Although it gets quite technical, it may point you in right course.
You need to use command line because what you have deleted is only GUI. Core program should still be there.
You may see something like this (from the cited link):
That should give information like this (from cited link):
after replacing that device_id with the device_id for your connection. If that doesn't work you can try what works for me (on my system which is 13.10):
Notice it is slightly different and that quotes are needed because of spaces in DSL connection 1.
Just to add that you may also have copy of network-manager-gnome in
I don't know for sure but worth a try! Of course if you also ran
The above command will purge all the packages that was related to the service
Now you have the package