ubuntu - 无法创建 deb 包

标签 ubuntu deb

我正在学习创建一个 deb 包,我发现这个:http://packaging.ubuntu.com/html/packaging-new-software.html
并遵循它

1 sudo apt-get install build-essential
2 wget -O hello-2.7.tar.gz "http://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz"
3 tar xf hello-2.7.tar.gz cd hello-2.7
4 ./configure make make install
5 开始一个包bzr dh-make hello 2.7 hello-2.7.tar.gz
6 cd hello/debian rm *ex *EX
7 vi debian/changelog

root@vhost100:~/hello/debian# cat changelog
hello (2.7-0ubuntu1) precise; urgency=low

  • Initial release (Closes: #nnnn)

    -- root Tue, 19 Jul 2016 18:28:11 +0800



8 bzr add debian/source/format bzr commit -m "Initial commit of Debian packaging."
9 bzr builddeb -- -us -uc
我有错误

are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). dpkg-checkbuilddeps: Unmet build dependencies: autotools-dev dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting. dpkg-buildpackage: warning: (Use -d flag to override.) debuild: fatal error at line 1350: dpkg-buildpackage -rfakeroot -D -us -uc failed bzr: ERROR: The build failed.



怎么了?

最佳答案

根据评论,看起来您的这部分错误是相关的:

Unmet build dependencies: autotools-dev dpkg-buildpackage



我曾建议这两个都需要使用 apt-get 安装。 ,您发现实际上只需要第一个。

很高兴它有效!

关于ubuntu - 无法创建 deb 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38448909/

相关文章:

swift - 完美 swift : Can't compile PerfectCrypto

python - "python setup.py install"命令未在 install_requires 列表中安装库

ubuntu - 如何使用构建依赖项创建 deb 包

ssl - 使用 SSL 证书签署 RPM 和 DEB 包

python - 创建一个 Cron 作业 - Linux/Python

linux - 如何在 sh 文件中并行运行 shell 脚本命令?

linux - 将 CD 文件上的 sha256sum 输出到文本文件

Bash - 添加包含变量的新行

python - 单击图标将运行或安装我的 python Tkinter 桌面应用程序,该应用程序也可用于任何 PC

linux - 无法在我的 Debian 包中以正确的方式定义 libsdl2 依赖项