From: Mark Hatle <mark.hatle@windriver.com>
To: Alexandre Freire da Silva Osorio
<alexandre.osorio@eldorado.org.br>,
"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: %pre scriptlet failed in Guestfish
Date: Mon, 23 Nov 2015 08:28:21 -0600 [thread overview]
Message-ID: <56532285.409@windriver.com> (raw)
In-Reply-To: <eb78389061c241f79b2c9e2807bc8be9@serv030.corp.eldorado.org.br>
On 11/23/15 6:39 AM, Alexandre Freire da Silva Osorio wrote:
> Hello,
>
> Running an image built with Yocto 1.8 in Guestfish I get the following error when trying to install a RPM package:
I don't know what Guestfish is. But in these cases, the best way to handle it
is to us 'rpm -q --scriptlets <package>'
And then run the commands manually, in the same environment as RPM would run in,
to verify failure modes.
> sh "cd /home/root; rpm -ivh --nodeps package.rpm"
> libguestfs: trace: sh "cd /home/root; rpm -ivh --nodeps package.rpm"
> guestfsd: error: error: install: %pre scriptlet failed (2), skipping package.x86_64
> libguestfs: trace: sh = NULL (error)
> libguestfs: error: sh: error: install: %pre scriptlet failed (2), skipping package.x86_64
>
> This error doesn't occur ehqne running the same image in QEMU. Please could anyone give me a help?
The error above -appears- to indicate it tried to the 'sh', but there was no
'sh' in your environment.
--Mark
> Thanks in advance.
>
> Regards,
> Alexandre
>
next prev parent reply other threads:[~2015-11-23 14:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 12:39 %pre scriptlet failed in Guestfish Alexandre Freire da Silva Osorio
2015-11-23 14:28 ` Mark Hatle [this message]
2015-11-27 11:56 ` Alexandre Freire da Silva Osorio
2015-11-27 14:53 ` Mark Hatle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56532285.409@windriver.com \
--to=mark.hatle@windriver.com \
--cc=alexandre.osorio@eldorado.org.br \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.