`add-apt-repository --pocket` doesn't work on Noble (Deb822?)

Bug #2061128 reported by Ratchanan Srirattanamet
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Medium
Nick Rosbrook

Bug Description

It seems like `add-apt-repository` doesn't know how to enable a new pocket when Ubuntu's sources are defined in Deb822 (.sources) source file.

Step to reproduce:
1. Create a Noble chroot with e.g. Docker. Verify that in such chroot, Deb822 is used for Ubuntu's source (`ls /etc/apt/sources.list.d/ubuntu.sources`).
2. Run `add-apt-repository --pocket proposed`. Accept the prompt.
3. Run `apt policy`.
  - Expected result: `noble-proposed` is listed.
  - Actual result: `noble-proposed` is not listed.

This might be related to LP: #2060331, but since I'm not sure how it works, I'm filing a new bug here.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: software-properties-common 0.99.46
ProcVersionSignature: Ubuntu 6.5.0-27.28~22.04.1-generic 6.5.13
Uname: Linux 6.5.0-27-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: unknown
CloudSerial: 20240225
Date: Fri Apr 12 18:38:12 2024
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 TERM=xterm
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ratchanan Srirattanamet (peat-new) wrote :
Revision history for this message
Nick Rosbrook (enr0n) wrote :

Hm, yeah this was overlooked too. The initial deb822 support in software-properties was mostly about adding PPAs. It looks like we need to go through and add more general deb822 support.

tags: added: foundations-todo
Changed in software-properties (Ubuntu):
importance: Undecided → Medium
assignee: nobody → Nick Rosbrook (enr0n)
status: New → Confirmed
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.