title: apt update --allow-releaseinfo-change on different Debian versions
body: <p>I have bash script that should run on Debian 9 and newer. It contains <code>apt-get -qq update</code> command. With new releases of Debian it is not possible to simply run <code>apt-get update</code> on Debian 9 due to new repositories, I get errors like this:</p>
  <pre><code>E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
  </code></pre>
  <p><code>apt-get update --allow-releaseinfo-change</code> can fix this problem (I know it can be a security issue <a href="https://stackoverflow.com/questions/68849201/disadvantage-of-using-allow-releaseinfo-change-for-apt-get-update">Disadvantage of using --allow-releaseinfo-change for apt-get update</a> but it does not bother me at the moment).
  But it is not possible to run this command on Debian 9:</p>
  <pre><code>E: Command line option --allow-releaseinfo-change is not understood in combination with the other options
  </code></pre>
  <p>I have this workaround:</p>
  <pre><code>if [ $(lsb_release -cs) == &quot;stretch&quot; ]; then
    apt-get update
  else
    apt-get update --allow-releaseinfo-change
  fi
  </code></pre>
  <p>Is there a better way how to solve this issue?</p>