After some investigation, I believe I've found a root cause of the
issue. Starting with Ubuntu "Plucky," apt sources have moved to the new
Deb822 format. The do-release-upgrade script appears to incorrectly
create the /etc/apt/sources.list.d/.plucky-sources.sources file during
the upgrade process.

Specifically, the generated file is missing the Signed-By attribute.
This causes apt to fail because it cannot find the key to verify the
repository signatures.

What the script creates (Incorrect) 
Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: plucky plucky-updates plucky-backports plucky-security
Components: main restricted universe multiverse

What it should create (Correct) 
Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: plucky plucky-updates plucky-backports plucky-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2125393

Title:
  release upgrade 24.10 -> 25.04 fails: AttributeError:
  'ExplodedDeb822SourceEntry' object has no attribute 'section'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2125393/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to