构建简单 CD 时出现“错误:缺少配置文件 myprofile 中所需的软件包”

构建简单 CD 时出现“错误:缺少配置文件 myprofile 中所需的软件包”

我正在使用 simple-cdd 创建 Debian cd,其中仅包含重新/安装系统所需的软件包,但我遇到了一些困难,即我想要安装在系统上的软件包列表CD,因此安装在系统上,有一些在 simple-cdd 调用 debian-cd 时不存在。我已经成功地隔离了 reprepro 中的问题,没有以合理的方式解决依赖关系。

例如,我已使用 myprofile.packages 文件将终结器包设置为安装在 CD 上,但在调用 debian-cd 时缺少该包,如 build-debian-cd.log 中所示:

stdout: Finished: 841 packages placed
stdout: purging /home/braiam/laptop-cdd/tmp/extras
stdout: simple-cdd: extra files for simple-cdd
stdout: ERROR: missing required packages from profile list:  network-manager-gnome terminator xfce4-appfinder xfce4-battery-plugin xfce4-panel xfce4-pulseaudio-plugin xfce4-session xfce4-settings xfwm4

sort_deps.amd64.log 报告有关终止程序包的以下内容:

  Dependency tree of `terminator' ...
    Depends: gconf2
    Depends: python-dbus
    Depends: python-gobject
    Depends: python-gtk2 (>= 2.14.0)
    Depends: python-vte
    Depends: python <virt>
    Recommends: python-gnome2 <virt>
    Recommends: python-keybinder <virt>
    Recommends: python-notify <virt>
    Recommends: xdg-utils
Looking at list, line "terminator"
+ Trying to add terminator...
    terminator Dep: gconf2  soft_depend 0
    gconf2 not included in a useful version, check_backports 0
    gconf2 not included in a useful version, check_backports 0
      gconf2 not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    gconf2 Dep: gconf-service (= 3.2.6-4)  soft_depend 0
      gconf-service is included already, acceptable version 3.2.6-4
    gconf2 Dep: libc6 (>= 2.14)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    gconf2 Dep: libgconf-2-4 (>= 3.2.5)  soft_depend 0
      libgconf-2-4 is included already, acceptable version 3.2.6-4
    gconf2 Dep: libglib2.0-0 (>= 2.31.8)  soft_depend 0
      libglib2.0-0 is included already, acceptable version 2.50.2-2
    gconf2 Dep: libxml2 (>= 2.7.4)  soft_depend 0
      libxml2 is included already, acceptable version 2.9.4+dfsg1-2.1
    gconf2 Dep: (OR default-dbus-session-bus dbus-session-bus ) soft_depend 0
    default-dbus-session-bus not included in a useful version, check_backports 0
    dbus-session-bus not included in a useful version, check_backports 0
    default-dbus-session-bus not included in a useful version, check_backports 0
      default-dbus-session-bus not already installed
    dbus-session-bus not included in a useful version, check_backports 0
    dbus-session-bus not included in a useful version, check_backports 0
    default-dbus-session-bus not included in a useful version, check_backports 0
      default-dbus-session-bus not already installed
    dbus-session-bus not included in a useful version, check_backports 0
      dbus-session-bus not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
  gconf2 failed, couldn't satisfy OR dep
    gconf2 Dep: psmisc  soft_depend 0
    psmisc not included in a useful version, check_backports 0
    psmisc not included in a useful version, check_backports 0
      psmisc not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    psmisc Dep: libc6 (>= 2.14)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    psmisc Dep: libselinux1 (>= 1.32)  soft_depend 0
      libselinux1 is included already, acceptable version 2.6-3
    psmisc Dep: libtinfo5 (>= 6)  soft_depend 0
      libtinfo5 is included already, acceptable version 6.0+20160917-1
  gconf2 failed, couldn't satisfy OR dep
    gconf2 Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
  terminator failed, couldn't satisfy OR dep
    terminator Dep: python-dbus  soft_depend 0
    python-dbus not included in a useful version, check_backports 0
    python-dbus not included in a useful version, check_backports 0
      python-dbus not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    python-dbus Dep: python (<< 2.8)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-dbus Dep: python (>= 2.7~)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-dbus Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-dbus Dep: libc6 (>= 2.4)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    python-dbus Dep: libdbus-1-3 (>= 1.9.14)  soft_depend 0
      libdbus-1-3 is included already, acceptable version 1.10.12-1
    python-dbus Dep: libdbus-glib-1-2 (>= 0.78)  soft_depend 0
      libdbus-glib-1-2 is included already, acceptable version 0.108-1
    python-dbus Dep: libglib2.0-0 (>= 2.12.0)  soft_depend 0
      libglib2.0-0 is included already, acceptable version 2.50.2-2
  terminator failed, couldn't satisfy OR dep
    terminator Dep: python-gobject  soft_depend 0
    python-gobject not included in a useful version, check_backports 0
    python-gobject not included in a useful version, check_backports 0
      python-gobject not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    python-gobject Dep: python-gi (>= 3.22.0-1)  soft_depend 0
    python-gi not included in a useful version, check_backports 0
    python-gi not included in a useful version, check_backports 0
      python-gi (>= 3.22.0-1) not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    python-gi Dep: python (<< 2.8)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gi Dep: python (>= 2.7~)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gi Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gi Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gi Dep: libc6 (>= 2.14)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    python-gi Dep: libffi6 (>= 3.0.4)  soft_depend 0
      libffi6 is included already, acceptable version 3.2.1-6
    python-gi Dep: libgirepository-1.0-1 (>= 1.44.0)  soft_depend 0
    libgirepository-1.0-1 not included in a useful version, check_backports 0
    libgirepository-1.0-1 not included in a useful version, check_backports 0
      libgirepository-1.0-1 (>= 1.44.0) not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    libgirepository-1.0-1 Dep: libc6 (>= 2.14)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    libgirepository-1.0-1 Dep: libffi6 (>= 3.0.4)  soft_depend 0
      libffi6 is included already, acceptable version 3.2.1-6
    libgirepository-1.0-1 Dep: libglib2.0-0 (>= 2.50.0)  soft_depend 0
      libglib2.0-0 is included already, acceptable version 2.50.2-2
    python-gi Dep: libglib2.0-0 (>= 2.41.1)  soft_depend 0
      libglib2.0-0 is included already, acceptable version 2.50.2-2
    python-gi Dep: gir1.2-glib-2.0 (>= 1.39.0)  soft_depend 0
    gir1.2-glib-2.0 not included in a useful version, check_backports 0
    gir1.2-glib-2.0 not included in a useful version, check_backports 0
      gir1.2-glib-2.0 (>= 1.39.0) not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    gir1.2-glib-2.0 Dep: libgirepository-1.0-1 (>= 1.45.4)  soft_depend 0
    libgirepository-1.0-1 not included in a useful version, check_backports 0
    libgirepository-1.0-1 not included in a useful version, check_backports 0
    OR relationship already satisfied by parent libgirepository-1.0-1 (>= 1.45.4)
    gir1.2-glib-2.0 Dep: libglib2.0-0 (>= 2.50.0)  soft_depend 0
      libglib2.0-0 is included already, acceptable version 2.50.2-2
    python-gobject Dep: python-gobject-2  soft_depend 0
    python-gobject-2 not included in a useful version, check_backports 0
    python-gobject-2 not included in a useful version, check_backports 0
      python-gobject-2 not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    python-gobject-2 Dep: python (>= 2.7)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gobject-2 Dep: python (<< 2.8)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gobject-2 Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gobject-2 Dep: libc6 (>= 2.14)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    python-gobject-2 Dep: libffi6 (>= 3.0.4)  soft_depend 0
      libffi6 is included already, acceptable version 3.2.1-6
    python-gobject-2 Dep: libglib2.0-0 (>= 2.41.1)  soft_depend 0
      libglib2.0-0 is included already, acceptable version 2.50.2-2
  terminator failed, couldn't satisfy OR dep
    terminator Dep: python-gtk2 (>= 2.14.0)  soft_depend 0
    python-gtk2 not included in a useful version, check_backports 0
    python-gtk2 not included in a useful version, check_backports 0
      python-gtk2 (>= 2.14.0) not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    python-gtk2 Dep: python (<< 2.8)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gtk2 Dep: python (>= 2.7)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gtk2 Dep: python-numpy (>= 1:1.10.0~b1)  soft_depend 0
    python-numpy not included in a useful version, check_backports 0
    python-numpy not included in a useful version, check_backports 0
      python-numpy (>= 1:1.10.0~b1) not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    python-numpy Dep: python (<< 2.8)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-numpy Dep: python (>= 2.7~)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-numpy Dep: python2.7  soft_depend 0
      python2.7 is included already, acceptable version 2.7.12-7
    python-numpy Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-numpy Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-numpy Dep: (OR libblas3 libblas3 ) soft_depend 0
      libblas3 is included already, acceptable version 3.6.1-2
    python-numpy Dep: libc6 (>= 2.14)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    python-numpy Dep: (OR liblapack3 liblapack3 ) soft_depend 0
      liblapack3 is included already, acceptable version 3.6.1-2
    python-gtk2 Dep: python-numpy  soft_depend 0
    python-numpy not included in a useful version, check_backports 0
    python-numpy not included in a useful version, check_backports 0
    OR relationship already satisfied by parent python-numpy
    python-gtk2 Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gtk2 Dep: libatk1.0-0 (>= 1.12.4)  soft_depend 0
      libatk1.0-0 is included already, acceptable version 2.22.0-1
    python-gtk2 Dep: libc6 (>= 2.14)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    python-gtk2 Dep: libcairo2 (>= 1.2.4)  soft_depend 0
      libcairo2 is included already, acceptable version 1.14.6-1.1
    python-gtk2 Dep: libfontconfig1 (>= 2.11)  soft_depend 0
      libfontconfig1 is included already, acceptable version 2.11.0-6.7
    python-gtk2 Dep: libfreetype6 (>= 2.2.1)  soft_depend 0
      libfreetype6 is included already, acceptable version 2.6.3-3+b1
    python-gtk2 Dep: libgdk-pixbuf2.0-0 (>= 2.22.0)  soft_depend 0
      libgdk-pixbuf2.0-0 is included already, acceptable version 2.36.0-1
    python-gtk2 Dep: libglib2.0-0 (>= 2.24.0)  soft_depend 0
      libglib2.0-0 is included already, acceptable version 2.50.2-2
    python-gtk2 Dep: libgtk2.0-0 (>= 2.24.0)  soft_depend 0
      libgtk2.0-0 is included already, acceptable version 2.24.31-1
    python-gtk2 Dep: libpango-1.0-0 (>= 1.22.0)  soft_depend 0
      libpango-1.0-0 is included already, acceptable version 1.40.3-3
    python-gtk2 Dep: libpangocairo-1.0-0 (>= 1.21.4)  soft_depend 0
      libpangocairo-1.0-0 is included already, acceptable version 1.40.3-3
    python-gtk2 Dep: libpangoft2-1.0-0 (>= 1.21.4)  soft_depend 0
      libpangoft2-1.0-0 is included already, acceptable version 1.40.3-3
    python-gtk2 Dep: python-cairo (>= 1.0.2-1.1)  soft_depend 0
    python-cairo not included in a useful version, check_backports 0
    python-cairo not included in a useful version, check_backports 0
      python-cairo (>= 1.0.2-1.1) not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    python-cairo Dep: libc6 (>= 2.14)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    python-cairo Dep: libcairo2 (>= 1.8.6)  soft_depend 0
      libcairo2 is included already, acceptable version 1.14.6-1.1
    python-cairo Dep: python (<< 2.8)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-cairo Dep: python (>= 2.7~)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-cairo Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-cairo Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-gtk2 Dep: python-gobject-2 (>= 2.21.3)  soft_depend 0
    python-gobject-2 not included in a useful version, check_backports 0
    python-gobject-2 not included in a useful version, check_backports 0
    OR relationship already satisfied by parent python-gobject-2 (>= 2.21.3)
  terminator failed, couldn't satisfy OR dep
    terminator Dep: python-vte  soft_depend 0
    python-vte not included in a useful version, check_backports 0
    python-vte not included in a useful version, check_backports 0
      python-vte not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    python-vte Dep: libatk1.0-0 (>= 1.12.4)  soft_depend 0
      libatk1.0-0 is included already, acceptable version 2.22.0-1
    python-vte Dep: libc6 (>= 2.4)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    python-vte Dep: libcairo2 (>= 1.2.4)  soft_depend 0
      libcairo2 is included already, acceptable version 1.14.6-1.1
    python-vte Dep: libfontconfig1 (>= 2.11)  soft_depend 0
      libfontconfig1 is included already, acceptable version 2.11.0-6.7
    python-vte Dep: libfreetype6 (>= 2.2.1)  soft_depend 0
      libfreetype6 is included already, acceptable version 2.6.3-3+b1
    python-vte Dep: libgdk-pixbuf2.0-0 (>= 2.22.0)  soft_depend 0
      libgdk-pixbuf2.0-0 is included already, acceptable version 2.36.0-1
    python-vte Dep: libglib2.0-0 (>= 2.26.0)  soft_depend 0
      libglib2.0-0 is included already, acceptable version 2.50.2-2
    python-vte Dep: libgtk2.0-0 (>= 2.20.0)  soft_depend 0
      libgtk2.0-0 is included already, acceptable version 2.24.31-1
    python-vte Dep: libncurses5 (>= 6)  soft_depend 0
      libncurses5 is included already, acceptable version 6.0+20160917-1
    python-vte Dep: libpango-1.0-0 (>= 1.22.0)  soft_depend 0
      libpango-1.0-0 is included already, acceptable version 1.40.3-3
    python-vte Dep: libpangocairo-1.0-0 (>= 1.22.0)  soft_depend 0
      libpangocairo-1.0-0 is included already, acceptable version 1.40.3-3
    python-vte Dep: libpangoft2-1.0-0 (>= 1.22.0)  soft_depend 0
      libpangoft2-1.0-0 is included already, acceptable version 1.40.3-3
    python-vte Dep: libtinfo5 (>= 6)  soft_depend 0
      libtinfo5 is included already, acceptable version 6.0+20160917-1
    python-vte Dep: libvte9 (>= 1:0.24.0)  soft_depend 0
    libvte9 not included in a useful version, check_backports 0
    libvte9 not included in a useful version, check_backports 0
      libvte9 (>= 1:0.24.0) not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    libvte9 Dep: libatk1.0-0 (>= 1.12.4)  soft_depend 0
      libatk1.0-0 is included already, acceptable version 2.22.0-1
    libvte9 Dep: libc6 (>= 2.14)  soft_depend 0
      libc6 is included already, acceptable version 2.24-7
    libvte9 Dep: libcairo2 (>= 1.2.4)  soft_depend 0
      libcairo2 is included already, acceptable version 1.14.6-1.1
    libvte9 Dep: libfontconfig1 (>= 2.11)  soft_depend 0
      libfontconfig1 is included already, acceptable version 2.11.0-6.7
    libvte9 Dep: libfreetype6 (>= 2.2.1)  soft_depend 0
      libfreetype6 is included already, acceptable version 2.6.3-3+b1
    libvte9 Dep: libgdk-pixbuf2.0-0 (>= 2.22.0)  soft_depend 0
      libgdk-pixbuf2.0-0 is included already, acceptable version 2.36.0-1
    libvte9 Dep: libglib2.0-0 (>= 2.37.3)  soft_depend 0
      libglib2.0-0 is included already, acceptable version 2.50.2-2
    libvte9 Dep: libgtk2.0-0 (>= 2.24.0)  soft_depend 0
      libgtk2.0-0 is included already, acceptable version 2.24.31-1
    libvte9 Dep: libncurses5 (>= 6)  soft_depend 0
      libncurses5 is included already, acceptable version 6.0+20160917-1
    libvte9 Dep: libpango-1.0-0 (>= 1.22.0)  soft_depend 0
      libpango-1.0-0 is included already, acceptable version 1.40.3-3
    libvte9 Dep: libpangocairo-1.0-0 (>= 1.22.0)  soft_depend 0
      libpangocairo-1.0-0 is included already, acceptable version 1.40.3-3
    libvte9 Dep: libpangoft2-1.0-0 (>= 1.22.0)  soft_depend 0
      libpangoft2-1.0-0 is included already, acceptable version 1.40.3-3
    libvte9 Dep: libtinfo5 (>= 6)  soft_depend 0
      libtinfo5 is included already, acceptable version 6.0+20160917-1
    libvte9 Dep: libx11-6  soft_depend 0
      libx11-6 is included already, acceptable version 2:1.6.3-1
    libvte9 Dep: libxext6  soft_depend 0
      libxext6 is included already, acceptable version 2:1.3.3-1
    libvte9 Dep: libvte-common (= 1:0.28.2-5)  soft_depend 0
    libvte-common not included in a useful version, check_backports 0
    libvte-common not included in a useful version, check_backports 0
      libvte-common (= 1:0.28.2-5) not already installed
    OR relationship not already satisfied, looking at alternatives in order, check_backports 0
    python-vte Dep: libx11-6  soft_depend 0
      libx11-6 is included already, acceptable version 2:1.6.3-1
    python-vte Dep: libxext6  soft_depend 0
      libxext6 is included already, acceptable version 2:1.3.3-1
    python-vte Dep: python (>= 2.7)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-vte Dep: python (<< 2.8)  soft_depend 0
      python is included already, acceptable version 2.7.11-2
    python-vte Dep: python-gtk2  soft_depend 0
    python-gtk2 not included in a useful version, check_backports 0
    python-gtk2 not included in a useful version, check_backports 0
    OR relationship already satisfied by parent python-gtk2
    python-vte Dep: libvte-common (= 1:0.28.2-5)  soft_depend 0
    libvte-common not included in a useful version, check_backports 0
    libvte-common not included in a useful version, check_backports 0
    OR relationship already satisfied by parent libvte-common (= 1:0.28.2-5)
  terminator failed, couldn't satisfy OR dep
    terminator Dep: python  soft_depend 0
      python is included already, acceptable version 2.7.11-2
Can't add terminator ... dependency problem.

可以看到,要检查的包数量惊人......达到了不合理的水平,要解决一个单身的包裹。我已经检查过故障排除部分操作方法中指出:

如果构建结束时出现错误,例如:

ERROR: missing required packages from profile MyProfile:  mplayer ...

要查找无法添加此包的原因,请参阅: tmp/cd-build/$dist/sort_deps.$arch.log

您可能需要显式添加间接依赖项。例如,mplayer 依赖于 mplayer-skin。除了没有 mplayer-skin 包。然而,有一个 mplayer-skin-blue 软件包提供 mplayer-skin 并满足依赖性。一些更新的软件包也是如此,它们提供了许多旧的软件包,例如 gtk2-engines-induscial 软件包,它实际上包含在 gtk2-engines 软件包中。如果您可以确定需要哪个包,请将其添加到包的 *.downloads 配置文件中将被收录到光盘中。 (注意:从 simple-cdd 0.3.6 开始,provides 应该或多或少正确处理)(注意:不是那么多。在一个例子中,xpdf-utils 不再是一个真正的包。它是一个过渡性的包在将安装程序从lenny升级到squeeze的过程中,这一直阻碍着我,直到我明确添加了所有第二级依赖项并且导致问题的包最终在错误消息中弹出。因此,要解决此问题,您需要开始添加所有 apt 自动添加到 *.packages 文件中的包,直到找到依赖于过渡包的包。

如果 simple-cdd 不能正确处理自建包的依赖关系,请先使用 lintian 检查。我花了两天时间才发现我的一个与 dpkg/apt/reprepro 无缝协作的软件包有一个格式错误的标头。

显然,我应该能够通过识别我需要的包并将其添加到 .downloads 文件来解决这个问题,但是:

  1. 我不确定标准是什么。
  2. 我尝试了猎枪方法,添加了所有找不到的包。这并没有解决原来的问题,还带来了其他问题。
  3. 它声称有些问题是由于错误格式的标头造成的,所以我应该首先使用 lintian,但是这些软件包是从 Debian 的镜像安装的,通常不会出现此类问题,但无论如何我不知道如何确认它。
  4. 删除软件包允许构建 CD,但尝试更高的依赖关系并没有帮助。我更改了 task-xfce-desktop 的这些包,结果或多或少相同。

相关内容