add-apt-repository --list not returning any deb822 repositories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Low
|
Nick Rosbrook |
Bug Description
Recreating the following bug report (#2052851) with a new title per Jeremy Bícha's (jbicha) request:
https:/
---
On Ubuntu 23.10:
* When adding a PPA, 'add-apt-
* However, 'add-apt-repository --list' cannot see/understand the new '<ppa-name>
For example, with the flacon ppa (https:/
1. 'sudo add-apt-repository ppa:flacon/ppa' adds the flacon repo as '/etc/apt/
2. apt can install and update from the new repo, as expected. you can also remove the repo, as expected, by running 'sudo add-apt-repository --remove ppa:flacon/ppa'
3. However, 'add-apt-repository --list' does not list the repo as it should. GUI package managers such as Muon and Synaptic also do not see the new repo.
It makes working with packages frustrating, and unfortunately, per Julian Andres Klode (juliank), there seems to be no plan to fix the broken 'software-
https:/
Also see related issues:
https:/
https:/
https:/
https:/
Related branches
- Nick Rosbrook: Approve
-
Diff: 22 lines (+2/-2)1 file modifiedadd-apt-repository (+2/-2)
Changed in software-properties (Ubuntu): | |
assignee: | nobody → Nick Rosbrook (enr0n) |
Changed in software-properties (Ubuntu): | |
status: | Confirmed → Fix Committed |
In case anyone else comes across this bug, the following workaround to create the old style '<ppa-name>.list' file works well:
---
1. Create an 'aptaddppa' function (ZSH):
---
aptaddppa () {
curl -fsSL "https:/ /keyserver. ubuntu. com/pks/ lookup? op=get& search= 0x${4}" | sudo gpg --dearmor -o /etc/apt/ trusted. gpg.d/" ${1}".gpg
echo "deb [arch=$(dpkg --print- architecture) ] ${2} $(lsb_release -cs) ${3}" | sudo tee /etc/apt/ sources. list.d/ "${1}". list
sudo apt update
}
---
2. From the command line:
---
$ aptaddppa flacon https:/ /ppa.launchpadc ontent. net/flacon/ ppa/ubuntu main 0606FBEA7386368 6801BE20ED5790E 4FF2A61FE5