Note:
This documentation has moved to a new home! Please update your bookmarks to the new URL for the up-to-date version of this page.
Thank you very much for all these info. This community is great.
Various blogs mention that add-apt-repository is/will be deprecated. So are there alternatives from mantic onwards to add a PPA?
@fossfreedom, to the extent of my knowledge add-apt-repository
will not be deprecated. It actually still is the recommended way to add PPAs to an Ubuntu system, and it does the right thing when setting up the GPG keys for the repository.
Like Sergio, this is also not something I’ve heard or seen mentioned, which is odd since that’s definitely something we’d hear if it is true. That said, I do see what you mean about various places mentioning the deprecation, so perhaps we’re unaware of changes afoot.
In any case, I dug up a couple good pages describing alternatives that can be used if it does go away:
https://www.digitalocean.com/community/tutorials/how-to-handle-apt-key-and-add-apt-repository-deprecation-using-gpg-to-add-external-repositories-on-ubuntu-22-04
https://askubuntu.com/questions/1286545/what-commands-exactly-should-replace-the-deprecated-apt-key
The latter also includes an explanation about why the deprecation message is showing up. I wouldn’t take either of these links as official but the technical advice looks reasonably accurate.
I’ll also note that for private PPAs we’re quite accustomed to similar steps since add-apt-repository doesn’t work with private PPAs. Not nearly as convenient as add-apt-repository, but not too bad. Still, I think we can share hope that news of add-apt-repository’s deprecation is greatly exaggerated.
Great post! It would be great if you could edit in some downsides to snaps mentioned f.ex. here: https://www.reddit.com/r/linux/comments/j3ajnf/whats_wrong_with_snaps_why_so_many_people_hate_it/
Gentle reminder, folks:
This is a Documentation Topic.
Please limit comments to specific corrections or improvements to the first post.
You are welcome to open new topics for general discussion of related subjects.