RPM

[zypper] package removal failure

Bug #667407 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
New
Undecided
Unassigned

Bug Description

tracker

Tags: poky zypper
Revision history for this message
In , qing.he@intel.com (qing-he) wrote :

with --verbose parameter, it shows that

---
...
Check failed:
History:
 - Command exited with status 129.
 - Executing 'lsof' failed (129).
---

but lsof is not installed in the image
Is the missing of lsof causes this bug?

Revision history for this message
In , qing.he@intel.com (qing-he) wrote :

the rpm command gets called by zypper is something as follow:

   rpm --root / --dbpath /var/lib/rpm -e --allmatches --nodeps -- task-poky-sdk-1.0-r5.armv5te

and rpm reports that "error: package task-poky-sdk-1.0-r5.armv5te" is not installed

while using simply the package name works

   rpm -e task-poky-sdk

While "rpm -qa" shows full name, including version, revision and arch.

Should zypper invokes rpm using simply the package name? or should "rpm -e" accepts full package names?

Cc Mark Hatle

Revision history for this message
In , Richard-purdie (richard-purdie) wrote :

If installing lsof fixes the problem, it sounds like we need to add lsof to the RDEPENDS of zypper.

Revision history for this message
In , Mark-hatle (mark-hatle) wrote :

When removing a package it should be valid to list all of the components or simply a subset.. i.e.

rpm -e task-poky-sdk
rpm -e task-poky-sdk-1.0-r5
rpm -e task-poky-sdk-1.0-r5.armv5te

I was able to boot into a target and run similar commands to verify this.

With the commands below added:

--root / --dbpath /var/lib/rpm -e --allmatches --nodeps

it still worked correctly on the target as well.

So I'm not sure how to explain the behavior from Zypper.. If you can figure out a command line reproducer for this we can resolve it. If not, then we may need to start running things through a debugger.

(If possible, add "-vv" to the command line from Zypper to RPM.. This will add extended debug info that might help... comparing the output of the -vv from Zypper and from you running the command on the command line yourself might point out the issue)

Revision history for this message
In , qing.he@intel.com (qing-he) wrote :

(In reply to comment #4)
> When removing a package it should be valid to list all of the components or
> simply a subset.. i.e.
> rpm -e task-poky-sdk
> rpm -e task-poky-sdk-1.0-r5

these two passed in my image, manual execution

> rpm -e task-poky-sdk-1.0-r5.armv5te

this one failed with "error: package xxx is not installed", manual execution

> I was able to boot into a target and run similar commands to verify this.
> With the commands below added:
> --root / --dbpath /var/lib/rpm -e --allmatches --nodeps
> it still worked correctly on the target as well.

Yeah, I think they don't add anything different

Has this anything to do with armv5te and armv5tejl differences (see bug 489)

Revision history for this message
In , qing.he@intel.com (qing-he) wrote :

(In reply to comment #3)
> If installing lsof fixes the problem, it sounds like we need to add lsof to the
> RDEPENDS of zypper.

a deeper look shows that lsof is used by --verbose functionality of zypper, not zypper itself. It can later be added as an RRECOMMENDS or something

Revision history for this message
In , qing.he@intel.com (qing-he) wrote :

(In reply to comment #5)
> (In reply to comment #4)
> > When removing a package it should be valid to list all of the components or
> > simply a subset.. i.e.
> > rpm -e task-poky-sdk
> > rpm -e task-poky-sdk-1.0-r5
>
> these two passed in my image, manual execution
>
>
> > rpm -e task-poky-sdk-1.0-r5.armv5te
>
> this one failed with "error: package xxx is not installed", manual execution
>

talked with Jiajun, now we can confirm that, the arch is misrepresented in zypper

$ rpm -qa | grep task-poky-sdk
task-poky-sdk-1.0-r5.qemuarm

but zypper recognized them all as armv5te

Revision history for this message
In , qing.he@intel.com (qing-he) wrote :

see also bug 498

The issues seem related but distinct

Revision history for this message
Jeff Johnson (n3npq) wrote :

tracker

tags: added: poky zypper
Revision history for this message
In , Jeff Johnson (n3npq) wrote :
Changed in poky:
importance: Unknown → Medium
Revision history for this message
In , Ke-yu (ke-yu) wrote :

wait for zypper and rpm usability enhancement complete

Revision history for this message
In , qing.he@intel.com (qing-he) wrote :

move to M4 due to the image instabilities before end of M3

Revision history for this message
In , qing.he@intel.com (qing-he) wrote :
Changed in poky:
status: Unknown → Fix Released
Revision history for this message
In , Yi-zhao (yi-zhao) wrote :

Verify the bug with 20110318 gold build, it is fixed.

The commit number is 82af8b9fb6d6d1439943fd15b8a75c0e663e4a45.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.