All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alejandro del Castillo <alejandro.delcastillo@ni.com>
To: Denys Dmytriyenko <denis@denix.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: opkg_install_pkg: Package <name> md5sum mismatch. Either the opkg or the package index are corrupt.
Date: Mon, 04 May 2015 15:05:02 -0500	[thread overview]
Message-ID: <5547D0EE.8000309@ni.com> (raw)
In-Reply-To: <20150504191916.GC5885@denix.org>

[-- Attachment #1: Type: text/plain, Size: 2204 bytes --]



On 05/04/2015 02:19 PM, Denys Dmytriyenko wrote:
> On Mon, May 04, 2015 at 02:50:17PM -0400, Denys Dmytriyenko wrote:
>> On Fri, May 01, 2015 at 05:13:05PM -0500, Alejandro del Castillo wrote:
>>>
>>> On 05/01/2015 11:06 AM, Denys Dmytriyenko wrote:
>>>> Hi,
>>>>
>>>> Has anyone ever seen this message during <image>.do_rootfs task?
>>>>
>>>> Collected errors:
>>>>  * opkg_install_pkg: Package <package> md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'.
>>>>  * opkg_install_cmd: Cannot install package <package>.
>>>>
>>>> We started seeing it on random packages inside the <image> few weeks ago on 
>>>> different machines. At the time we had switched to bitbake 1.26. But even 
>>>> trying different bitbake versions still occasionally caused the same error, so 
>>>> the culprit is still unknwon. Using oe-core/daisy for now.
>>>>
>>>> Any comments or suggestions to where start looking would be appreciated! 
>>>> Thanks.
>>> The error is saying that there is a mismatch between the registered package 
>>> mds5sum and the actual md5sum of the package. On your log.do_rootfs log file 
>>> you should find the opkg-cl command being called, which has an opkg.conf 
>>> file as parameter. Inside the conf file, you will see the paths to the local 
>>> repos being used to build your image.  Can you confirm that the registered 
>>> md5sum for one of the problematic packages on the Package file on the repo 
>>> doesn't match the actual package md5sum?
>> Yes, md5sum of the package doesn't match the one recorded in the Packages file 
>> of the local feed.
>>
>> BTW, this seems to only happen to arch-less packages from the "all" feed, 
>> mainly packagegroups...
> And then I realized that the failing packagegroup shouldn't really be 
> arch-less! Apparently, I misplaced PACKAGE_ARCH = "${MACHINE_ARCH}" before 
> inheriting packagegroup class. Oops!
>
For Dizzy and Fido, I think the order changed (you need to place PACKAGE_ARCH
before inherit packagegroup). The good news is that if you upgrade, there is a
check that breaks the build if the bad ordering is detected (
30aaada4b79fc1acad5fdaba98071b63c52b9e05).

[-- Attachment #2: Type: text/html, Size: 3506 bytes --]

  reply	other threads:[~2015-05-04 20:05 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-01 16:06 opkg_install_pkg: Package <name> md5sum mismatch. Either the opkg or the package index are corrupt Denys Dmytriyenko
2015-05-01 22:13 ` Alejandro del Castillo
2015-05-04 18:50   ` Denys Dmytriyenko
2015-05-04 19:19     ` Denys Dmytriyenko
2015-05-04 20:05       ` Alejandro del Castillo [this message]
2015-05-02 21:55 ` [OE-core] " Andrea Adami
2015-05-02 21:55   ` Andrea Adami
2015-05-06 19:12   ` [OE-core] " Steffen Sledz
2015-05-06 19:12     ` Steffen Sledz
2015-05-06 23:31     ` [OE-core] " Denys Dmytriyenko
2015-05-06 23:31       ` Denys Dmytriyenko
2015-05-08 19:28       ` [OE-core] " Denys Dmytriyenko
2015-05-08 19:28         ` Denys Dmytriyenko
2015-05-08 21:09         ` [OE-core] " Denys Dmytriyenko
2015-05-08 21:09           ` Denys Dmytriyenko
2015-05-09  8:36           ` [OE-core] " Richard Purdie
2015-05-09  8:36             ` Richard Purdie
2015-05-11  6:26             ` [OE-core] " Martin Jansa
2015-05-11  6:26               ` Martin Jansa
2015-05-11 20:14               ` [OE-core] " Denys Dmytriyenko
2015-05-11 20:14                 ` Denys Dmytriyenko
2015-05-11  6:22         ` [OE-core] " Martin Jansa
2015-05-11  6:22           ` [oe] " Martin Jansa
2015-05-11  7:22           ` [OE-core] " Richard Purdie
2015-05-11  7:22             ` [oe] " Richard Purdie

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=5547D0EE.8000309@ni.com \
    --to=alejandro.delcastillo@ni.com \
    --cc=denis@denix.org \
    --cc=openembedded-core@lists.openembedded.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.