← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2125169] Re: Installing Ubuntu-settings via Ubuntu-Desktop with no-recommends on a NetworkD system misconfigures Netplan

 

Thank you for taking the time to report this bug and contributing to
Ubuntu. I can reproduce this behavior with my script: schroot-wrapper -c
noble -u root -p ubuntu-desktop

ubuntu-desktop and systemd is installed but not network-manager.
/usr/lib/netplan/00-network-manager-all.yaml is installed. The same
happens on a questing system.

** Changed in: ubuntu-settings (Ubuntu)
   Importance: Undecided => Medium

** Changed in: ubuntu-settings (Ubuntu)
       Status: New => Triaged

** Tags added: dcr-incoming

-- 
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:
  Triaged

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



References