首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Debian包不遵循提供的吗?

Debian包不遵循提供的吗?
EN

Stack Overflow用户
提问于 2015-11-02 05:56:59
回答 1查看 605关注 0票数 0

我有以下两个包(定制):

代码语言:javascript
复制
**apt-cache show libmysqlclient18**


Package: libmysqlclient18
Section: libs
Installed-Size: 4194
Architecture: amd64
Version: 5.6.27
Depends: mysql-common (>= 5.6.27)
Filename: ./libmysqlclient18.deb
Size: 1167158
MD5sum: cf4a5d292456375c4099b11f5ee6270d
SHA1: e9c4f185bed358e5dda908555686b2884d341772
SHA256: 3092f2af61493bd8e75503568ff622ce1dd81a9ce04aa072d28c336092835e8f
SHA512: e0ffcf7cd48f230225fb48bf5fee8968f1e4006c581529b196a27bff06257fe1da55e80434af0e2e58d2805156da37c44d7994a5af233e8942ecc6d99d680117
Description-en: MySQL database client library
 MySQL is a fast, stable and true multi-user, multi-threaded SQL database
 server. SQL (Structured Query Language) is the most popular database query
 language in the world. The main goals of MySQL are speed, robustness and
 ease of use.
 .
 This package includes the client library.

以及以下内容:

代码语言:javascript
复制
**dpkg --info libmysqlclient20.deb**


 new debian package, version 2.0.
 size 1429220 bytes: control archive=909 bytes.
     768 bytes,    18 lines      control
      72 bytes,     1 lines      md5sums
     268 bytes,    15 lines   *  postinst             #!/bin/bash
     139 bytes,     7 lines   *  postrm               #!/bin/sh
      45 bytes,     0 lines      shlibs
 Package: libmysqlclient20
 Architecture: amd64
 Version: 5.7.9
 Section: libs
 Depends: mysql-common (>= 5.7.9)
 Provides: libmysqlclient15, libmysqlclient18
 Conflicts: libmysqlclient15, libmysqlclient18
 Replaces: libmysqlclient15, libmysqlclient18
 Installed-Size: 4565
 Description: MySQL shared client libraries
  The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
  and robust SQL (Structured Query Language) database server. MySQL Server
  is intended for mission-critical, heavy-load production systems as well
  as for embedding into mass-deployed software. MySQL is a trademark of
  Oracle. This package contains the shared libraries for MySQL client
  applications.

现在,当尝试安装libmysqlclient20时,我确实收到了许多关于未满足依赖项的警告:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree
Reading state information... Done
dovecot-mysql is already the newest version.
libdbd-mysql-perl is already the newest version.
libdbd-mysql-perl set to manually installed.
libmailutils4 is already the newest version.
mailutils is already the newest version.
mailutils set to manually installed.
libqt4-sql-mysql is already the newest version.
libqt4-sql-mysql set to manually installed.
php5-mysql is already the newest version.
php5-mysql set to manually installed.
zabbix-server-mysql is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 dovecot-mysql : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1)
 libdbd-mysql-perl : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1)
 libmailutils4 : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1)
 libqt4-sql-mysql : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1)
 mailutils : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1)
 php5-mysql : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1)
 zabbix-server-mysql : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1)
                       Recommends: snmptt but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我不能理解的是,我在控制文件中提供了一个"Provides“头和一个"Replaces”头。当我说新的包提供了libmysqlclient18时,它怎么会选择忽略它呢?

(当我想执行apt-get -f安装时,它想要删除libmysqlclient20,然后重新安装libmysqlclient18)。

有人知道我错过了什么吗?

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2015-11-02 13:57:47

引用Debian Policy Manual

A Provides字段可能不包含版本号,并且在考虑对虚拟包名称的依赖性或与虚拟包名称冲突时,将不考虑提供特定虚拟包的具体包的版本号。

如果依赖项是未版本化的,那么提供项就会得到满足,但是,始终未版本化的提供项永远不能满足版本化的依赖项。

所以:保持相同的包名和更高的版本号。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33467679

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档