我有以下 deb-control:
$cat control
Package: Deb-Package
Version: 2016-Jan-24
Architecture: all
Installed-Size: 252000
Homepage: http://www.google.com
Maintainer: My Name <myemail@gmail.com>
Description: my deb package
然后在使用命令创建我的 deb 包之后:
dpkg-deb --build <folder>
然后当我尝试在 ubuntu 软件中心安装它时,我总是收到以下通知:“软件包质量差”。
如何避免这个对话框?
最佳答案
至少你的包名是无效的。在 https://www.debian.org/doc/debian-policy/ch-controlfields.html 处引用手册:
Package names (both source and binary, see Package, Section 5.6.7) must consist only of lower case letters (a-z), digits (0-9), plus (+) and minus (-) signs, and periods (.). They must be at least two characters long and must start with an alphanumeric character.
因此 Deb-Package
是不允许的,因为它包含 2 个大写字符。
从技术上讲,您的版本字符串是允许的,但您应该记住,它代表您的软件包 2016-Jan
版本的 Debian 修订版 24
。你会做得更好following conventions there too .
除了这两个你的控制文件似乎是正确的,但包内容本身可能有更多错误。一般来说,Lintian应该不会返回任何错误,尽管允许许多小的违规行为 - 我在私有(private) apt 存储库中有几个包有错误,尽管它们工作正常。不过,我确实怀疑包名称违规是致命的。
关于linux - ubuntu软件中心 "the package is of bad quality"怎么解决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34982354/