【问题标题】:DEBIAN - Issue with installing systemd-coredump as part of package installationDEBIAN - 在软件包安装过程中安装 systemd-coredump 时出现问题
【发布时间】:2022-07-25 20:56:40
【问题描述】:

我正在使用 debian (buster) 来构建我的包。

我正在尝试将 systemd-coredump 添加到我的包依赖项中,以便每次安装我的包时都会安装它。

所以,我更新了控制文件,所以包将依赖于systemd-coredump 包。

Source: rmd-baseconfig
Section: admin
Priority: optional
Maintainer: NAME <MAIL>
Build-Depends: debhelper (>= 11),
Standards-Version: 4.5.1
Homepage: http://www.google.com

Package: rmd-baseconfig
Architecture: all
Depends: ${misc:Depends},
 systemd-coredump
Description: Base configuration for RMD device

并且还添加到 debian 规则中,规则使其启用systemd-coredump

#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

%:
    dh $@
    
override_dh_systemd_enable:
    dh_systemd_enable --name=coredump
    

该软件包当然编译成功,但是当我尝试安装它时,我 得到以下错误。

Preparing to unpack ../rmd-baseconfig_1.0_all.deb ...
Unpacking rmd-baseconfig (1.0) over (1.0) ...
dpkg: dependency problems prevent configuration of rmd-baseconfig:
 rmd-baseconfig depends on systemd-coredump; however:
  Package systemd-coredump is not installed.

dpkg: error processing package rmd-baseconfig (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 rmd-baseconfig

经过进一步调查,我认为这是阻止安装 systemd-coredump 的错误(我在尝试通过执行 apt install systemd-coredump 手动安装 systemd-coredump 时收到它)

The following packages have unmet dependencies:
 systemd-coredump : Depends: libdw1 (>= 0.158) but it is not going to be installed
                    Depends: systemd (= 241-7~deb10u8) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

有没有办法解决这个问题?我在这里遗漏了什么吗?

【问题讨论】:

    标签: debian systemd-coredump


    【解决方案1】:

    我的问题是 dpkg -i 没有安装依赖项。
    使用apt install &lt;package_name&gt; 时,一切都已根据需要安装。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-25
      • 2012-02-15
      • 2022-06-12
      • 2018-05-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多