Network Manager does not start on boot

Asked by Michael Hooker

I am running Ubuntu 18.04.

This is what I did from a fresh install:

apt-get update
apt-get upgrade

dpkg -l | grep automake

Returned nothing so automake not installed.

I installed automake_1.16.1-1.1ubuntu1_all.deb from here:

https://ubuntu.pkgs.org/18.10/ubuntu-main-i386/automake_1.16.1-1.1ubuntu1_all.deb.html

No errors reported.

I then did:

apt-get install checkinstall build-essential autoconf libtool pkg-config libcurl4-openssl-dev intltool libxml2-dev libgtk2.0-dev libnotify-dev libglib2.0-dev libevent-dev libudev-dev uuid-dev libnss3-dev ppp-dev libjansson-dev libndp-dev libreadline-dev

No errors reported.

I then downloaded and extracted NetworkManager-1.14.4.tar.xz from here:

https://wiki.gnome.org/action/show/Projects/NetworkManager?action=show&redirect=NetworkManager

I entered the directory and ran:

./configure

No errors reported.

I then applied this patch with "patch < Makefile.am.patch"

--- a/Makefile.am
+++ b/Makefile.am
@@ -3880,6 +3880,7 @@ clients_nm_online_LDADD = \
  $(GLIB_LIBS)

 $(clients_nm_online_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
+$(clients_nm_online_OBJECTS): $(libnm_lib_h_pub_mkenums)

 EXTRA_DIST += \
  clients/meson.build
--
2.20.1

No errors reported.

I then ran 'make'. No errors reported.

I then ran "checkinstall'.

No errors reported.

"NetworkManager --version " returned

1.14.1

"systemctl restart NetworkManager" did not report any errors.

Internet access was fine. I thought I was all good. However on reboot "ps -A | grep -i networkmanager" returned nothing. NetworkManager was not running.

"systemctl restart NetworkManager" returned:

Job for NetworkManager.service failed because the control process exited with error code. See "systemctl status NetworkManager.service" and "journalctl -xe" for details.

Output of "systemctl status NetworkManager.service" returned:

NetworkManager.service - Network Manager
   Loaded: loaded (/usr/local/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
  Drop-In: /usr/local/lib/systemd/system/NetworkManager.service.d
           └─NetworkManager-ovs.conf
   Active: failed (Result: exit-code) since Sat 2019-03-09 12:10:40 NZDT; 17s ago
     Docs: man:NetworkManager(8)
  Process: 9340 ExecStart=/usr/local/sbin/NetworkManager --no-daemon (code=exited, status=1/FAILURE)
 Main PID: 9340 (code=exited, status=1/FAILURE)

Mar 09 12:10:39 Ubuntu-18-04 systemd[1]: Failed to start Network Manager.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: NetworkManager.service: Service hold-off time over, scheduling restart.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 5.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: Stopped Network Manager.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: NetworkManager.service: Start request repeated too quickly.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: Failed to start Network Manager.

'journalctl -xe' returned:

-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit NetworkManager.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: Stopped Network Manager.
-- Subject: Unit NetworkManager.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit NetworkManager.service has finished shutting down.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: NetworkManager.service: Start request repeated too quickly.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: Failed to start Network Manager.
-- Subject: Unit NetworkManager.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit NetworkManager.service has failed.
--
-- The result is RESULT.
Mar 09 12:11:45 Ubuntu-18-04 variety.desktop[2099]: /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:860: InsecureRequestWarning: Unv
Mar 09 12:11:45 Ubuntu-18-04 variety.desktop[2099]: InsecureRequestWarning)
lines 1187-1209/1209 (END)
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit NetworkManager.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: Stopped Network Manager.
-- Subject: Unit NetworkManager.service has finished shutting down
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit NetworkManager.service has finished shutting down.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: NetworkManager.service: Start request repeated too quickly.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Mar 09 12:10:40 Ubuntu-18-04 systemd[1]: Failed to start Network Manager.
-- Subject: Unit NetworkManager.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit NetworkManager.service has failed.
--

Any help with this would be much appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu network-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

I assume that you now have different versions of NetworkManager in different directories, which apparently are conflicting with each other.

The standard version in Ubuntu is /usr/sbin/NetworkManager
You logs talk about /usr/local/sbin/NetworkManager

What is the output of the commands

sudo updatedb
locate NetworkManager

Revision history for this message
Michael Hooker (dain-bramage) said :
#2

Hi Manfred,

Thank you for your reply. You are correct in assuming I did not uninstall any previous version of Network Manager before updating. I assumed the existing installation would be overwritten but I am guessing from your answer this did not happen and is the cause of my problem.

sudo updatedb did not produce and output.

locate NetworkManager produced this output:

https://pastebin.com/G2V0k5gH

Is the correct way to remove Network Manager before updating "sudo apt-get --purge remove NetworkManager'?

If you can confirm the correct way to uninstall Network Manger before upgrading I will mark this thread as solved.

Thank you for your help.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

If you want that your self-built version of NetworkManager overwrites the Ubuntu version, then you have to configure your version in a similar way (at least with the same target directory) as Ubuntu does for its own version.

NetworkManager is a core package for Ubuntu. I do not know what happens if you remove it. I have never tried.

Try the command
apt --simulate remove network-manager
and verify the list of packages which are going to be removed.

Revision history for this message
Michael Hooker (dain-bramage) said :
#4

I ran 'sudo apt-get --purge remove network-manager' on a new installation then went through the process again.

Unfortunately I have had the same outcome. Barring new information I have concluded attempting to update to the latest stable version of NetworkManager is a bad idea and should not be attempted.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

There probably are additional packages that need to be removed to avoid a version conflict, among them gir1.2-nm-1.0, libnm0, network-manager, network-manager-config-connectivity-ubuntu

Can you help with this problem?

Provide an answer of your own, or ask Michael Hooker for more information if necessary.

To post a message you must log in.