Skip to content

Commit

Permalink
debian: automatically accept stable -> oldstable change
Browse files Browse the repository at this point in the history
apt as released in initial debian-10 template, requires confirming the
repository change from stable to oldstable (which happened with
debian-11 release). Later versions of apt has this fixes, but lets fix
updating from the older version too.

Simply call 'apt-get update --allow-releaseinfo-change' before the
update.

Related to QubesOS/qubes-issues#6624
Fixes QubesOS/qubes-issues#5149 (which was about the very same thing
with previous debian version)

(cherry picked from commit c31289f)
  • Loading branch information
marmarek committed Oct 10, 2021
1 parent 3c5655c commit 89bb4fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions update/qubes-vm.sls
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ dnf-makecache:
- stateful: True
{% endif %}

{% if grains['oscodename'] == 'buster' %}
# https://bugs.debian.org/931566
# Apply the workaround manually, to be able to pull in the fixed apt version
apt-get update --allow-releaseinfo-change:
cmd.run:
- order: 1
{% endif %}

update:
pkg.uptodate:
- refresh: True
Expand Down

0 comments on commit 89bb4fb

Please sign in to comment.