[Bug 2039590] Re: after upgrade to mantic, duplicate entries in /etc/apt/sources.list
Steve Langasek
2039590 at bugs.launchpad.net
Tue Oct 17 16:35:06 UTC 2023
Never mind, this code triggers if the upgrader finds no candidates for
the ubuntu-minimal or ubuntu-standard packages. Because I had a
previously failed upgrade and re-ran it, both packages were up-to-date
from mantic when running the upgrader and therefore u-r-u misdetected my
system as not having valid sources.list and added these lines in.
Not /entirely/ self-inflected (I needed a way to re-run the upgrader to
apply quirks after a failing package during the upgrade), but not worth
trying to change the current behavior.
** Changed in: ubuntu-release-upgrader (Ubuntu Mantic)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2039590
Title:
after upgrade to mantic, duplicate entries in /etc/apt/sources.list
Status in ubuntu-release-upgrader package in Ubuntu:
Invalid
Status in ubuntu-release-upgrader source package in Mantic:
Invalid
Bug description:
Running 'apt showsrc' on mantic I saw surprising output:
[...]
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:58
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:58
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:58
[...]
And line 58 is:
deb http://security.ubuntu.com/ubuntu mantic-security main restricted
# auto generated by ubuntu-release-upgrader
this is a duplicate of the lines I already had in sources.list before
upgrade.
diffing /etc/apt/sources.list against
/etc/apt/sources.list.distUpgrade, aside from the change in release
name, I see the following added lines:
+deb http://archive.ubuntu.com/ubuntu mantic main restricted # auto generated by ubuntu-release-upgrader
+deb http://archive.ubuntu.com/ubuntu mantic-updates main restricted # auto generated by ubuntu-release-upgrader
+deb http://security.ubuntu.com/ubuntu mantic-security main restricted # auto generated by ubuntu-release-upgrader
It looks like the upgrader quirk to handle the case where
security.ubuntu.com is missing from sources.list might be misfiring?
Also I see no justification for adding archive.ubuntu.com to the
sources.list, which clearly already had a mirror configured prior to
the update. We should not be adding archive.ubuntu.com to
sources.list on upgrade.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2039590/+subscriptions
More information about the foundations-bugs
mailing list