Unfortunately, I uninstalled network-manager-gnome using 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?
|
|
|||||
|
then you will have internet and you can use...
|
|||||||||||||
|
|
If you've recently upgraded your network manager you can use
|
|||||||||||||||||||||
|
The above command will purge all the packages that was related to the service
Now you have the package |
|||||||||||||
|
|
This answer assumes that you had internet access before losing network-manager or any other packages. Live CD/DVD/USBCreate a bootable Ubuntu CD/DVD or USB stick, boot from it and select "Try Ubuntu without installing". Once you get to the Ubuntu desktop, open a terminal. Root PartitionYou need to find out your root partition on your Ubuntu installation. On a standard Ubuntu installation, the root partition is "/dev/sda1", but it may be different for you. To figure out what's the root partition, run the following command:
This will display a list of hard disks and partitions from which you'll have to figure out which one is the root partition. Below in step 3, ROOT-PARTITION is the root partition you just found, for example /dev/sda2 in my case. Chroot Into Your Root PartitionTo make sure a certain partition is the root partition, you can mount it. So let's mount the root partition along with the /sys, /proc, /run and /dev partitions and enter chroot:
If you get an error about resolv.conf being identical when copying it, just ignore it. Copying resolv.conf gets the network working, at least for me (using DHCP). Update/Install PackagesNow you can update the system - in the same terminal, type:
If you have problems on the last step, make sure your sources are correct in /etc/apt/sources.list - in the same terminal, type:
Since you've chrooted into your Ubuntu installation, the changes you make affect it and not the Live CD, as long as all changes are made in the same terminal session. Reboot when finished and remove the Live CD. If this answer fixes your problem, please mark it correct. Thanks! |
|||||||||||||
|
|
Follow official Ubuntu communuty LiveCdRecovery Update Failure section: (https://help.ubuntu.com/community/LiveCdRecovery):
This helped to fix the same issue on my Ubunty 14.04LTS |
|||
|
|
|
I know I'm a little late on this but I just ran into this same problem. I installed arping (sudo apt-get install arping) which removed iputils-arping, network-manager, and network-manager-gnome. I edited the /etc/network/interface file to setup a manual IP for eth0.
Change x, y, z, a, c, and d to your network settings. I then ran "sudo service network-interface restart INTERFACE=eth0" to restart the interface. This allowed my to reinstall network manager (sudo apt-get install network-manager). I had to purge the arping package I installed before network manager would reinstall. Then start network manager (sudo service network-manager start). Once I had network manager running I changed /etc/network/interface back to default (and kept a copy of the manual change just in case). Hopefully this helps. |
|||
|
|
|
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. Run
You may see something like this (from the cited link):
Run
That should give information like this (from cited link):
Then run:
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 |
|||||||||
|
|
Just solved this same problem, follow these simple steps:
Done :) |
||||
|
|
|
For me, it turned out that I accidentally deleted Restoring the file from a live USB solved the issue. |
|||
|
|
|
Manually configure your ethernet card in /etc/network/interfaces and restart the networking service. Then apt-get update. |
|||||||||
|