在 Debian sid 上重新安装 pass

在 Debian sid 上重新安装 pass

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(在sid200 时),以/etc/apt/preferences从 sid 过渡到测试,作为下一个 Debian 版本的一部分。

答案1

您遇到的问题来自于您转向测试。这样做很好,感谢您帮助测试下一个版本;但通常最好在开发过程中比较安静的时间完成。

要解决眼前的问题,最安全的选择是从不稳定版本安装gnupg

sudo apt install -t sid gnupg

之后,鉴于当前的测试状态和不稳定状态,您在升级时必须密切关注类似问题。本质上,您将手动复制britney2发布团队完成的工作。

相关内容