我正在尝试解压文件并尝试创建 deb 包。这是为了我的测试目的。我进行此测试的目的是,我只想提供一个包含要安装的数据和安装后要执行的脚本的文件夹。
https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz
我在构建包时遇到此错误。如能提供任何帮助,我将不胜感激
ubuntu@ip-10-232-39-177:/opt/uat/elasticsearch-1.4.4$ dpkg-buildpackage
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package elasticsearch
dpkg-buildpackage: source version 1.4.4-1
dpkg-buildpackage: source changed by Ubuntu <ubuntu@unknown>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build elasticsearch-1.4.4
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 7.0.50~)
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
安装后debhelper
我得到了这个:
ubuntu@ip-10-232-39-177:/opt/uat/elasticsearch-1.4.4$ dpkg-buildpackage -rfakeroot
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package elasticsearch
dpkg-buildpackage: source version 1.4.4-1
dpkg-buildpackage: source changed by Ubuntu <ubuntu@unknown>
dpkg-buildpackage: host architecture amd64
dpkg-source --before-build elasticsearch-1.4.4
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
dh_clean
dpkg-source -b elasticsearch-1.4.4
dpkg-source: error: can't build with source format '3.0 (quilt)': no upstream tarball found at ../elasticsearch_1.4.4.orig.tar.{bz2,gz,lzma,xz}
dpkg-buildpackage: error: dpkg-source -b elasticsearch-1.4.4 gave error exit status 255