AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题

问题[dependencies](unix)

Martin Hope
Time4Tea
Asked: 2025-02-24 23:13:38 +0800 CST

找不到明显存在的可执行文件

  • 9

我正在尝试在 Pop OS 中运行 COMSOL 许可证管理器;但是,当我尝试运行时:

$ ./lmgrd -c ../license.dat -l /var/tmp/comsol55.log

我收到以下错误:

bash:./lmgrd:没有此文件或目录

该lmgrd文件显然存在于当前目录中。运行ldd lmgrd将产生以下输出:

linux-vdso.so.1 (0x00007acd5ec0d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007acd5ebf0000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007acd5eb09000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007acd5eae9000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007acd5e800000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007acd5eae4000)
/lib64/ld-lsb-x86-64.so.3 => /lib64/ld-linux-x86-64.so.2 (0x00007acd5ec0f000)

这里的问题是缺少第一个依赖项吗?如果是,在 Pop OS 中添加该依赖项需要什么包?

dependencies
  • 1 个回答
  • 329 Views
Martin Hope
RJVB
Asked: 2023-11-18 23:09:55 +0800 CST

区分 Linux 上二进制文件的直接依赖关系和间接依赖关系?

  • 7

ldd在 Linux 上将给出给定二进制文件所依赖的所有共享库的列表。这通常比用于创建二进制文件的链接器命令行上列出的库要广泛得多:它将包括这些库的大多数(如果不是全部)依赖项。

是否可以仅确定显式链接的库列表(即直接依赖项),如果可以,如何确定?

dependencies
  • 2 个回答
  • 303 Views
Martin Hope
showkey
Asked: 2023-09-16 10:29:38 +0800 CST

安装 samba 时如何满足未满足的依赖关系?

  • 5
sudo apt-get install samba samba-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:

The following packages have unmet dependencies:
 samba : Depends: python3-samba (= 2:4.17.10+dfsg-0+deb12u1) but it is not going to be installed
         Depends: samba-common-bin (= 2:4.17.10+dfsg-0+deb12u1) but it is not installable
         Depends: libc6 (>= 2.34) but 2.31-13+deb11u6 is to be installed
         Depends: libldb2 (>= 2:2.6.1) but 2:2.2.3-2~deb11u2 is to be installed
         Depends: libtalloc2 (>= 2.3.4~) but 2.3.1-2+b1 is to be installed
         Depends: libtdb1 (>= 1.4.7~) but 1.4.3-1+b1 is to be installed
         Depends: libtevent0 (>= 0.13.0~) but 0.10.2-1 is to be installed
         Depends: samba-libs (= 2:4.17.10+dfsg-0+deb12u1) but 2:4.13.13+dfsg-1~deb11u5 is to be installed
         Recommends: attr but it is not going to be installed
         Recommends: python3-markdown but it is not going to be installed
         Recommends: samba-dsdb-modules but it is not going to be installed
         Recommends: samba-vfs-modules but it is not going to be installed
         Recommends: samba-ad-provision but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

如何解决未满足的依赖关系?

政策状况:

sudo apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://mirrors.ustc.edu.cn/debian-security stable-security/main amd64 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=main,b=amd64
     origin mirrors.ustc.edu.cn
 100 http://mirrors.163.com/debian bullseye-backports/contrib amd64 Packages
     release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=contrib,b=amd64
     origin mirrors.163.com
 100 http://mirrors.163.com/debian bullseye-backports/non-free amd64 Packages
     release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=non-free,b=amd64
     origin mirrors.163.com
 100 http://mirrors.163.com/debian bullseye-backports/main amd64 Packages
     release o=Debian Backports,a=bullseye-backports,n=bullseye-backports,l=Debian Backports,c=main,b=amd64
     origin mirrors.163.com
 500 http://mirrors.163.com/debian bullseye-updates/main amd64 Packages
     release v=11-updates,o=Debian,a=oldstable-updates,n=bullseye-updates,l=Debian,c=main,b=amd64
     origin mirrors.163.com
 500 http://mirrors.163.com/debian bullseye/contrib amd64 Packages
     release v=11.7,o=Debian,a=oldstable,n=bullseye,l=Debian,c=contrib,b=amd64
     origin mirrors.163.com
 500 http://mirrors.163.com/debian bullseye/non-free amd64 Packages
     release v=11.7,o=Debian,a=oldstable,n=bullseye,l=Debian,c=non-free,b=amd64
     origin mirrors.163.com
 500 http://mirrors.163.com/debian bullseye/main amd64 Packages
     release v=11.7,o=Debian,a=oldstable,n=bullseye,l=Debian,c=main,b=amd64
     origin mirrors.163.com
Pinned packages:

我的操作系统:

uname -a
Linux debian 5.10.0-22-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64 GNU/Linux
dependencies
  • 1 个回答
  • 14 Views
Martin Hope
AdminBee
Asked: 2022-09-29 07:52:37 +0800 CST

