5

My networking was working fine yesterday. I shut down, went to bed, and when I booted up this morning it won't even talk to the router; network-manager crashes.

I was wondering how to upgrade packages when it can't connect to the internet. My Ubuntu 15.10 laptop (this machine) connects to the internet through the same router just fine. Some of the error report:

Title

NetworkManager crashed with SIGSEGV in nm_netlink_monitor_attach()

Unreportable reason

  You have some obsolete package versions installed.
  Please upgrade the following packages and check if the problem still occurs:

  network-manager, libnm-glib-vpn1, libnm-glib4, libnm-util2, network-manager
Braiam
  • 69,112

3 Answers3

14

I had the same problem today. I had to setup the connection manually via command line to get to the internet and then I upgraded Ubuntu. After the upgrade it works fine. If you have DHCP on your router and using the cable, just type the following two commands:

sudo ifconfig eth0 up
sudo dhclient

It helped me to connect to the inernet and to update Ubuntu. After the update it works as yesterday. I have no idea why this happened.

I am not sure how to do it if you use WiFi. I am not sure replacing eth0 with wlan0 will work. If you use WiFi password protection, the procedure to connect via command line is more complicated. Some pointers in this case: https://unix.stackexchange.com/questions/92799/connecting-to-wifi-network-through-command-line, https://unix.stackexchange.com/questions/90778/how-to-bring-up-a-wi-fi-interface-from-a-command-line

You can also try to download packages to another computer and transfer them to your laptop and install them there. Here are the instructions how to install updates without internet connection: https://help.ubuntu.com/community/InstallingSoftware#Installing_packages_without_an_Internet_connection

nobody
  • 4,412
1

The solution proposed by 'nobody' hasn't worked for me as my computer was unable to connect via ethernet and "sudo dhclient" didn't give any output.

This worked for me: Solution if you're unable to connect via ethernet.

The step 2 proposed by 'r2rien' worked as a charm and it is really simple, just download the three files (libnl, libnl-genl, libnl-route) in an online computer, put them in a USB stick and install them in the offline Linux via:

sudo dpkg -i libnl-*.deb

then you just have to restart the service with:

sudo service network-manager restart
mcejalvo
  • 111
0

I have the same problem, but I can't start network. ifconfig shows only the device lo. So I start the PC with CD in live mode. I mount the disk with the installed system (/dev/sdax) Then I open a terminal and do the follow:

mkdir sdax 
sudo mount /dev/sdax sdax
sudo mount -o bind /dev /home/ubuntu-user/sdax/dev
sudo mount -o bind /proc /home/ubuntu-user/sdax/proc
sudo mount -o bind /sys /home/ubuntu-user/sdax/sys
sudo chroot /home/ubuntu-user/sdax
echo "nameserver 8.8.8.8" > /etc/resolv.conf
apt-get update
apt-get upgrade
^d
umount /dev/sdax

The "x" is the partittionnumber from the installed system

Then I reboot the system and it works.