equivs-build:解析 debian/changelog 时发生致命错误

equivs-build:解析 debian/changelog 时发生致命错误

debian/changelog使用时没有涉及任何文件equivs-build,那么该fatal error occurred while parsing debian/changelog错误会是一个错误吗?

以下是详细信息:

$ cat ttf-ubuntu-font-family 
Package: ttf-ubuntu-font-family
Architecture: all
Version: 91:0.83-2
Multi-Arch: foreign
Priority: optional
Section: universe/oldlibs
Source: fonts-ubuntu (0.83-2)
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian Fonts Task Force <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 40
Depends: fonts-ubuntu
Homepage: https://design.ubuntu.com/font/
Description: sans-serif font set from Ubuntu (transitional package) (equ-dummy)
Task: kubuntu-desktop, kubuntu-full, lubuntu-live-share, core-share, lubuntu-gtk-core, lubuntu-desktop-share, lubuntu-core, lubuntu-live, lubuntu-qt-core, lubuntu-live-qt, lubuntu-live-gtk

$ equivs-build ttf-ubuntu-font-family
dh_testdir
dh_testroot
dh_prep
dh_testdir
dh_testroot
dh_install
dh_installdocs
dh_installchangelogs
dh_installchangelogs: warning:     debian/changelog(l2): found end of file where expected first heading
dh_installchangelogs: error: fatal error occurred while parsing debian/changelog
debian/rules:20: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 255
Error in the build process: exit status 2

$ lsb_release -rd
Description:    Ubuntu 18.04 LTS
Release:        18.04

$ apt-cache policy equivs
equivs:
  Installed: 2.1.0
  Candidate: 2.1.0
  Version table:
 *** 2.1.0 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

答案1

您可以debian/changelog使用dch --create (从devscripts包中)创建并使用包名称、版本和分发来填充创建的更改日志模板。(在更高版本的包中,您可以使用它dch -i来添加新的更改日志条目并更新版本)

此外,由于某种原因,我不得不注释掉我运行的文件中“Source:”行equivs-build,然后它就可以正常工作而不会dh_installchangelogs引发错误。

相关内容