:: Re: [DNG] Script to migrate buster …
Góra strony
Delete this message
Reply to this message
Autor: wirelessduck
Data:  
Dla: dng
Temat: Re: [DNG] Script to migrate buster desktop to beowulf v1.6
I’m not sure if this is a good way to do it but when Ubuntu is upgraded to a new version the release upgrade tool disables all third-party apt sources and PPA sources by commenting them out in the sources.list/sources.list.d files and notifying the user this has been done. The user then has to enable them again manually after upgrade.

I guess this makes it easy to filter out non-official apt sources and only upgrade the official ones? I don’t know how it handles the situation of when the user has a custom package mirror enabled instead of deb.debian.org or similar ubuntu archive URL.

Also, don’t forget that debian has a separate URL for debian-security archive while Devuan includes security packages archive in the regular deb.devuan.org URL.

> On 15 Apr 2021, at 04:44, tito via Dng <dng@???> wrote:
>
> On Wed, 14 Apr 2021 16:01:02 +0000
> g4sra via Dng <dng@???> wrote:
>
>>>
>>
>>> This might be a good one to ask the users.
>>>
>>
>>> fsmithred
>>>
>>
>>
>> Agreed.
>>
>> But if you did want to do it programmatically without parsing every
>> sources.{d/*,conf}... Ask apt what it is cacheing...
>>
>> if [ -n "$(apt-cache policy | grep 'buster/non-free')" ]; then
>> echo "yes include non-free repo";
>> else
>>
>> echo "no don't!";
>> fi
>
> This will give false positives:
>
> apt-cache policy | grep 'buster/non-free'
> 97 http://www.deb-multimedia.org buster/non-free amd64 Packages
>
> So I think I will ask the user.
>
> Ciao,
> Tito
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng