0

我正在尝试从二进制文件和支持文件创建一个 .deb 文件。它可以工作,但是在创建它之前我收到以下警告:

The installation of a package which violates the quality standards isn't allowed. 
This could cause serious problems on your computer. 
Please contact the person or organisation who provided this package
file and include the details beneath.

Lintian check results for /home/javaherd/program-5/debian/program-5_1.4.2_i386.deb:
E: program-v5: control-interpreter-without-depends control/rules #!/usr/bin/make
E: program-v5: wrong-file-owner-uid-or-gid usr/local/include/titles.txt 1006/1007
E: program-v5: wrong-file-owner-uid-or-gid usr/local/include/counties.txt 1006/1007

我能做些什么来纠正这种情况?

4

1 回答 1

0

为 Debian 和 Ubuntu 打包软件相对容易,但正确打包有点困难。结果是有很多错误打包的、非官方的*.deb包在外面飘荡。

以下是解决问题的方法。首先,将归档文件的内容解压到一个新的目录程序dpkg-deb -x program-5_1.4.2_i386.deb program。其次,查看新目录程序,看看里面有什么;因为,如果你找到你需要的东西,它可能会在那里解决你的问题。最后,将lintian命令应用到*.deb包本身, by lintian program-5_1.4.2_i386.deb,这可能会为您提供有关包如何被错误打包的有用信息(当然,您可能必须先安装lintian)。

如此调用的lintian可能只会重复它已经提供给您的信息,但可以以多种不同的方式调用lintian ;所以,既然您知道如何手动调用它,您就可以阅读手册页并进行实验。

如果您执行这些操作,它们将为您提供更多信息,从而引导您找到问题的完整解决方案。祝你好运。

于 2012-03-30T11:39:45.093 回答