package network-manager 1.42.4-1ubuntu4 failed to install/upgrade: installed network-manager package post-installation script subprocess returned error exit status 8

Bug #2022023 reported by Tony
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I am using netplan for my network config.

ProblemType: Package
DistroRelease: Ubuntu 23.10
Package: network-manager 1.42.4-1ubuntu4
ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
Uname: Linux 6.2.0-20-generic x86_64
ApportVersion: 2.26.1-0ubuntu3
Architecture: amd64
CRDA: N/A
CasperMD5CheckResult: unknown
Date: Thu Jun 1 12:05:16 2023
ErrorMessage: installed network-manager package post-installation script subprocess returned error exit status 8
InstallationDate: Installed on 2020-04-25 (1131 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
IpRoute:
 default via 192.168.56.1 dev enp7s0 proto static
 192.168.56.0/30 dev enp7s0 proto kernel scope link src 192.168.56.2
IwConfig:
 lo no wireless extensions.

 enp7s0 no wireless extensions.
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
Python3Details: /usr/bin/python3.11, Python 3.11.3, python3-minimal, 3.11.2-1
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.21.22ubuntu1
 apt 2.7.0
RfKill:

SourcePackage: network-manager
Title: package network-manager 1.42.4-1ubuntu4 failed to install/upgrade: installed network-manager package post-installation script subprocess returned error exit status 8
UpgradeStatus: Upgraded to mantic on 2023-06-01 (0 days ago)
nmcli-con: Error: command ['nmcli', '-f', 'all', 'con'] failed with exit code 8: Error: NetworkManager is not running.
nmcli-dev: Error: command ['nmcli', '-f', 'all', 'dev'] failed with exit code 8: Error: NetworkManager is not running.
nmcli-nm: Error: command ['nmcli', '-f', 'all', 'gen'] failed with exit code 8: Error: NetworkManager is not running.

Related branches

Revision history for this message
Tony (ynota) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Thanks for your bug report.

This problem seems to be caused by the netplan migration logic in the postinst script. I'm looking into it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 1.42.4-1ubuntu5

---------------
network-manager (1.42.4-1ubuntu5) mantic; urgency=medium

  * d/network-manager.postinst: fix netplan migration logic.
    The "continue" is being executed in a subshell so it's not skipping the
    next commands. It will fail if Network Manager is not running. See LP: #2022023
  * d/network-manager.preinst: use /var/lib/NetworkManager for backups
    /root is not a system directory so we shouldn't use it. It might not
    even exist or the package manager might run in a sandbox and not have
    access to it. See LP: #2021937

 -- Danilo Egea Gondolfo <email address hidden> Thu, 01 Jun 2023 15:17:57 +0100

Changed in network-manager (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.