Debian软件包changelog中的标题行格式错误。

通过运行debuild命令,我发现了以下警告:
# debuild 
debuild: warning:     debian/changelog(l1): badly formatted heading line
LINE: my_package (0.3-1) unstable; urgency=low

我的错误在哪里?

这是我的 debian/changelog

my_package (0.3-1) trusty; urgency=low

    * First release:

-- My Name  <mymail@gmail.com> Tue Oct 11 21:22:15 CEST 2016
1个回答

看起来这是由于包名本身中的下划线(my_package)造成的。Debian包名只能由小写字母(a-z)、数字(0-9)、加号(+)、减号(-)和句点(.)组成。
在blog.packagecloud.io上有一篇非常详细的博文讨论了包名和版本的问题。

http://blog.packagecloud.io/eng/2015/07/14/using-dh-make-to-prepare-debian-packages/#understanding-the-package-name-and-version

另外一篇关于使用debuild构建Debian软件包的帖子。

http://blog.packagecloud.io/debian/debuild/packaging/2015/06/08/buildling-deb-packages-with-debuild/


参考一些随机的博客文章固然不错,但是查看官方的Debian源更好。 - Stephen M. Webb