
起初我遇到了同樣的錯誤使用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 政策手冊,章節控製文件及其字段:
常規段落中的欄位(第一個,用於原始碼包)是:
- 來源(必填)
- 維護者(強制)
- 上傳者
- 部分(推薦)
- 優先(推薦)
- 建構依賴等
- 標準版本(建議)
- 首頁
- Vcs-Browser、Vcs-Git 等。
二進位包段落中的欄位為:
- 套餐(必填)
- 架構(必修)
- 部分(推薦)
- 優先(推薦)
- 基本的
- 取決於等人
- 說明(必填)
- 首頁
- 內建使用
- 包裝類型
顯然,既不Version
屬於Architecture
第一段(源碼包一段)。Version
不屬於debian/control
根本不。版本由 決定debian/changelog
,並且只有最終產生的套件DEBIAN/control
才會包含Version
。
看起來 中的某些文件debian
可能debian/changelog
未正確建立。它用作PACKAGE
包名稱,它應該是brightness-controller
.包名稱始終是小寫的。