OracleLinux 8.6 中“glibc.i686”的“glibc-common”依赖是如何实现的?

  • 1

OracleLinux 8.6 包含 32 位软件包glibc-2.28-189.1.0.1.el8.i686.rpm。这个包需要glibc-common的正是那个版本:

$ rpm -qpv --requires glibc-2.28-189.1.0.1.el8.i686.rpm 
...
manual: glibc-common = 2.28-189.1.0.1.el8
...

但是,存储库不包含glibc-common-2.28-189.1.0.1.el8.i686.rpm,仅包含glibc-common-2.28-189.1.0.1.el8.x86_64.rpm.

64位版本能否glibc-common满足32位glibc包的依赖需求?如果是这样,为什么不考虑它noarch,以及 RPM 依赖解析器如何确定它必须引入 RPM 包的 64 位变体?

或者,是否有提供此版本的存储库glibc-common.i686?我知道Koji存储glibc-common-2.28-189.el8.i686.rpm库,但它只提供. 2.28-189.1.0.1.el8

rpm dependencies
  • 1 个回答
  • 25 Views
Martin Hope
Zsargul
Asked: 2022-06-28 04:26:38 +0800 CST

列出当前安装的具有指定依赖项的包

  • 3

我目前systemd在 Manjaro 上使用,我正计划使用 OpenRC 切换到 Artix(没有任何反对意见systemd,只是想尝试一个新的初始化系统来拓宽我的视野)。我读过非 systemd 初始化系统的一个问题是某些包对 systemd 有硬依赖,但我能找到的唯一示例是snap(来自以下帖子)。

有没有一种方法可以列出我当前安装的依赖于 systemd 和/或其任何相关软件包的软件包,所以如果我决定改用 OpenRC,我可以看看我当前使用的任何东西是否不起作用?

systemd dependencies
  • 2 个回答
  • 128 Views
Martin Hope
Chris Henry
Asked: 2022-06-24 16:19:39 +0800 CST

为什么 LibreOffice(至少是为 Debian 打包的)依赖于 libldap?

  • 8

Debian 软件包libreoffice-core(在 Debian 存储库中被描述为包含“LibreOffice 的体系结构相关核心文件”,并且它本身是对libreoffice-writer和类似软件包的依赖)具有绝对依赖关系(即,软件包的关系是depends,而不是recommends或suggests) on libldap-2.4-2(描述为“OpenLDAP(轻量级目录访问协议)服务器和客户端的运行时库”)。

为什么?迄今为止,最常见的用例是在运行它的同一台机器上编辑本地存储的文件的文字处理器如何依赖于访问远程目录的协议,如果后者不存在,它甚至无法配置?这只是一个依赖分类错误(即关系实际上应该是recommendsor suggests),还是 libreoffice 实际上需要安装 OpenLDAP 才能运行?

debian dependencies
  • 2 个回答
  • 1502 Views
Martin Hope
klor
Asked: 2020-02-28 13:12:09 +0800 CST

Debian 9.12 中的 libc6 依赖项不匹配

  • 0

我在 Debian 9.12 中遇到了以下 libc6 依赖问题。

sudo apt install libc6-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
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:

