在 Debian 12 上安装 SKS 时出现问题

在 Debian 12 上安装 SKS 时出现问题

我需要在 Debian 12 上安装 SKS,但遇到这样的问题:

root@SRV1:~# apt update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@SRV1:~# apt install sks
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
sks is already the newest version (1.1.6+git20210302.c3ba6d5a-4+b2).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 sks : Depends: db-util but it is not going to be installed
       Depends: db5.3-util but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我试过了

apt --fix-broken install

但这没有帮助。我正在 VirtualBox 上运行最新的 Debian 12 映像。

答案1

好吧,我肯定在sources.list 上犯了一个错误。我在那里得到了这样的内容:

deb http://deb.debian.org/debian/ bullseye main

我已将其更改为:

deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware

现在它正在按预期工作。

相关内容