do-release-upgrade with a private repository

Sam Varshavchik mrsam at courier-mta.com
Sat Aug 13 23:06:09 UTC 2022


I have a 20.04 system that I ssh into. It's running mostly headless, and I  
just ssh into it. 

I build and install additional, private deb packages on this system.

I use aptly to maintain a local repository that distributes those dbs. My  
/etc/apt/sources.list has an extra entry, at the beginning, pointing to the  
aptly-maintained repository where the private deb packages come from,  
literally:

deb file:///home/mrsam/.aptly/public focal main

So that's how I have everything up. I update this repository with new  
versions of my additional packages, and just apt update them normally.

I used pbuilder-dist to rebuild all of these packages for 22, so now my  
question is: with all of that done, how do I actually upgrade from focal to  
jammy, together with my private packages?

It seems that do-release-upgrade is the way to upgrade from the command  
line, but its manual page makes no mention of specifying additional  
repository to include in the upgrade, so that the installer can find and  
update the existing 20 packages that I rebuilt for 22.

Related to this: I would like to understand how /etc/apt/sources.list works  
in the context of upgrading from one release to another. It seems to me that  
sources.list is release-specific. For example, right now it reads:

deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted

That's how 20's installer set it up for me.

So, I presume that do-release-upgrade is going to replace the existing  
/etc/apt/sources.list with one that specifies jammy instead of focal, for  
every repository?

What does do-release-upgrade do to the manual entry I added to sources.list,  
for my local focal repo? Does it just replace "focal" to "jammy", and leave  
it there, or does sources.list get replaced, in its entirety, by do-release- 
upgrade?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220813/9ed07455/attachment.sig>


More information about the ubuntu-users mailing list