Dependencies equivs虚拟包版本号语法

Dependencies equivs虚拟包版本号语法,dependencies,version,virtual,apt,dpkg,Dependencies,Version,Virtual,Apt,Dpkg,我尝试使用equivs创建一个虚拟包,它为apt提供pythonouthlib包。问题是,除了一个有版本要求的包之外,大多数依赖性问题都得到了解决。我的问题是:如何在提供的字段中指定版本号 我做了以下工作: 使用创建控制文件 equivs-control python-oauthlib 按如下方式编辑控制文件: Section: misc Priority: optional Standards-Version: 3.9.2 Package: python-oauthlib-dummy Ve

我尝试使用
equivs
创建一个虚拟包,它为
apt
提供
pythonouthlib
包。问题是,除了一个有版本要求的包之外,大多数依赖性问题都得到了解决。我的问题是:如何在
提供的
字段中指定版本号

我做了以下工作:

使用创建控制文件

equivs-control python-oauthlib
按如下方式编辑控制文件:

Section: misc
Priority: optional
Standards-Version: 3.9.2

Package: python-oauthlib-dummy
Version: 0.6.1
Provides: python-oauthlib
Architecture: all
Description: Dummy Python OAuthlib package
构建包:

equivs-build python-oauthlib
sudo dpkg -i python-oauthlib-dummy_0.6.1_all.deb
安装软件包:

equivs-build python-oauthlib
sudo dpkg -i python-oauthlib-dummy_0.6.1_all.deb
安装软件包之前,
apt get
导致以下错误:

The following packages have unmet dependencies:
 oneconf-common : Depends: python-oauthlib but it is not installed
 python-oneconf : Depends: python-oauthlib but it is not installed
 python-piston-mini-client : Depends: python-oauthlib but it is not installed
 python-ubuntu-sso-client : Depends: python-oauthlib (>= 0.3.5) but it is not installed
安装包后,除最后一个错误外,所有依赖项错误都会消失:

The following packages have unmet dependencies:
 python-ubuntu-sso-client : Depends: python-oauthlib (>= 0.3.5)
这是有道理的,因为我没有在控制文件中指定
提供的
的版本号。这样做的正确语法是什么?我尝试了各种方法,比如
提供:python-oauthlib-0.6.1
提供:python-oauthlib-0.6-1
提供:python-oauthlib-0.6
提供:python-oauthlib(=0.6.1)
,但没有任何效果。相反,所有原始未满足的依赖项都返回了,并在
apt
中为包pythonauthlib
提供了一行depcomareop

我知道虚拟软件包本身的版本号是不相关的,我只是选择了相同的版本号来澄清它是提供这个版本的虚拟软件


背景:
python-oauthlib-0.6.1
是由
apt
在某个地方安装的。我想使用
pip
安装
pythontwitter
。这需要OAuthlib 1.0.3。Pip无法升级oauthlib,因为它“属于操作系统”。因此,我想在apt中卸载oauthlib,使用
apt-get-remove-python-oauthlib
。这不起作用,因为许多包通过一系列其他依赖项依赖于oauthlib,包括
软件中心
和我不想卸载的其他包。因此,我使用
dpkg-r——力取决于
,移除了这个包。这确实允许我在pip中成功地安装了
oauthlib
python twitter
,但由于缺少依赖项,它使得
apt
无法使用。为了解决这个问题,我现在尝试安装虚拟软件包。

提供的
字段现在可能包含一个版本号:

 Provides: gnome-shell-extensions (= 3.14.2-1)
这是从DPKG1.17.11开始支持的,也是从Debian8(Jessie)开始支持的

从这里回答:

根据,
提供的
字段没有版本号。也就是说,我也有同样的问题。。。