"No Release file" from do-release-upgrade with an aptly repo

Sam Varshavchik mrsam at courier-mta.com
Mon Aug 15 23:43:36 UTC 2022


I wrote:

> 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.

I've done some more digging, and discovered the --allow-third-party option  
for do-release-upgrade (not mentioned in the man page), but it failed to  
work as advertised.

I rebuilt all packages for jammy and put them into the same local file:///  
repository, which now has both focal and jammy distributions in it.

Yet, when I run do-release-upgrade --allow-third-party it is still  
complaining:

# Some third party entries in your sources.list were disabled. You can
# re-enable them after the upgrade with the 'software-properties' tool
# or your package manager.

I found this: https://askubuntu.com/questions/1238908/

So:

root at ripper:/etc/update-manager/release-upgrades.d# cat mine.cfg
[Sources]
AllowThirdParty = yes

This didn't help either. I found the following clue in /var/log/dist-upgrade:

2022-08-15 10:19:03,937 DEBUG examining: 'deb file:///home/mrsam/.aptly/public focal main'
2022-08-15 10:19:03,938 DEBUG verifySourcesListEntry: deb file:///home/mrsam/.aptly/public jammy main
2022-08-15 10:19:03,938 DEBUG url_downloadable: file:///home/mrsam/.aptly/public/dists/jammy/Release
2022-08-15 10:19:03,938 DEBUG s='file' n='' p='/home/mrsam/.aptly/public/dists/jammy/Release' q='' f=''
2022-08-15 10:19:03,938 DEBUG entry '# deb file:///home/mrsam/.aptly/public focal main' was disabled (no Release file)

However, aptly most certainly created the Release file:

root at ripper:/var/log/dist-upgrade# ls -al /home/mrsam/.aptly/public/dists/jammy/Release
-rw-rw-r-- 1 mrsam mrsam 2664 Aug 14 20:02 /home/mrsam/.aptly/public/dists/jammy/Release

The Release file exists, so what is it complaining about?
-------------- 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/20220815/4e963aeb/attachment.sig>


More information about the ubuntu-users mailing list