10
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

apt-get updateで`N: This must be accepted explicitly before updates for this repository can be applied`

Posted at

「何もしてないのに壊れた!」じゃないけど一度通ったはずのテストがmasterにマージしてpushしたら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を更新してやらないとupdateできないとかって感じですかね。だとするとこのオプションは必ず付けておいた方が間違いないということでしょうか。

下記を参考にさせていただきました。
https://www.reddit.com/r/debian/comments/ca3se6/for_people_who_gets_this_error_inrelease_changed/

同じエラーでハマる人がいそうなので記事にしました。

10
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?