dh_make: command not found, dpkg-depcheck: command not found 解决方法

dh_make: command not found 

dpkg-depcheck: command not found 


解决方法


1. dh_make:

使用apt-get install dh_make安装时应该会报如下错误:
E: Couldn't find package dh_make

原因有两个,

第一:dh_make依赖于debhelper包,首先从源安装debhelper;

第二:dh_make其实是dh-make(注意,中间是减号 ‘-’)。


2.dpkg-depcheck:

如果使用apt-get install dpkg-depcheck也会报E: Couldn't find package dpkg-depcheck的错误,我们只需要安装devscripts就可以了,

sudo apt-get install devscripts。

至于为什么要安装devscripts,我查了一下:

A.6.7. dpkg-depcheck

dpkg-depcheck (from the devscripts package, Section A.6.1, “devscripts”) runs a command under strace to determine all the packages that were used by the said command.

For Debian packages, this is useful when you have to compose a Build-Depends line for your new package: running the build process through dpkg-depcheck will provide you with a good first approximation of the build-dependencies. For example:

dpkg-depcheck -b debian/rules build

dpkg-depcheck can also be used to check for run-time dependencies, especially if your package uses exec(2) to run other programs.

For more information please see dpkg-depcheck(1)


参考:http://www.debian.org/doc/manual ... .html#dpkg-depcheck



博主所有文章已转自私人博客 Joe 的个人博客,谢谢关注!

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值