在 Ubuntu 14.04 上,我想ardour
从源代码重建包,并且我在 PPA 中找到了合适的版本,并且我已经激活了它的源(deb-src
在正确文件中某处的行/etc/apt/sources.list*
);我可以很好地从 PPA 安装包(但有一个需要重新编译的错误)。
此时,apt-cache
报告 PPA 中的版本:
$ apt-cache showpkg ardour
Package: ardour
Versions:
1:4.7.270+r15291.42~ubuntu14.04.1 (/var/lib/apt/lists/ppa.launchpad.net_dobey_audiotools_ubuntu_dists_trusty_main_binary-i386_Packages)
...
1:4.7.270+r15280.42~ubuntu14.04.1 (/var/lib/dpkg/status)
...
1:2.8.16+git20131003-1 (/var/lib/apt/lists/dk.archive.ubuntu.com_ubuntu_dists_trusty_universe_binary-i386_Packages)
...
Provides:
1:4.7.270+r15291.42~ubuntu14.04.1 -
1:4.7.270+r15280.42~ubuntu14.04.1 -
1:2.8.16+git20131003-1 -
Reverse Provides:
ardour-i686 1:2.8.16+git20131003-1
此外,如果我想下载源包,我得到了正确的:
$ apt-get source ardour
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 10.5 MB of source archives.
Get:1 http://ppa.launchpad.net/dobey/audiotools/ubuntu/ trusty/main ardour 1:4.7.270+r15291.42~ubuntu14.04.1 (tar) [10.5 MB]
...
到目前为止,一切都很好。但是,当我尝试通过 安装构建依赖项时build-dep
,我得到了这个:
$ sudo apt-get build-dep ardour
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have unmet dependencies:
libjack-dev : Depends: libjack0 (= 1:0.121.3+20120418git75e3e20b-2.1ubuntu1) but it is not going to be installed
E: Build-dependencies for ardour could not be satisfied.
这是错误的 - 这是ardour
使用libjack2
- 如果我继续sudo apt-get install libjack0
,该操作将同时删除libjack2
and ardour
。
我已经看到man apt-get
我可以为 指定包的版本build-dep
,但不知何故它不起作用:
$ sudo apt-get build-dep ardour=4.7.270+r15291.42~ubuntu14.04.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Can not find version '4.7.270+r15291.42~ubuntu14.04.1' of package 'ardour'
E: Unable to find a source package for ardour
$ sudo apt-get build-dep ardour=4.7.270
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Can not find version '4.7.270' of package 'ardour'
E: Unable to find a source package for ardour
那么 - 我如何指定apt-get
我想要build-dep
这个特定的 PPA 版本?
您忘记了
1:
版本号。它不是为了美化输出,而是版本的一部分 - 纪元数。为什么有些包的版本字符串前面有多余的数字?好的,就我如何发布问题而言,我找到了答案 - 首先,从源文件中,有:
啊哈,所以我需要看看
debian/changelog
在这种情况下哪个头:所以,基本上,
1:
前缀也需要包括在内,我在上面省略了:但是,仍然存在依赖问题(编辑:他们的解决方案在我的评论中无法安装 libjack-dev - 询问 Ubuntu -
libjack-jackd2-dev
改为使用) - 但至少现在很清楚这不是由于错误的版本参考。 ..