Public bug reported:

Title: add-apt-repository doesn't support DEB822 format for component
management

Package: software-properties
Version: [run: apt-cache policy software-properties-common]
Ubuntu Version: 24.04 (Noble Noble)

Description:
The command `add-apt-repository universe` fails to add the universe 
component when using the new DEB822 sources format in 
/etc/apt/sources.list.d/ubuntu.sources

Steps to Reproduce:
1. Fresh Ubuntu 24.04 installation with DEB822 format sources
2. Run: sudo add-apt-repository universe
3. Command completes but universe component is not added

Expected Behavior:
The universe component should be added to the Components: line in 
/etc/apt/sources.list.d/ubuntu.sources

Actual Behavior:
No changes are made to the sources file

Workaround:
sudo sed -i 's/Components: main$/Components: main universe/' \
  /etc/apt/sources.list.d/ubuntu.sources

System Information:
- Ubuntu 24.04 (Noble)
- DEB822 format sources file

** Affects: 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/2158822

Title:
  add-apt-repository doesn't support DEB822 format for component
  management

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/2158822/+subscriptions


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

Reply via email to