linux - ubuntu软件中心 "the package is of bad quality"怎么解决

标签 linux ubuntu deb

我有以下 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/

相关文章:

linux - 在/dev 上挂载 sda3 是什么意思?

即使权限设置正确,Symfony 2.6 现在也无法清除清除缓存

linux - launchpad.net : Multiple dependencies in the same large project. ..?

c# - X509Certificate2 在 Linux 上解析失败但在 Windows 上有效

linux - 在 Linux 中查找并替换多个复杂行

c++ - 错误 : expected unqualified-id before ‘public’

python - 为什么python请求默认不使用系统ssl证书?

linux - MongoDB:Windows 上不支持 unix 套接字

git - 如何在 git-buildpackage 中启用子模块克隆

linux - rpm 规范文件的安装后脚本中的 yum/rpm install 命令