使用 fpm 创建的 Deb 包但在解包时出现错误

使用 fpm 创建的 Deb 包但在解包时出现错误

我创建了一个 deb 包https://github.com/manojgudi/sandhi使用 fpm。包已成功创建,但在另一个系统上解包时出现以下错误:

dpkg: warning: parsing file '/var/lib/dpkg/tmp.ci/control' near line 8 package 'sandhi':
`Depends' field, reference to `git-core':
implicit exact match on version number, suggest using `=' instead
dpkg: error processing sandhi-1.0_amd64.deb (--install):
parsing file '/var/lib/dpkg/tmp.ci/control' near line 8 package 'sandhi':
`Depends' field, reference to `git-core': version contains ` '
Errors were encountered while processing:
sandhi-1.0_amd64.deb

我是新手。请建议我该怎么做。

答案1

您应该遵循以下步骤,可能会对您有用。

1).deb 文件仅安装在根路径中,因此根路径命令:sudo su

2)然后在哪个文件夹中找到你的.deb文件

3)使用ls命令显示特定文件夹的文件。

4)然后找到你的.deb包文件。

5)deb包命令dpkg -i ./your_file_name如下Enter

6) 可能对你有用。我在我的 ubuntu(LInux-14.04v) 中安装了 virtualbox.deb 文件。

相关内容