Tente criar com dpkg-buildpackage -uc -us -b
para obter binários, dpkg-buildpackage -uc -us -S
para um pacote de origem sem usando o sudo.
Eu corri (gradualmente) seguindo o comando para instalar o gdebi da fonte:
apt-get build-dep gdebi
apt-get source gdebi
cd gdebi-0.9.5.3
dpkg-buildpackage -uc -us -b
Que me dá erro (postou últimas linhas, peça-me para postar todo, se necessário):
FAIL
test_against_deb_with_conflict_against_apt (tests.test_gdebi_cli.GDebiCliTestCase) ... This package is uninstallable
Conflicts with the installed package 'apt'
ok
test_against_impossible_dep (tests.test_gdebi_cli.GDebiCliTestCase) ... This package is uninstallable
Dependency is not satisfiable: pkg-that-does-not-exists
ok
test_against_that_works_with_no_additonal_deps (tests.test_gdebi_cli.GDebiCliTestCase) ... ok
test_pyflakes3_clean (tests.test_pyflakes.TestPyflakesClean) ... ok
test_pyflakes_clean (tests.test_pyflakes.TestPyflakesClean) ... ok
======================================================================
FAIL: test_lintian (tests.test_gdebi_gtk_lintian.GDebiGtkTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/mock.py", line 1125, in patched
return func(*args, **keywargs)
File "/media/pandya/Ext4/14.04/Manual/Package-Mgt/gdebi/gdebi-0.9.5.3/tests/test_gdebi_gtk_lintian.py", line 61, in test_lintian
self.assertMultiLineEqual(lintian_output.strip(), EXPECTED_LINTIAN_OUTPUT)
AssertionError: 'warning: the authors of lintian do not re[658 chars]us 1' != 'E: error-package: changelog-file-missing-[575 chars]us 1'
- warning: the authors of lintian do not recommend running it with root privileges!
E: error-package: changelog-file-missing-in-native-package
E: error-package: file-in-etc-not-marked-as-conffile etc/foo
E: error-package: control-file-has-bad-owner postinst egon/egon != root/root
E: error-package: no-copyright-file
E: error-package: package-has-no-description
E: error-package: no-maintainer-field
W: error-package: no-section-field
W: error-package: no-priority-field
E: error-package: wrong-file-owner-uid-or-gid etc/ 1000/1000
E: error-package: wrong-file-owner-uid-or-gid etc/foo 1000/1000
W: error-package: maintainer-script-ignores-errors postinst
Lintian finished with exit status 1
----------------------------------------------------------------------
Ran 7 tests in 12.827s
FAILED (failures=1)
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/media/pandya/Ext4/14.04/Manual/Package-Mgt/gdebi/gdebi-0.9.5.3'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Então, o que eu estou perdendo?
Se não for um método adequado, dê-me o método adequado para instalar a partir do código-fonte.
Tente criar com dpkg-buildpackage -uc -us -b
para obter binários, dpkg-buildpackage -uc -us -S
para um pacote de origem sem usando o sudo.