Ubuntu Support Template
Ubuntu Version:
25.04
Desktop Environment (if applicable):
GNOME
Problem Description:
To update from 25.04 to 25.10 I did “apt update”, “apt upgrade”, rebooted, then ran “do-release-upgrade”.
This failed badly midway through:
Läs:100 https://ftp.udx.icscoe.jp/Linux/ubuntu questing/main amd64 lib32ubsan1 amd64 15.2.0-4ubuntu4 [1 172 kB]
4% [100 lib32ubsan1 32,5 kB/1 172 kB 2%] 10,0 MB/s 6min 25s
https: ./methods/connect.cc:892: virtual bool TlsFd::HasPending(): Försäkran ”ssl” ej uppfylld.
Hämtade 191 MB på 6s (10,0 MB/s)
Traceback (most recent call last):
File “/tmp/ubuntu-release-upgrader-p4hrqo31/questing”, line 8, in
sys.exit(main())
…
apt_pkg.Error: W:Ignorerar filen ”rocm.list.migrate” i katalogen ”/etc/apt/sources.list.d/” eftersom den har en ogiltig filändelse, W:Ignorerar filen ”steam-beta.list.migrate” i katalogen ”/etc/apt/sources.list.d/” eftersom den har en ogiltig filändelse,
(“Ignoring file “…” in catalog “/etc/apt/sources.list.d” because it has the wrong file ending”)
My problem now is, my system is in an inconsistent state. I have ~2100 “updates” (the new packages), and “do-release-upgrade” won’t run until I’ve updated. “lsb-release” still reports 25.04.
I do have recent backups (and I’m making a straight copy to a separate drive). I would like to avoid doing a clean reinstall if possible; I was planning on doing that for the next LTS, and I’d be OK with staying on 25.04 until then.
/etc/sources.d/ has a pile of files ending with “save”, “migrate”, “distUpgrade” and “Sources” endings.
Is there a way to regenerate the apt sources, and get the system back into a consistent state?