![在 Debian sid 上重新安装 pass](https://linux22.com/image/231282/%E5%9C%A8%20Debian%20sid%20%E4%B8%8A%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85%20pass.png)
pass
最近在我的 Debian sid 设置中被删除了GPG(即dirmngr gpg gpg-agent gpg-wks-client gpgsm gpgconf gpgv
)已升级到不稳定版本2.2.40-3。
此时重新安装pass
需要降级gpg
到2.2.40.1。有没有一种干净的方法可以让我降级而不apt-get
删除其他几个我知道不应该删除的软件包。
错误日志:
#apt install pass
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
Unsatisfied dependencies:
gnupg : Depends: dirmngr (< 2.2.40-1.1.1~) but 2.2.40-3 is to be installed
Depends: gpg-agent (< 2.2.40-1.1.1~) but 2.2.40-3 is to be installed
Depends: gpg-wks-client (< 2.2.40-1.1.1~) but 2.2.40-3 is to be installed
Depends: gpg-wks-server (< 2.2.40-1.1.1~) but it is not going to be installed
Depends: gpg-wks-server (>= 2.2.40-1.1) but it is not going to be installed
Depends: gpgsm (< 2.2.40-1.1.1~) but 2.2.40-3 is to be installed
Error: Unable to correct problems, you have held broken packages.
apt policy gnupg
节目
gnupg:
Installed: (none)
Candidate: 2.2.40-1.1
Version table:
2.2.40-3 200
[…] sid/main […]
2.2.40.1.1 500
[…] bookworm/main […]
我最近将testing
引脚优先级设置为 500(在sid
200 时),以/etc/apt/preferences
从 sid 过渡到测试,作为下一个 Debian 版本的一部分。
答案1
您遇到的问题来自于您转向测试。这样做很好,感谢您帮助测试下一个版本;但通常最好在开发过程中比较安静的时间完成。
要解决眼前的问题,最安全的选择是从不稳定版本安装gnupg
:
sudo apt install -t sid gnupg
之后,鉴于当前的测试状态和不稳定状态,您在升级时必须密切关注类似问题。本质上,您将手动复制britney2
发布团队完成的工作。