一台很老的Debian使用apt-get update的时候,出现以下报错:

  1. Reading package lists… Done
  2. N: Repository ‘http://mirrors.163.com/debian buster InRelease’ changed its ‘Version’ value from ‘10.7’ to ‘10.13’
  3. E: Repository ‘http://mirrors.163.com/debian buster InRelease’ changed its ‘Suite’ value from ‘stable’ to ‘oldstable’
  4. N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
  5. E: Repository ‘http://mirrors.163.com/debian buster-updates InRelease’ changed its ‘Suite’ value from ‘stable-updates’ to ‘oldstable-updates’
  6. N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
  7. E: Repository ‘http://security.debian.org/debian-security buster/updates InRelease’ changed its ‘Suite’ value from ‘stable’ to ‘oldstable’
  8. N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

复制代码

解决方法
1、使用一下命令:

  1. apt-get update –allow-releaseinfo-change

复制代码

2、再使用以下命令:

  1. apt-get upgrade

复制代码