apt-add-repository on 22.04

Bret Busby bret at busby.net
Mon May 9 19:40:31 UTC 2022


On 10/5/22 3:31 am, Bret Busby wrote:
> On 10/5/22 3:20 am, Bret Busby wrote:
>> On 10/5/22 2:00 am, Grizzly via ubuntu-users wrote:
>>> Hi All
>>>
>>> Another problem I found it seems that
>>>
>>> apt-add-repository
>>>
>>> has been depreciated, is there an easy way to keep the various app's 
>>> that need
>>> repo's updated, over time I have made a lot of bash files with
>>>
>>> sudo apt-add-repository "repo"
>>> sudo apt install -y "app from repo"
>>> sudo apt-add-repository --remove "repo"
>>>
>>> but now non work, I can see it may be a way to force users to use 
>>> snap, but
>>> even for those who want that and can live with the extra load time 
>>> (like for
>>> FireFox) there are still many apps that are not snaps
>>>
>>>
>>>
>>
>> Why not simply use a text editor, such as vi, to add the suppository 
>> to the .etc/apt/sources.list file?
>>
>> sudo vi /etc/apt/sources.list
>>
>> Simple.
>>
> 
> 
> And, if using vi is too difficult, from memory, echo with redirection to 
> append, can be used to insert the suppository; for example for seamonkey,
> 
> sudo echo "deb 
> http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all 
> main" >> /etc/apt/sources.list
> 
> (or, something like that)
> 

Maybe, better;

sudo echo -e  \n "deb > 
http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all 
main"  \n  >> /etc/apt/sources.list

-- 
Bret Busby
Armadale
West Australia
(UTC+0800)
..............





More information about the ubuntu-users mailing list