Tuesday, April 25, 2017

No network after upgrade from 16.04 to 16.10 || 17.04 to 17.10

This is a bug that hits the linux system that's been upgraded from Ubuntu 16.04  ( Xenial ) to 16.10 ( Yakkety ).

Quick fix:

>> sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
>> sudo service network-manager restart

Or upgrade to the latest version of Network-Manager package on Yakkety

>> sudo apt-get install network-manager
>> sudo service network-manager restart 


Now, why this bug ?? ( Its very interesting )

Seems a simple typo introduced this bug :)

 if dpkg --compare-versions "$2" le-nl "1.2.2-0ubuntu4"; then
  mkdir -p /etc/NetworkManager/conf.d || true
  # for old versions, override the global config with a null config
  touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf

le-nl should have been ge-nl ! All new installs need this override, not older ones :)


Upgrading from 17.04 (Zesty Zapus) to 17.10 (Artful Aardvark) again broke by Ethernet LAN connection, after trying out the above solution, which did not work. The solution described below
http://iiit.blogspot.in/2012/06/ubuntu-ethernet-controller-problem-with.html
worked.  I am a happy man now, though again I had to waste couple of hours debugging this issue.