'How to solve "the package is of bad quality" ubuntu software center

I have the following deb-control:

$cat control
Package: Deb-Package
Version: 2016-Jan-24
Architecture: all
Installed-Size: 252000
Homepage: http://www.google.com
Maintainer: My Name <[email protected]>
Description: my deb package

and after create my deb package with the command:

dpkg-deb --build <folder>

and then when I try to install it on the ubuntu software center I always get the following notification: "The package is of bad quality ".

How to avoid this dialog ?



Solution 1:[1]

At least your package name is invalid. Quoting the manual at 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.

Therefore Deb-Package is not allowable, as it contains 2 uppercase characters.

Technically your version string is allowed, but you should keep in mind that it represents Debian revision 24 of version 2016-Jan of your package. You would do better following conventions there too.

Apart from these 2 your control file seems right, but more might be wrong in the package contents itself. In general, Lintian should return no errors, although many small violations are permissible - I have several packages in a private apt repository with errors although they work fine. I do suspect the package name violation is fatal though.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Niels Keurentjes