Probably highly highly dodgy and not recommended (to clarify, I do not 
recommend anyone does this), but I got around this by:
- cleaning up my /etc/apt/sources.list.d/ (since it may have gotten a bit 
mangled by the release-upgrader crashing and not cleaning up after itself)
- adding `self.section = parent.section` to the __init__ block of 
ExplodedDeb822SourceEntry in 
`/usr/lib/python3/dist-packages/aptsources/sourceslist.py`
- rerunning do-release-upgrade.

I don't have a great understanding of the aptsources package based on my
sole experience looking at trying to deal with this, or of some of the
changes to apt over the years that this Exploded subclass is trying to
account for, but the rest of the parent Deb822SourceEntry is accessible
from the Exploded child class except for `section` - this might(??)
reasonably be seen as a bug in aptsources instead of release-upgrader,
and I think it's only a problem due to having left upgrading so late
(e.g. you manually swapped over to old-releases.ubuntu.com) - but
honestly that's pure speculation on my part. Since it also affects a
Kinetic user though, it makes me think this isn't a problem with the
release-upgrader (unless the upgrader did have a change in logic
recently and this got backported to Kinetic?), and more that some of the
apt repos get left in this edge case which hasn't been accounted for in
aptsources??

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