apt update exploding because repo changed its 'Suite' value from 'stable' to 'oldstable' >_> ...

This commit is contained in:
Alexandre Aubin 2021-08-22 11:13:42 +02:00 committed by GitHub
parent 2f64d6ff2a
commit a32262c9fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@ function apt_get_wrapper() {
function apt_update() {
apt_get_wrapper update
apt_get_wrapper update --allow-releaseinfo-change
}
###############################################################################
@ -260,9 +260,9 @@ function upgrade_system() {
# Some VPS don't have debconf install, therefore don't have debconf-apt-progress...
# c.f. https://github.com/YunoHost/issues/issues/1828
dpkg --list | grep -q '^ii debconf ' || { apt update; apt install debconf; }
dpkg --list | grep -q '^ii debconf ' || { apt update --allow-releaseinfo-change; apt install debconf; }
apt_get_wrapper update \
apt_get_wrapper update --allow-releaseinfo-change \
|| return 1
# We need libtext-iconv-perl even before the dist-upgrade,