The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.24-11+deb9u4) but 2.27-6 is to be installed
             Depends: libc-dev-bin (= 2.24-11+deb9u4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我该如何解决?

EDIT1:apt策略libc6

libc6:
  Installed: 2.27-6
  Candidate: 2.27-6
  Version table:
 *** 2.27-6 100
        100 /var/lib/dpkg/status
     2.24-11+deb9u4 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
     2.24-11+deb9u1 500
        500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

编辑2:

sudo apt install libc6/stable libc6-bin/stable locales/stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Release 'stable' for 'libc6' was not found
E: Unable to locate package libc6-bin
E: Release 'stable' for 'locales' was not found
debian dependencies
  • 2 个回答
  • 1064 Views
Martin Hope
Duck Dodgers
Asked: 2020-01-30 02:06:09 +0800 CST

有没有人在 Debian 10 上成功安装了 evolution-ews?

  • 2

我想安装evolution-ews在Debian 10. 我已经安装了进化,它没有错误。尝试安装evolution-ews时,我收到以下错误:

$ sudo apt install evolution-ews
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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:

The following packages have unmet dependencies:
 evolution-ews : Depends: libecal-1.2-19 (>= 3.22.6) but it is not going to be installed
                 Depends: libedata-cal-1.2-28 (>= 3.22.6) but it is not going to be installed
                 Depends: libevolution (>= 3.22.6) but it is not going to be installed
                 Depends: libevolution (< 3.23) but it is not going to be installed
                 Depends: evolution (>= 3.22) but it is not going to be installed
                 Depends: evolution (< 3.23) but it is not going to be installed
                 Depends: evolution-data-server (>= 3.22) but it is not going to be installed
                 Depends: evolution-data-server (< 3.23) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
  • 所以只是为了测试我是否可以安装任何这些依赖项,我惊讶地发现它们都已经安装了。
$ sudo apt install libecal-1.2-19
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libecal-1.2-19 is already the newest version (3.30.5-1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
$ sudo apt install libedata-cal-1.2-28
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libedata-cal-1.2-28 is already the newest version (3.22.7-1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
$ sudo apt install libevolution
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libevolution is already the newest version (3.30.5-1.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
$ sudo apt install evolution
Reading package lists... Done
Building dependency tree       
Reading state information... Done
evolution is already the newest version (3.30.5-1.1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
$ sudo apt install evolution-data-server 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
evolution-data-server is already the newest version (3.30.5-1).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
$ 

如您所见,evolution-ews软件包所需的所有依赖项都已安装,其版本要么较新,要么至少与evolution-ews所需内容保持同步。

  • 只是为了好玩,我检查了任何“损坏的”包,因为原始错误消息谈到“损坏的包被阻止”。
$ dpkg -l | grep ^..r
$ sudo apt-get check
Reading package lists... Done
Building dependency tree       
Reading state information... Done
$ dpkg-query -W -f='${db:Status-Abbrev} ${binary:Package}\n' | grep -E ^.[^nci]
$ dpkg --audit
$

如您所见,所有这些命令的输出都是干净的。没有破损的包裹。

的输出apt-mark showhold指示没有保留的包。

所以这让我在这个阶段想知道:evolution-ews看起来是一个损坏的包怎么会进入 Debian 存储库 - Debian 应该是“稳定的发行版”。或者我在这里错过了什么?

debian dependencies
  • 1 个回答
  • 3188 Views
Martin Hope
Obiphil
Asked: 2019-11-29 04:47:28 +0800 CST

Yum 未能遵守软件包的版本要求

  • 0

我在使用 yum 解决我的项目的依赖项时遇到问题,该项目由我们自己构建的多个 RPM 组成。我已经建立了一个 RPM:

Requires: Database-devel = 1.0.0

但是当我运行时:

$ yum deplist Release/ConfigLoader-devel-4.0.1-0.191128.123053.g83eb.b.d.el7.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * epel: epel.besthosting.ua
package: ConfigLoader-devel.x86_64 4.0.1-0.191128.123053.g83eb.b.d.el7
  dependency: /bin/sh
   provider: bash.x86_64 4.2.46-31.el7
  dependency: Database-devel = 1.0.0
   provider: Database-devel.x86_64 2.0.0-0.191126.123742.gb769.r

它表示该依赖项的提供者(最后一行)的版本为 2.0.0。以下附加信息确认 Database-devel 软件包的版本在 yum 存储库中设置正确,并且有 1.0.0 版本可供 yum 选择:

$ yum info Database-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * epel: epel.besthosting.ua
Available Packages
Name        : Database-devel
Arch        : x86_64
Version     : 2.0.0
Release     : 0.191126.123742.gb769.r
Size        : 13 k
Repo        : localrepo-oel7


$ yum info Database-devel-1.0.0-1
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * epel: epel.besthosting.ua
Available Packages
Name        : Database-devel
Arch        : x86_64
Version     : 1.0.0
Release     : 1
Size        : 13 k
Repo        : localrepo-oel7

问题是当我尝试安装 ConfigLoader-devel RPM 时,它会尝试拉下 Database-devel 2.0.0 包并安装它,这会破坏我的构建。

我的百胜版本是:

$ yum --version
3.4.3
  Installed: rpm-4.11.3-35.el7.x86_64 at 2019-05-21 13:14
  Built    : CentOS BuildSystem <http://bugs.centos.org> at 2018-10-30 19:27
  Committed: Pavlina Moravcova Varekova <[email protected]> at 2018-06-19

  Installed: yum-3.4.3-161.0.1.el7.noarch at 2019-06-05 11:27
  Built    : None at 2018-11-01 10:10
  Committed: EL Errata <[email protected]> at 2018-10-31

  Installed: yum-plugin-fastestmirror-1.1.31-50.el7.noarch at 2019-05-21 13:15
  Built    : CentOS BuildSystem <http://bugs.centos.org> at 2018-10-30 22:58
  Committed: Michal Domonkos <[email protected]> at 2018-08-24

我该如何进一步诊断?

yum dependencies
  • 1 个回答
  • 58 Views
Martin Hope
TheMeaningfulEngineer
Asked: 2019-03-22 04:39:18 +0800 CST

同一个 systemd 服务的“之前”和“想要”?

  • 12

在这个systemd 单元文件的例子中:

# systemd-timesyncd.service
...

Before=time-sync.target sysinit.target shutdown.target
Conflicts=shutdown.target
Wants=time-sync.target

systemd-timesyncd.service应该开始之前 time-sync.target。这定义了一个排序依赖。

但同时systemd-timesyncd.service 想要 time-sync.target。time-sync.target它的需求依赖也是如此

这种关系的用例是什么?为什么它们之间没有冲突?

systemd dependencies
  • 3 个回答
  • 2836 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve