web-dev-qa-db-fra.com

dpkg-buildpackage: dpkg-source: aucune archive amont n'a été trouvée

J'essaie de décompresser les fichiers et d'essayer de créer un paquet deb. Ceci est pour mon but de test. Mon intention pour ces tests est de fournir un dossier contenant les données à installer et un script à exécuter après l’installation.

https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz

Je reçois cette erreur lors de la construction du paquet. Toute aide serait appréciée

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.)

Après avoir installé debhelper je reçois ceci:

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
2
prem

J'ai référé ce blog et fait le tour.

solution trouvée de ce forum

Cette commande a résolu mon problème.

dpkg-buildpackage -b -rfakeroot -us -uc

11
prem