この制御ファイルの何が問題なのでしょうか?

この制御ファイルの何が問題なのでしょうか?

最初は同じエラーが発生していましたdpkg で debain ソース パッケージを作成するときにエラーが発生しました

その答えに従った後、私はこの問題に直面しています

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

制御ファイルは

Source: brightness-controller
Section: accessories
Priority: optional
Maintainer: Archisman Panigrahi <[email protected]>
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.

答え1

Debianポリシーマニュアルの章より制御ファイルとそのフィールド:

一般的な段落 (ソース パッケージの最初の段落) のフィールドは次のとおりです。

  • 出典(必須)
  • メンテナー(必須)
  • アップローダー
  • セクション(推奨)
  • 優先度(推奨)
  • Build-Depends 等
  • 標準バージョン(推奨)
  • ホームページ
  • Vcs-Browser、Vcs-Git など。

バイナリ パッケージの段落内のフィールドは次のとおりです。

  • パッケージ(必須)
  • アーキテクチャ(必須)
  • セクション(推奨)
  • 優先度(推奨)
  • 不可欠
  • ディペンズら
  • 説明(必須)
  • ホームページ
  • 組み込み使用
  • パッケージ型式

明らかに、どちらもVersion最初Architectureの段落(ソースパッケージのもの)には属しませんVersiondebian/control まったくバージョンは から決定されdebian/changelog、生成された最終パッケージにのみDEBIAN/controlが含まれますVersion

内の一部のファイルdebian(おそらくdebian/changelog) が適切に作成されていないようです。 がPACKAGEパッケージ名として使用されていますが、 であるべきですbrightness-controller。パッケージ名は常に小文字です。

関連情報