14.04 - Network manager stopped working
Solution 1
I got the same problem today.
TLDR: downgrade libnl3
or upgrade network-manager
.
As per this answer, problem is that a fix in libnl3
caused a regression in network-manager
. Then, it was only a bug for -proposed
packages, but I guess bug was tested enough that it could be introduced into regular Ubuntu ;).
Safest way is to take a step back and install earlier versions of libnl-3-200 libnl-genl-3-200 libnl-route-3-200
(see details in said answer).
This leaves you with downgraded packages. Remember to not upgrade them until relevant upgrade for network-manager
is available.
Alternatively (I did this), you can take a step ahead and install newer version of network-manager
:
for amd64 or for i386. You can download package on different system and pass it with USB stick. Or download it with your smartphone and pass it via USB.
Install it with:
sudo dpkg -i network-manager_*.deb
You can try to get networking by just restarting NetworkManager:
sudo service network-manager restart
But I needed to reboot to get systray applet back.
Solution 2
This method works if you can connect by Ethernet cable.
Use Ubuntu's built in recovery mode to upgrade Network Manager.
Step 1
Use the down-arrow key to select Advanced options for Ubuntu and press Enter
Step 2
Use down-arrow key to select the latest Linux kernel with Recovery Mode and press Enter
I used Ubuntu, with Linux 4.2.0-36-generic (recovery mode)
Step3
Use down-arrow key to select network Enable Networking and press Enter
Step 4
Press Enter for OK to remount the file system
Step 5
Use the down-arrow key to select dpkg Repair Broken packages and press Enter
Step 6
It will ask to download the latest Network Manager with Continue [Y/n]. Input letter y for "yes" and press Enter. When all operations have finished it will say
Finished. Please press Enter
So press Enter again.
Step 7
Select resume Resume normal boot and press Enter
Step 8
Press Enter and continue to boot. At the login screen DO NOT log in instead do a NORMAL restart (click shutdown icon at the top right area of the screen).
After the PC restarts then log in.
Network connections were back when I did these steps.
Solution 3
You can do it this way to fix the problem:
Download file:
- libnl-3-200_3.2.21-1_XXX.deb
- libnl-route-3-200_3.2.21-1_XXX.deb
-
libnl-genl-3-200_3.2.21-1_XXX.deb
OS 32bit: XXX = i386 || OS 64bit: XXX = amd64
Link: http://archive.ubuntu.com/ubuntu/pool/main/libn/libnl3/
To them into one folder and install them with the command:
sudo dpkg -i lib*.deb
Then Reboot. Done :3
Solution 4
I would not recommend downgrading packages or installing new ones by hand - this will inevitably lead to version issues later on. The best fix to this issue is simply to upgrade the network-manager
package.
The first thing to do is to connect manually to the internet; while the network-manager
is dead this does not mean you can not connect.
1. Open a terminal and edit the interfaces
file:
sudo pico /etc/network/interfaces
There add the following lines, they indicate the eth0
interface should no longer be managed:
allow-hotplug eth0
iface eth0 inet dhcp
2. With this the connection can be started manually:
sudo ifup eth0
Note that there will be no notification in the panel - this is a manual connection. Give it a try with ping
or firing up your internet browser.
3. Now update the apt
meta-data:
sudo apt-get update
And upgrade the network-manager
package:
sudo apt-get upgrade network-manager
4. Make sure you now have version 0.9.8.8-0ubuntu7.3
installed:
apt-cache show network-manager
5. Now edit again the interfaces
file and remove or comment the lines added in step 1.:
sudo pico /etc/network/interfaces
6. Finally reboot the system.
Related videos on Youtube
![talha06](https://i.stack.imgur.com/I4dgE.jpg?s=256&g=1)
talha06
Updated on September 18, 2022Comments
-
talha06 almost 2 years
When I started my laptop, there was no network service, and also no network icon in the top bar. It gives an error when I start OS like "Sorry, Ubuntu 14.04 experienced an internal error". When I click details, it says the error is occurred in the executable path
usr/sbin/NetworkManager
. Also, when I try to enterNetwork
in theSystem Settings
, it says "the system network services are not compatible with this version"How can I solve this shocking issue?
p.s. I didn't install any third party packages/apps related with networking. Only system updates are installed.
-
berdario about 8 yearsfyi: a new issue has been opened on Launchpad: bugs.launchpad.net/ubuntu/+source/libnl3/+bug/1581535
-
Dɑvïd about 8 yearsI'm on a wired connection, and the solution posted in a different Q&A solved it for me.
-
saji89 about 8 yearsThe fixed packages seems to have been uploaded to
trusty-updates
: bugs.launchpad.net/ubuntu/+source/libnl3/+bug/1511735
-
-
Alex Edwards about 8 yearsThis only works with an ethernet connection.
-
Shital Shah about 8 yearsThanks! This worked!! It's too much of a surprise to get your OS lose network after update.
-
MInner about 8 yearsso, do we (14.04) need to avoid network manager updates now?
-
Richa Tibrewal about 8 yearsWhen i select network enable networking... I get modemmanager is shut down
-
Richa Tibrewal about 8 yearsMy system is not getting connected to ethernet... So how will i update the network manager? Moreover the command line that u gave for updating network manager is not working
-
alexandru.topliceanu about 8 yearsI also got a "Modem Manager is shut down" and the system was stuck to that. I then connected my ethernet cable and it started to work again after a few seconds.
-
tamkderplar about 8 years@RichaTibrewal Download them on other OS/PC and pass via USB stick. That's what I did. I fixed the typo in the command as well.
-
UserName about 8 yearsDo @alexandru.topliceanu
-
UserName about 8 yearsIt's also instructive to mention that the
trusty-proposed
updates should be turned off so as not to allow the version incompatibility that causes this in the first place, as detailed on the page that @tamkderplar linked to. -
samy about 8 years@UserName i never had trusty-proposed turned on, but got affected by regular updates yesterday.
-
Dennis J about 8 yearsI never had trusty-proposed updates checked on any of my 5 lab machines either (all 14.04.4), yet I too was impacted by the problem. A major THANK YOU for the resolution, they are all marked as "hold". Now I wonder, how will we be notified when it is ok to update the libraries?
-
Assaf Hershko about 8 yearsThanks for this. Saved the day for me. I am shocked that something like this (virtually bricking an installation) can move from proposed to live, after it was repeatedly flagged as broken when in proposed. I love Linux, and Ubuntu, but whenever something like this happens I am reminded of why I can't recommend it to my parents (i.e. non tech users) just yet :(
-
quapka about 8 years+1 After few failed attempts and almost getting the feel oh no, should I reinstall (last one was like month ago) this worked like a charm. I did also the alternative approach (download NM elsewhere and run from flashdisk).
-
quapka about 8 yearsThis did not work for me. The process sort of stopped after clicking "Yes" in the fourth step. It show some log (don't remember what exactly some "blocking" and "XX/YY". I've let that for almost 30 mins sit and nothing. This worked first time.
-
Luís de Sousa about 8 yearsManually upgrading or downgrading packages is generally bad advice in a system like Ubuntu or Debian.
-
snark about 8 yearsDitto; my PC sort of hung at step 4 too. However, this did work for me.
-
ji-ruh almost 7 yearsdoes not work for me