当虚拟包依赖/推荐/建议而没有真实包依赖/推荐/建议时会发生什么?

当虚拟包依赖/推荐/建议而没有真实包依赖/推荐/建议时会发生什么?

推荐:xkb-data、x-terminal-emulator、pavucontrol | gnome-alsamixer

这里的 是什么意思x-terminal-emulator

我发现一个链接,但是应该安装什么?

这是undefined behavior

例如:

root@debian:/# cat /etc/os-release |grep ^PRETTY_NAME
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
root@debian:/# aptitude --disable-columns show lxpanel
Package: lxpanel                         
Version: 0.9.3-1
State: not installed
Priority: optional
Section: x11
Maintainer: Debian LXDE Maintainers <[email protected]>
Architecture: i386
Uncompressed Size: 753 k
Depends: libasound2 (>= 1.0.16), libatk1.0-0 (>= 1.12.4), libc6 (>= 2.7), libcairo2 (>= 1.2.4), libfm-gtk4 (>= 1.2.0), libfm4 (>= 1.2.0), libfontconfig1 (>= 2.11), libfreetype6
         (>= 2.2.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.41.1), libgtk2.0-0 (>= 2.24.0), libiw30 (>= 30~pre1), libkeybinder0 (>= 0.3.0), libmenu-cache3 (>= 0.5.0),
         libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0), libpangoft2-1.0-0 (>= 1.14.0), libwnck22 (>= 2.30.7), libx11-6, libxml2 (>= 2.7.4), lxmenu-data, lxpanel-data
         (= 0.9.3-1), libfm-modules
Recommends: xkb-data, x-terminal-emulator, pavucontrol | gnome-alsamixer
Suggests: menu, firefox-esr | firefox | www-browser
Description: LXDE panel
 LXPanel is a GUI application for the Lightweight X11 Desktop Environment (LXDE). 

 It is derived from fbpanel and includes the following features: 

 * User-friendly application menu automatically generated from .desktop files on the system 
 * Launcher bar (small icons clicked to launch apps) 
 * Task bar supporting ICCCM/EWMH `urgency' hint (Pidgin IM windows can flash on new incoming messages) 
 * Run dialog (type a command to run, without opening a terminal) 
 * Net status icon plug-in (optional). 
 * Volume control plug-in (optional). 
 * Notification area (system tray). 
 * Digital clock. 
 * Keyboard LEDs plug-in (display caps/num locks). 
 * lxpanelctl: control lxpanel from other programs. For example, "lxpanelctl run" will show the Run dialog in lxpanel, and "lxpanelctl menu" will show the application menu. This
   is useful in combination with window manager key bindings.
Homepage: http://www.lxde.org/
Tags: hardware::input:mouse, interface::graphical, interface::x11, role::program, scope::utility, suite::TODO, uitoolkit::gtk, use::TODO, works-with::software:package,
      works-with::software:running, x11::applet, x11::application

root@debian:/# 

以下是旧内容(找到答案

为什么提示我“termit”会安装,为什么“lxterminal”不会安装?

我预计会安装“lxerminal”,因为“lxde-core”首先推荐“lxterminal”,但为什么会安装“termit”?

我所做的和遇到的:

如果您需要更多信息可以告诉我,谢谢

root@debian:~/debian_stretch# debootstrap stretch ./ http://ftp.cn.debian.org/debian/ >/dev/null
root@debian:~/debian_stretch# mount --bind /sys ./sys
root@debian:~/debian_stretch# mount --bind /proc ./proc
root@debian:~/debian_stretch# chroot ./
root@debian:/# apt update >/dev/null 2>&1
root@debian:/# echo Y |apt upgrade >/dev/null 2>&1
root@debian:/# echo n |apt install lxde-core 2>&1| grep -o termit
termit
termit
root@debian:/# echo n |apt install lxde-core 2>&1| grep -o lxterminal
root@debian:/# echo n |apt-get install lxde-core 2>&1| grep -o termit
termit
termit
root@debian:/# echo n |apt-get install lxde-core 2>&1| grep -o lxterminal
root@debian:/# apt-cache policy termit
termit:
  Installed: (none)
  Candidate: 3.0-1+b1
  Version table:
     3.0-1+b1 500
        500 http://ftp.cn.debian.org/debian stretch/main i386 Packages
root@debian:/# apt-cache policy lxterminal
lxterminal:
  Installed: (none)
  Candidate: 0.3.0-2
  Version table:
     0.3.0-2 500
        500 http://ftp.cn.debian.org/debian stretch/main i386 Packages
root@debian:/#

再次,如果您需要更多信息可以告诉我,谢谢

答案1

A | B在简单的情况下,如果两者都没有安装,则依赖项将选择 A。

然而,很常见的是,依赖项解析也受到相互依赖项的影响(如果解决其他依赖项最终会拉入 B,则不需要安装 A)和固定(如果具有 B 的存储库获得更高的 pin,则将选择 B) )。

答案2

如果您已经有一个满足安装的虚拟包的包x-terminal-emulator,我认为 apt 认为该依赖关系已得到满足。你可能已经这样做了。从我的头顶上看,我不知道如何检查。虽然xterm,,konsoleterminator许多其他提供x-terminal-emulator

相关内容