标签: dependencies

即使安装了库,YUM 依赖性问题

我们从源代码构建我们自己的 php 和 mysql 包,这个包用于 php-5.4.10 版本,并将它们托管在我们自己的存储库中。我们称这个包为 custom-php 和 custom-mysql(-libs & -server)

当我在服务器上执行 yum install custom-php 时,yum 列出了一个依赖问题:

--> Finished Dependency Resolution
Error: Package: custom-php-1.1.x86_64 (php)
           Requires: libmysqlclient.so.18(libmysqlclient_16)(64bit)
Error: Package: custom-php-1.1.x86_64 (php)
           Requires: libmysqlclient.so.18(libmysqlclient_18)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Run Code Online (Sandbox Code Playgroud)

文件 libmysqlclient.so.18 由 custom-mysql-libs 提供,它列在 custom-php 的规范文件中的 Requires 下。即使我在发出 yum install custom-php 之前手动安装 custom-mysql-libs,我仍然会收到上述错误。

我们的 custom-mysql-libs 是从 mysql 源代码构建的,并提供 libmysqlclient.so:

$ rpm -qlp custom-mysql-libs-1.0.x86_64.rpm 
/custom/lib64/libmysqlclient.so
/custom/lib64/libmysqlclient.so.18
/custom/lib64/libmysqlclient.so.18.0.0
.... …
Run Code Online (Sandbox Code Playgroud)

rpm dependencies

5
推荐指数
1
解决办法
1万
查看次数

DEB:“提供:”字段被忽略

我需要用一个自定义的包替换一个包,它有自己的名字(foo-origpackage)。为了允许将其用作替代品,我将这Provides: origpackage一行添加到控制文件中。apt-cache show foo-origpackage列出“提供”条目就好了。但是,当我想根据 origpackage 安装文件时,它会失败(“未安装软件包 origpackage”)。

我缺少的“真实”包和虚拟包之间有什么区别吗?

编辑:

准确地说,我要替换的是用于 Squeeze 的 xen-utils-common。我的 tao-xen-utils-common 有以下control文件:

来源:tao-xen-utils-common
部分:内核
优先级:可选
维护者:Creshal <administration@tao.at>
构建依赖:debhelper
标准版本:3.8.0
主页:http://tao.at

包:tao-xen-utils-common
架构:全部
依赖:gawk、lsb-base、udev、xenstore-utils、tao-firewall
提供:xen-utils-common
冲突:xen-utils-common
替换:xen-utils-common
说明:Xen 管理工具——常用文件(修改)
 管理通过 Xen 虚拟化的系统的用户空间工具
 机监视器。
 修改为与 TAO 防火墙一起使用。

但是,安装 xen-utils-4.0 失败:

