package network-manager 1.44.2-1ubuntu1 failed to install/upgrade: installed network-manager package post-installation script subprocess returned error exit status 10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Mantic |
Fix Released
|
Critical
|
Unassigned |
Bug Description
[ Impact ]
* A failure to query nmcli will fail the network-
* This will make the package installation/
* The fix catches the error on "ORIG_NAME=$(nmcli --get-values connection.id con show "$UUID")" and skips the corresponding keyfile with a warning message
[ Test Plan ]
$ sudo vim /etc/NetworkMan
[connection]
id=UPTOWN.guests
uuid=491fa5c8-
type=wifi
[wifi]
ssid=UPTOWN.guests
mode=infrastructure
mac-address=
[ipv6]
method=auto
[ipv4]
method=auto
$ sudo vim /etc/NetworkMan
[connection]
id=aaaUPTOWN
uuid=491fa5c8-
type=wifi
[wifi]
ssid=aaaUPTOWN
mode=infrastructure
mac-address=
[ipv6]
method=auto
[ipv4]
method=auto
$ sudo chmod 600 /etc/NetworkMan
$ sudo nmcli con reload
$ ls -la /etc/NetworkMan
total 32
drwxr-xr-x 2 root root 12288 Oct 17 17:51 ./
drwxr-xr-x 7 root root 12288 Oct 17 17:46 ../
-rw------- 1 root root 199 Oct 17 17:05 UPTOWN.guests
-rw------- 1 root root 191 Oct 17 17:46 aaaUPTOWN
# Install network-manager from proposed
$ apt update && apt install -t mantic-proposed network-manager # version 1.44.2-1ubuntu1.1
# Verify you don't see an error like this, breaking the pkg install
Error: 491fa5c8-
dpkg: error processing package network-manager (--configure):
installed network-manager package post-installation script subprocess returned error exit status 10
# Verify you see a migration log like this and the package installation is successful:
Error: 491fa5c8-
SKIP: UPTOWN.guests (491fa5c8-
Migrating aaaUPTOWN (491fa5c8-
$ echo $?
0
# Verify the good profile got migrated, while the bad one remains:
$ sudo grep -RH UPTOWN /etc/netplan/
/etc/netplan/
/etc/netplan/
/etc/netplan/
$ ls -la /etc/NetworkMan
insgesamt 28
drwxr-xr-x 2 root root 12288 Okt 17 18:03 .
drwxr-xr-x 7 root root 12288 Okt 17 17:46 ..
-rw------- 1 root root 199 Okt 17 17:05 UPTOWN.guests
[ Where problems could occur ]
* This is touching NetworkManager's maintainer script
* Breaking it could lead to a broken/unconfigured NetworkManager package
* This could render a machine's networking unusable
* It could break distribution upgrades on package install/configure failure
[ Other Info ]
* Linting was used to validate the maintainer script:
shellcheck --shell=sh debian/
=== original bug description ===
lunar to mantic upgrade, exciting to see output from network-manager postinst migrating connections to /etc/netplan one by one. But then:
Error: 491fa5c8-
dpkg: error processing package network-manager (--configure):
installed network-manager package post-installation script subprocess returned error exit status 10
That UUID appears in a file /etc/NetworkMan
Contents of the file were:
[connection]
id=UPTOWN.guests
uuid=491fa5c8-
type=wifi
[wifi]
ssid=UPTOWN.guests
mode=infrastructure
mac-address=
[ipv6]
method=auto
[ipv4]
method=auto
I've removed it from disk and the migration continued to completion.
Then I got another failure on:
[connection]
id=belkin.
uuid=2c77e512-
type=802-
[802-11-wireless]
ssid=belkin.
mode=infrastructure
mac-address=
[ipv6]
method=auto
[ipv4]
method=auto
Is it unhappy because of the . in the names?
ProblemType: Package
DistroRelease: Ubuntu 23.10
Package: network-manager 1.44.2-1ubuntu1
ProcVersionSign
Uname: Linux 6.2.0-34-generic x86_64
NonfreeKernelMo
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckR
Date: Mon Oct 16 16:12:43 2023
ErrorMessage: installed network-manager package post-installation script subprocess returned error exit status 10
InstallationDate: Installed on 2019-12-23 (1393 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
NetworkManager.
[main]
NetworkingEnab
WirelessEnable
WWANEnabled=true
Python3Details: /usr/bin/
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageV
dpkg 1.22.0ubuntu1
apt 2.7.3
SourcePackage: network-manager
Title: package network-manager 1.44.2-1ubuntu1 failed to install/upgrade: installed network-manager package post-installation script subprocess returned error exit status 10
UpgradeStatus: Upgraded to mantic on 2023-10-16 (0 days ago)
nmcli-nm:
RUNNING VERSION STATE STARTUP CONNECTIVITY NETWORKING WIFI-HW WIFI WWAN-HW WWAN
running 1.44.2 connected started full enabled enabled enabled missing enabled
Related branches
- Steve Langasek: Abstain
- Sebastien Bacher: Approve
- Danilo Egea Gondolfo (community): Approve
-
Diff: 30 lines (+9/-1)2 files modifieddebian/changelog (+6/-0)
debian/network-manager.postinst (+3/-1)
description: | updated |
description: | updated |
Changed in network-manager (Ubuntu Mantic): | |
status: | New → Triaged |
other connections also had . in the name and had no problem migrating.