Skip to content

Commit

Permalink
Remove broken Apt preferences file
Browse files Browse the repository at this point in the history
The `ubuntu-advantage-tools` package add broken Apt preferences file used
for the Ubuntu ESM packages.

Signed-off-by: Krzysztof Wilczynski <[email protected]>
  • Loading branch information
kwilczynski committed Dec 29, 2019
1 parent dd6aca5 commit db54caf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/common/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ else
apt-get --assume-yes dist-upgrade
fi

# Remove current Apt preferences, especially the Ubuntu ESM
# packages pin coming from the ubuntu-advantage-tools package
# that is almost always broken.
rm -f /etc/apt/preferences.d/*

cat <<'EOF' > /etc/timezone
Etc/UTC
EOF
Expand Down

0 comments on commit db54caf

Please sign in to comment.