我正在学习创建一个 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/