如何修复错误“值 'stable' 对 APT::Default-Release 无效”?

the*_*ejh 10 debian package-management

从 Debian Squeeze(稳定版)升级到 Wheezy(测试版)后,Synaptic 失败并出现以下错误:

E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
E: _cache->open() failed, please report.
Run Code Online (Sandbox Code Playgroud)

但是,该值在/etc. 我该如何解决这个错误?

mat*_*ath 10

我在 apt 上遇到了同样的错误,所以它与突触无关。但是,此配置存在:

# grep -ri stable /etc
/etc/apt.conf.d/99myDefaultRelease:APT::Default-Release "stable";
Run Code Online (Sandbox Code Playgroud)

因此,将该文件更改为“jessie”将在我的情况下修复它(因为我在 jessie 上。)

  • 这个在我的树莓派 3 中解决了我的问题:D (2认同)

the*_*ejh 8

看看/root/.synaptic/synaptic.conf。查找该DefaultDistro行并更改其值,例如替换stablewheezy