foo@bar# apt-cache showpkg tao-xen-utils-common
包:tao-xen-utils-common
版本: 
4.0.0-1tao1 (/var/lib/apt/lists/repo.tao.at_dists_stable_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 描述语言: 
                 文件:/var/lib/apt/lists/repo.tao.at_dists_stable_main_binary-amd64_Packages
                  MD5:7c2503f563fca13b33b4eb3cbcb3c129


反向取决于: 
  tao-防火墙,tao-xen-utils-common
  tao-防火墙,tao-xen-utils-common
依赖项: 
4.0.0-1tao1 - gawk (0 (null)) lsb-base (0 (null)) udev (0 (null)) xenstore-utils (0 (null)) tao-firewall (0 (null)) …

debian packages dependencies deb apt

4
推荐指数
1
解决办法
1882
查看次数

为什么“apt-get autoremove sendmail”会留下依赖项?

我注意到安装 sendmail,然后卸载它,使用 apt-get 会留下许多不需要的文件。

sudo apt-get install sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  liblockfile-bin liblockfile1 make procmail sendmail-base sendmail-bin
  sendmail-cf sensible-mda
Suggested packages:
  make-doc sendmail-doc rmail logcheck resolvconf sasl2-bin
Recommended packages:
  default-mta mail-transport-agent fetchmail
The following NEW packages will be installed:
      liblockfile-bin liblockfile1 make procmail sendmail sendmail-base
      sendmail-bin sendmail-cf sensible-mda
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 2256 kB …
Run Code Online (Sandbox Code Playgroud)

debian disk-space-utilization dependencies apt

4
推荐指数
1
解决办法
634
查看次数

无法使用 yum 安装或更新

当尝试在 yum 中安装或更新任何东西时,我得到一个需求列表,删除和废弃:

Loaded plugins: downloadonly, fastestmirror
Setting up Update Process
Determining fastest mirrors
epel/metalink                                                                                                        |  14 kB     00:00     
 * epel: mirrors.mit.edu
base                                                                                                                 | 3.7 kB     00:00     
base/primary_db                                                                                                      | 4.6 MB     00:00     
epel                                                                                                                 | 4.4 kB     00:00     
epel/primary_db                                                                                                      | 3.9 MB     00:00     
extras                                                                                                               | 3.4 kB     00:00     
extras/primary_db                                                                                                    |  30 kB     00:00     
updates                                                                                                              | 3.4 kB     00:00     
updates/primary_db                                                                                                   | 2.1 MB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package db4.x86_64 0:4.7.25-18.el6_4 will be obsoleted
--> Processing Dependency: libdb-4.7.so()(64bit) for …
Run Code Online (Sandbox Code Playgroud)

centos yum dependencies

3
推荐指数
2
解决办法
1万
查看次数

Debian:“apt install build-essential”由于未满足的依赖项而失败

使用 Debian Stretch v9.11。

我尝试安装 build-essential,但由于未满足的依赖关系而失败:

sudo apt install build-essential
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:
 build-essential : Depends: libc6-dev but …
Run Code Online (Sandbox Code Playgroud)

debian dependencies apt debian-stretch

3
推荐指数
2
解决办法
1万
查看次数

在 Ubuntu 8.04 上安装 build-essential 和升级 g++ 时出现问题

我似乎在依赖项方面遇到了一些麻烦,但我自己真的不知道如何解决这个问题。这是输出:

~:) sudo apt-get install build-essential
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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that …
Run Code Online (Sandbox Code Playgroud)

ubuntu installation dependencies

2
推荐指数
1
解决办法
2万
查看次数

依赖地狱试图在 CentOS4 上安装 GCC

我有一个运行 Virtuozzo VPSes 的生产 CentOS 4.4 机器,我正在尝试在其中一个中安装 GCC,以便我可以从源代码安装最新的 PHP。我从 CentOS 镜像下载了 gcc 及其依赖项,并且能够安装其中的一些,但是遇到了 glibc-common 的问题:

[root@hq gcc]# rpm -i glibc-common-2.3.4-2.43.i386.rpm
警告:glibc-common-2.3.4-2.43.i386.rpm:V3 DSA 签名:NOKEY,密钥 ID 443e1821
        来自安装 glibc-common-2.3.4-2.43 的文件 /usr/bin/gencat 与来自包 glibc-common-2.3.4-2.25 的文件冲突
        来自安装 glibc-common-2.3.4-2.43 的文件 /usr/bin/getconf 与来自包 glibc-common-2.3.4-2.25 的文件冲突
        来自安装 glibc-common-2.3.4-2.43 的文件 /usr/bin/getent 与来自包 glibc-common-2.3.4-2.25 的文件冲突
        来自安装 glibc-common-2.3.4-2.43 的文件 /usr/bin/iconv 与来自包 glibc-common-2.3.4-2.25 的文件冲突
        来自安装 glibc-common-2.3.4-2.43 的文件 /usr/bin/lddlibc4 与来自包 glibc-common-2.3.4-2.25 的文件冲突
        来自安装 glibc-common-2.3.4-2.43 的文件 /usr/bin/locale 与来自包 glibc-common-2.3.4-2.25 的文件冲突
        来自安装 glibc-common-2.3.4-2.43 的文件 /usr/bin/localedef 与来自包 glibc-common-2.3.4-2.25 的文件冲突
        来自安装 glibc-common-2.3.4-2.43 的文件 /usr/bin/rpcgen 与来自包 glibc-common-2.3.4-2.25 …

centos dependencies gcc

2
推荐指数
1
解决办法
1332
查看次数

启动/停止 Windows 服务 A 也启动/停止 Windows 服务 B

我创建了两个 Windows 服务 A 和 B,并希望在它们之间添加依赖项,以便我可以:

  1. 启动服务A(服务B自动启动)

  2. 停止服务 A(服务 B 自动停止)

