在执行 apt-get update 命令时,会出现`N: 这必须要显式地接受,才能对该仓库进行更新`的提示
即使我什么都没做,它却坏了!虽然我确认通过了一次测试并将其合并到master并推送,但在CricleCI上却失败了。与测试无关,似乎是由于sudo apt-get update失败。错误信息如下。
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Reading package lists... Done
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
N: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '10.0' to '10.10'
E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Exited with code exit status 100
虽然我没有完全理解内容,但在apt-get update命令中添加了–allow-releaseinfo-change选项后,问题得以解决。
sudo apt-get update --allow-releaseinfo-change
由于Buster的版本已经更改,如果不更新releaseinfo就无法进行更新,是这样的感觉吗?那么这个选项一定要添加,这样就没错了,是这个意思吧。
我参考了以下内容:
For people who gets this error ” InRelease’ changed its ‘Suite’ value from ‘testing’ to ‘stable’ “
byu/beer118 indebian
由于可能有其他人陷入同样的错误中,所以我写了一篇文章。