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

来源:互联网 发布:视频去黑边软件 编辑:程序博客网 时间:2024/06/16 22:42

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



原创粉丝点击