debsums: changed file /lib/netplan/00-network-manager-all.yaml (from ubuntu-settings package)

Bug #2078759 reported by Kai-Chuan Hsieh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
New
Undecided
Unassigned
netplan.io (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

On ubuntu desktop 24.04 image, run the operations below

1. $ nmcli d wifi connect <SSID> password <password>
2. $ nmcli c delete <SSID>
3. $ sudo debsums -s

Then the error is happened debsums: changed file /lib/netplan/00-network-manager-all.yaml (from ubuntu-settings package)

it seems the netplan update the file belonged to ubuntu-settings that cause the debsums failed.
---
ProblemType: Bug
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckMismatches: ./casper/initrd ./casper/vmlinuz ./casper/minimal.standard.live.hotfix.squashfs ./casper/minimal.standard.hotfix.squashfs ./casper/minimal.hotfix.squashfs ./boot/grub/grub.cfg
CasperMD5CheckResult: fail
DistributionChannelDescriptor:
 # This is the distribution channel descriptor for Ubuntu 24.04 for Dell
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-noble-oem-24.04a-next-20240902-67
DistroRelease: Ubuntu 24.04
InstallationDate: Installed on 2024-09-02 (1 days ago)
InstallationMedia: Ubuntu OEM 24.04.1 LTS "Noble Numbat" - Release amd64 (20240829)
Package: netplan.io 1.0.1-1ubuntu2~24.04.1
PackageArchitecture: amd64
ProcVersionSignature: User Name 6.8.0-1012.12-oem 6.8.12
Tags: noble
Uname: Linux 6.8.0-1012-oem x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lxd sudo
_MarkForUpload: True

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote : Dependencies.txt

apport information

tags: added: apport-collected noble
description: updated
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote : ProcEnviron.txt

apport information

tags: added: jira-somerville-805 oem-priority
Bin Li (binli)
tags: added: jira-sutton-68
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

There is a comment in the first line of /lib/netplan/00-network-manager-all.yaml.

We seem to be dropping it when we call update_yaml_hierarchy() (I guess) and the file is updated.

I think we have an LP bug about preserving comments...

A workaround would consist in shipping the file without the comment.

Here is a simpler reproducer:

root@noble-desktop:~# nmcli con add type dummy ifname dummy0
Connection 'dummy-dummy0' (7ba86ef2-0b18-447e-ae63-eebb08aec9c1) successfully added.

root@noble-desktop:~# cat /lib/netplan/00-network-manager-all.yaml
# there is a comment here
network:
  version: 2
  renderer: NetworkManager

root@noble-desktop:~# nmcli con del dummy-dummy0
Connection 'dummy-dummy0' (7ba86ef2-0b18-447e-ae63-eebb08aec9c1) successfully deleted.

root@noble-desktop:~# cat /lib/netplan/00-network-manager-all.yaml
network:
  version: 2
  renderer: NetworkManager

Changed in netplan.io (Ubuntu):
status: New → Triaged
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.