16
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Debian apt-get update で「changed its 'Suite' value from 'testing' to 'stable'」というエラーが出る場合の対処法

Last updated at Posted at 2019-07-09

Debian 10.0 busterが2019/7/6にリリース。
先週までtestingだったのが、今週からstableになるということ。
testing時代からbusterを使っている場合、apt updateのとき、タイトルのようなエラーが出る

エラー内容

ローカルのapt DBとリモートのapt DBのリリース差異があるというエラー。
ローカルのapt DB busterはtestingとなっているのに、今回取得したapt DBはstableなので不一致となってるらしい。

こんなエラー。

% sudo aptitude update
Get: 1 http://debian-mirror.sakura.ne.jp/debian buster InRelease [118 kB]
Get: 2 http://debian-mirror.sakura.ne.jp/debian buster-updates InRelease [46.8 kB]
Get: 3 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB]
Fetched 204 kB in 2s (126 kB/s)
E: Repository 'http://debian-mirror.sakura.ne.jp/debian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'
E: Repository 'http://debian-mirror.sakura.ne.jp/debian buster-updates InRelease' changed its 'Suite' value from 'testing-updates' to 'stable-updates'
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'testing' to 'stable'
E: Failed to download some files
W: Failed to fetch http://debian-mirror.sakura.ne.jp/debian/dists/buster/InRelease:
W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease:
W: Failed to fetch http://debian-mirror.sakura.ne.jp/debian/dists/buster-updates/InRelease:
E: Some index files failed to download. They have been ignored, or old ones used instead.

前までこんなんでてたっけ

対処法

リリース情報の更新を許可する。
参考 : https://superuser.com/questions/1456989/how-to-configure-apt-in-debian-buster-after-release

% sudo apt-get update --allow-releaseinfo-change

実行例。

Get:1 http://security.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:2 http://debian-mirror.sakura.ne.jp/debian buster InRelease [118 kB]
Get:3 http://debian-mirror.sakura.ne.jp/debian buster-updates InRelease [46.8 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main Sources [1,984 B]
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [1,864 B]
Get:6 http://security.debian.org/debian-security buster/updates/main Translation-en [1,660 B]
Get:7 http://debian-mirror.sakura.ne.jp/debian buster/main Sources [7,827 kB]
Get:8 http://debian-mirror.sakura.ne.jp/debian buster/main amd64 Packages [7,897 kB]
Get:9 http://debian-mirror.sakura.ne.jp/debian buster/main Translation-en [5,967 kB]
Fetched 21.9 MB in 6s (3,640 kB/s)
Reading package lists... Done
N: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Version' value from '' to '10'
N: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'testing' to 'stable'
N: Repository 'http://debian-mirror.sakura.ne.jp/debian buster InRelease' changed its 'Version' value from '' to '10.0'
N: Repository 'http://debian-mirror.sakura.ne.jp/debian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'
N: Repository 'http://debian-mirror.sakura.ne.jp/debian buster-updates InRelease' changed its 'Suite' value from 'testing-updates' to 'stable-updates'

確認

さっきエラーになったコマンド

% sudo aptitude update
Hit http://debian-mirror.sakura.ne.jp/debian buster InRelease
Hit http://debian-mirror.sakura.ne.jp/debian buster-updates InRelease
Hit http://security.debian.org/debian-security buster/updates InRelease

よさそうです。

Debian 13 trixie

今回も発生している場合、同じ「apt-get update --allow-releaseinfo-change」で修正可能です。
私の環境ではこのエラーは出ませんでした。

2025/8のtrixieリリースのケースですが、aptitude dist-upgrade で行う場合、依存関係の解消ができない場合があります。これは、aptitudeのパッケージの依存関係の取り扱い範囲が広いことによって発生する問題と思われます。

この場合、apt dist-ugradeの場合は必須の依存関係の解消を行えるようで、12->13のアップグレードできました。

16
3
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
16
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?