Mailinglist Archive: opensuse-buildservice (77 mails)

< Previous Next >
Re: [opensuse-buildservice] Trouble with Raspbian: "apt-key not found" during init_buildsystem
On 2019-04-02 21:09:18 +0200, Harald Welte wrote:
The problem occurs during init_buildsystem, i.e. even before the rules/control
files I provide take over.

The last few lines are:

[ 105s] [177/225] installing raspbian-archive-keyring-20120528.2
[ 105s] /var/lib/dpkg/info/raspbian-archive-keyring.postinst: 8:
/var/lib/dpkg/info/raspbian-archive-keyring.postinst: apt-key: not found
[ 105s] dpkg: error processing package raspbian-archive-keyring (--install):
[ 105s] subprocess installed post-installation script returned error exit
status 127
[ 105s] Errors were encountered while processing:
[ 105s] raspbian-archive-keyring
[ 105s] exit ...

The full log is available at

Any idea how to further debug this? What can I as somebody packaging a
to do affect the existance of apt-key during the build_init stage?

AFAIR apt-key is part of the 'apt' package, and I am somewhat puzzled how it
not be present on a system that obviously uses apt.

When the build chroot is set up the deps are ordered (that is, if package A
requires/depends on package B, B is (usually) installed before A). There
seems to be a "bug" in the raspbian-archive-keyring package: it uses
"apt-key" in its postinst script, but lacks a "Depends: apt" in the control
As a workaround, you can add the following line to your prjconf (for instance,
via osc meta prjconf -e network:osmocom:nightly):

Order: apt:raspbian-archive-keyring

which makes sure that apt is installed before raspbian-archive-keyring.

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups