什么是包装期间的changelog.Debian.gz文件?

包装我遇到以下错误

dh_builddeb dpkg-deb: building package `remotedevicecontroller' in `../remotedevicecontroller_1.0-1_i386.deb'. dpkg-source -b remotedevicecontroller-1.0 dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: error: unwanted binary file: debian/remotedevicecontroller/usr/share/doc/remotedevicecontroller/changelog.Debian.gz dpkg-source: error: detected 1 unwanted binary file (add it in debian/source/include-binaries to allow its inclusion). dpkg-buildpackage: error: dpkg-source -b remotedevicecontroller-1.0 gave error exit status 29 

为什么文件是由debian-helper创建的,为什么它又要求将它包含在其他目录中呢?

似乎构建不干净,或者您包含了更多默认情况下未选择的选项。 changelog.Debian.gz是一个gzip压缩列表,其中包含Debian维护者对源包所做的更改。 您可以删除/阻止生成文件,也可以添加debian/source/include-binaries的路径:

 $ cat debian/source/include-binaries [...] /usr/share/doc/remotedevicecontroller/changelog.Debian.gz [...]