但是,该命令sc config ServiceA depend= ServiceB仅适用于:

  1. 启动服务A(服务B自动启动)

  2. 停止服务 B(服务 A 自动停止)

当我停止服务 A 时,有没有办法让服务 B 自动停止?

windows-server-2003 service dependencies

2
推荐指数
1
解决办法
1109
查看次数

Duplicity 0.7.10 在 Ubuntu 14.04 中升级 librsync 后失败

我花了几个小时尝试配置Duplicity以对 Google Drive 执行自动远程备份。在这一点上,可以肯定地说我正处于自己的私人依赖地狱中。

使用我的发行版 (0.6.x) 附带的 Duplicity 版本,我收到一个错误:

BackendException:Google Docs 后端需要 Google 数据 API Python 客户端库(请参阅http://code.google.com/p/gdata-python-client/)。

尽管我安装了 Google API Python 客户端。所以,我决定尝试升级双重性,但失败了:

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c duplicity/_librsyncmodule.c -o build/temp.linux-x86_64-2.7/duplicity/_librsyncmodule.o
duplicity/_librsyncmodule.c:26:22: fatal error: librsync.h: No such file or directory
 #include <librsync.h>
                      ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

因此,我决定也尝试升级librsync到最新的稳定版本 (2.0)。在为那个依赖而苦苦挣扎之后,我终于得到了两者librsyncduplicity更新到他们最新的稳定版本。

因此,当我使用 给我的 Duplicity 升级版本进行旋转时duplicity --version,我现在立即收到 …

ubuntu installation python dependencies duplicity

2
推荐指数
1
解决办法
2608
查看次数

CentOS 的依赖挑战

鉴于以下输出,建议先尝试什么?这是在作为小型开发服务器运行的 CentOS 5.3 机器上(通过 yum 从 5.2 升级)。我通常对 *nix 感到满意,但依赖追逐有时让我有点困惑。所以这一次我在发疯之前寻求帮助。

今天“yum update”的输出:

Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package perl-Net-SSLeay.i386 0:1.35-1.el5.rf set to be updated
---> Package perl-IO-Socket-SSL.noarch 0:1.26-1.el5.rf set to be updated
---> Package perl-Net-DNS.i386 0:0.65-1.el5.rf set to be updated
---> Package perl-Package-Constants.noarch 0:0.02-1.el5.rf set to be updated
---> Package perl-IO-Compress.noarch 0:2.020-1.el5.rf set to be updated
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.020 for package: perl-IO-Compress
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.020 for package: perl-IO-Compress …
Run Code Online (Sandbox Code Playgroud)

centos yum perl dependencies

1
推荐指数
1
解决办法
6660
查看次数

安装软件时如何查找依赖项?

在软件安装教程中,它们总是有很长的依赖项列表。他们如何找到这些依赖关系?

例如,我正在一个全新的 Ubuntu 服务器上开始,按照安装 rvm 的说明进行操作。他们提供类似的东西:

sudo apt-get install git-core libreadline5 libncurses5-dev libreadline5-dev build-essential zlib1g-dev libssl-dev libpcre3-dev libxml2-dev libxslt-dev;
Run Code Online (Sandbox Code Playgroud)

我只想了解他们如何找到所有这些依赖项。复制粘贴是可以的,但我觉得理解它更重要。

ubuntu installation dependencies

1
推荐指数
1
解决办法
966
查看次数

Debian 9.12 中的 libc6 依赖项不匹配

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

sudo apt 安装 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 (= …
Run Code Online (Sandbox Code Playgroud)

linux debian dependencies libc6 debian-stretch

1
推荐指数
1
解决办法
5340
查看次数

设置 LD_LIBRARY_PATH 还不够?

我已经编辑了我/etc/bashrc的设置,LD_LIBRARY_PATH就像我之前问的问题一样。不过好像没有生效。即使echo $LD_LIBRARY_PATH确实显示了我的修改。并运行我的程序:LD_LIBRARY_PATH="/usr/local/lib" ./test.cgi显式确实有效。我需要重新启动系统吗?这是怎么回事?

linux centos environment-variables dependencies libraries

0
推荐指数
1
解决办法
9401
查看次数