debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #07533
[Bug 2125169] [NEW] Installing Ubuntu-settings via Ubuntu-Desktop with no-recommends on a NetworkD system misconfigures Netplan
Public bug reported:
Operating System: Ubuntu 24.04.3 LTS
Kernel: Linux 6.14.0-29-generic
Architecture: x86-64
Reproduction:
- create system from current noble-server-cloudimg-amd64.img
- expose a cloudinit configuration for network-config
- Apply any pending updates `apt-get update && apt-get full-upgrade`
- Install Ubuntu-desktop with no recommends switch `apt-get install --no-install-recommends ubuntu-desktop`
- Reboot system `sudo reboot now`
Suspected Causation:
- cloud-init detects netplan and renders network configuration in /etc/netplan/50-cloud-init.yaml, this network configuration does not include a renderer section.
- NetworkManager is not marked as required for Ubuntu-Desktop or Ubuntu-Settings
- ubunut-settings package creates file /usr/lib/netplan/00-network-manager-all.yaml, this file includes a renderer section, configured to NetworkManager
- on reboot netplan merges 50-cloud-init.yaml and 00-network-manager-all.yaml resulting in renderer: NetworkManager
- as network manager is not installed netplan throws an error when loading the network configuration.
Workaround:
- persists after install and update
sudo dpkg-divert --divert /usr/lib/netplan/00-network-manager-all.yaml.diverted --rename /usr/lib/netplan/00-network-manager-all.yaml
- non-persistant
sudo mv /usr/lib/netplan/00-network-manager-all.yaml /usr/lib/netplan/00-network-manager-all.yaml.diverted
sudo netplan generate
sudo netplan apply
I suspect that this could be fixed either by Ubuntu-Settings detecting which network renderer is installed, or by modifying the distribution specific cloud-init configuration or netplan renderer.
** Affects: ubuntu-settings (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to ubuntu-settings in Ubuntu.
https://bugs.launchpad.net/bugs/2125169
Title:
Installing Ubuntu-settings via Ubuntu-Desktop with no-recommends on a
NetworkD system misconfigures Netplan
Status in ubuntu-settings package in Ubuntu:
New
Bug description:
Operating System: Ubuntu 24.04.3 LTS
Kernel: Linux 6.14.0-29-generic
Architecture: x86-64
Reproduction:
- create system from current noble-server-cloudimg-amd64.img
- expose a cloudinit configuration for network-config
- Apply any pending updates `apt-get update && apt-get full-upgrade`
- Install Ubuntu-desktop with no recommends switch `apt-get install --no-install-recommends ubuntu-desktop`
- Reboot system `sudo reboot now`
Suspected Causation:
- cloud-init detects netplan and renders network configuration in /etc/netplan/50-cloud-init.yaml, this network configuration does not include a renderer section.
- NetworkManager is not marked as required for Ubuntu-Desktop or Ubuntu-Settings
- ubunut-settings package creates file /usr/lib/netplan/00-network-manager-all.yaml, this file includes a renderer section, configured to NetworkManager
- on reboot netplan merges 50-cloud-init.yaml and 00-network-manager-all.yaml resulting in renderer: NetworkManager
- as network manager is not installed netplan throws an error when loading the network configuration.
Workaround:
- persists after install and update
sudo dpkg-divert --divert /usr/lib/netplan/00-network-manager-all.yaml.diverted --rename /usr/lib/netplan/00-network-manager-all.yaml
- non-persistant
sudo mv /usr/lib/netplan/00-network-manager-all.yaml /usr/lib/netplan/00-network-manager-all.yaml.diverted
sudo netplan generate
sudo netplan apply
I suspect that this could be fixed either by Ubuntu-Settings detecting which network renderer is installed, or by modifying the distribution specific cloud-init configuration or netplan renderer.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-settings/+bug/2125169/+subscriptions
Follow ups