apt-add-repository on 22.04

Keith keith at caramail.com
Mon May 9 22:42:29 UTC 2022


On 5/9/22 2:51 PM, Grizzly via ubuntu-users wrote:
> 09 May 2022  at 20:33, Oliver Grawert wrote:
> Re: apt-add-repository on 22.04 (at least in part)
> 
>> hi,
>> Am Montag, dem 09.05.2022 um 19:00 +0100 schrieb Grizzly via ubuntu-
>> users:
>>> Hi All
>>>
>>> Another problem I found it seems that
>>>
>>> apt-add-repository
>>>
>>> has been depreciated,
>>
>> i think the problem is rather that it never existed :)
>>
>> it is "add-apt-repository" from the software-properties-common
>> package... (not "apt-add-repository")
> 
> that may be my typo (here), I'm not on the 22.04 box at the moment to check the
> *.sh files but they did work as late as 21.10 so should have been correct, and
> the feed back on 22.04 didn't say it was wrong or not found, just depreciated?
> 
FYI, apt-add-repository is a symlink to add-apt-repository which 
installed by the software-properties-common package.

Just one part of the utility is being deprecated, not the whole thing. 
Mainly the autodetection of a source given on the command-line. 
Basically, admins will have to be more specific about the type of 
sources that add-apt-repository will add to sources.list, or sources.list.d.

If it's a URI, then you'll need to precede it with a -U. If you specify 
components with that then you need to precede each of those with a -c. 
Manpage explains it all. Despite being deprecated, the autodetection 
will still work for the life of jammy (5 years) so you won't have to 
update your scripts just yet.

-- 
Keith





More information about the ubuntu-users mailing list