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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125169

Title:
  Installing Ubuntu-settings via Ubuntu-Desktop with no-recommends on a
  NetworkD system misconfigures Netplan

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-settings/+bug/2125169/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to