从源代码安装的确切方法是什么?

从源代码安装的确切方法是什么?

我已(逐步)运行以下命令从源代码安装 gdebi:

apt-get build-dep gdebi
apt-get source gdebi
cd gdebi-0.9.5.3
dpkg-buildpackage -uc -us -b

这给了我错误(发布了最后几行,如果需要请我发布全部内容):

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

那么,我错过了什么?

如果这不是正确的方法,那么请给我从源代码安装的正确方法。

答案1

尝试构建以dpkg-buildpackage -uc -us -b获取二进制文件dpkg-buildpackage -uc -us -S作为源包没有使用 sudo。

相关内容