这个控制文件有什么问题?

Arc*_*ahi 0 packaging

起初,我在使用 dpkg 创建 debain 源包时遇到了与Error相同的错误。

按照其回答后,我面临这个问题

tata@archisman-HP-240-G3-Notebook-PC ~/brightness-controller $ debuild
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package PACKAGE
dpkg-buildpackage: source version 1.2
dpkg-buildpackage: source distribution trusty
dpkg-buildpackage: source changed by Archisman Panigrahi <tata@archisman-HP-240-G3-Notebook-PC>
dpkg-source --before-build brightness-controller
dpkg-buildpackage: host architecture amd64
dpkg-source: warning: unknown information field 'Version' in input data in general section of control info file
dpkg-source: warning: unknown information field 'Architecture' in input data in general section of control info file
dpkg-source: error: source package name 'PACKAGE' is illegal: character 'P' not allowed
dpkg-buildpackage: error: dpkg-source --before-build brightness-controller gave error exit status 255
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc failed
Run Code Online (Sandbox Code Playgroud)

控制文件是

Source: brightness-controller
Section: accessories
Priority: optional
Maintainer: Archisman Panigrahi <apandada1@gmail.com>
Version: 1.2
Architecture: all
Build-Depends: python-wxgtk2.8,
               python,
               xrandr,
Homepage: http://lordamit.github.io/Brightness

Package: brightness-controller
Architecture: any
Depends: python-wxgtk2.8,
         python,
         xrandr,
Description: Brightness Controller is the only GUI application for Linux that allows you to control brightness 
of your primary and secondary display from the same place. It is a software based dimmer.
Released under GPL-3, Brightness Controller's source code is available at
.
https://github.com/lordamit/Brightness
.
If you encounter any problem you can open an issue in the GitHub project. 
.
Kindly review and let your friends know if this application made your display more friendly to your eyes.
Run Code Online (Sandbox Code Playgroud)

mur*_*uru 6

来自 Debian 政策手册的控制文件及其字段一章:

一般段落中的字段(第一个,对于源包)是:

  • 来源(必填)
  • 维护者(必填)
  • 上传者
  • 部分(推荐)
  • 优先级(推荐)
  • Build-Depends 等
  • 标准版(推荐)
  • 主页
  • Vcs-Browser、Vcs-Git 等。

二进制包段落中的字段是:

  • 套餐(必填)
  • 架构(必填)
  • 部分(推荐)
  • 优先级(推荐)
  • 基本的
  • 依赖等
  • 说明(必填)
  • 主页
  • 内置使用
  • 包装类型

显然,既不属于Version也不Architecture属于第一段(源代码包)。Version不属于在debian/control 所有。版本由 确定debian/changelog,只有最终生成的包DEBIAN/control才会包含Version.

看起来 中的某些文件debian可能debian/changelog未正确创建。它PACKAGE用作包名,它应该是brightness-controller. 包名总是小写。