首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从源安装的确切方法是什么?

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

Ask Ubuntu用户
提问于 2014-04-30 07:06:00
回答 1查看 608关注 0票数 1

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

代码语言:javascript
复制
apt-get build-dep gdebi
apt-get source gdebi
cd gdebi-0.9.5.3
dpkg-buildpackage -uc -us -b

这会给我带来错误(贴出最后几行,如果需要的话,让我贴整条):

代码语言:javascript
复制
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

那么,我错过了什么?

如果它不是正确的方法,那么给我适当的方法来安装从源。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2014-04-30 11:59:37

尝试使用dpkg-buildpackage -uc -us -b构建二进制文件,为源代码包获取dpkg-buildpackage -uc -us -S,而不使用sudo。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/458132

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档