Skip to content

Commit

Permalink
Remove /etc/apt/sources.list.d/original.list if present
Browse files Browse the repository at this point in the history
In some cases, the Ubuntu installer will copy sources.list to
sources.list.d/original.list. This is somewhat of a problem since we
override sources.list, but the backup of it is still active as part of
original.list.

Fixes: #7460.
(cherry picked from commit ec4dc17)
  • Loading branch information
legoktm authored and cfm committed Mar 6, 2025
1 parent 9affcba commit 9276326
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions securedrop/debian/securedrop-config.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ case "$1" in
# Should not exist but might because of an Ubuntu installer bug that is
# now fixed: https://bugs.launchpad.net/subiquity/+bug/2053002
rm -f /etc/apt/apt.conf.d/zzzz-temp-installer-unattended-upgrade
# In some cases the installer will copy sources.list to original.list, but
# we override sources.list, so also remove any original.list.
# See <https://github.com/canonical/subiquity/pull/1885>.
rm -f /etc/apt/sources.list.d/original.list

;;
abort-upgrade|abort-remove|abort-deconfigure)
Expand Down

0 comments on commit 9276326

Please sign in to comment.