尝试使用 Launchpad 配方打包源文件时出现以下错误。但是,我可以在我的机器中成功构建包(运行 18.04)
dh: error: unable to load addon python3: Can't locate Debian/Debhelper/Sequence/python3.pm
这是完整的buildlog,我的debian/control
文件如下。
Source: up-clock
Section: python
Priority: extra
Build-Depends: debhelper (>= 10),
python3,
python3-distutils-extra
Maintainer: Archisman Panigrahi <[email protected]>
Standards-Version: 4.1.4
X-Python-Version: >= 3.5
Package: up-clock
Architecture: all
Depends: ${misc:Depends},
${python3:Depends},
gir1.2-glib-2.0,
gir1.2-gtk-3.0,
gir1.2-webkit2-4.0
Description: A beautiful Clock, inspired by Ubuntu Touch homescreen, already on your desktop.
Inspired by Ubuntu Touch homescreen, this clock is able to show you the
time in a way you never seen before. The "clouds" changes colors and
sizes automaticaly awhile showing you the time.
如何解决这个问题?我已经添加python3-distutils-extra
到Build-Depends
.
在文件中添加
dh-python
到 Build-Depends 。debian/control
完成此操作后,Launchpad 构建不会引发任何错误。