Yan
Yan Just a simple man.

打包deb包碰见的编译错误

打包deb包碰见的编译错误

记录打包deb包碰见的bug以及解决方法

1.dh报错

错误信息

1
2
3
4
5
fakeroot debian/rules clean
dh clean --with python3 --buildsystem=python_distutils
dh: warning: Compatibility levels before 9 are deprecated (level 7 in use)
dh: error: unable to load addon python3: Can't locate Debian/Debhelper/Sequence/python3.pm in @INC (you may need to install the Debian::Debhelper::Sequence::python3 module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/aarch64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/aarch64-linux-gnu/perl-base) at (eval 4) line 1.
BEGIN failed--compilation aborted at (eval 4) line 1.

解决方法

1
$ sudo apt install dh-python

issues

如果有疑惑或错误,请提issues –> Issues If there are doubts or errors, please submit an issue –> Issues