Opened 7 years ago

Closed 7 years ago

#300 closed defect (fixed)

Non-blocking error when running yum update/yum install

Reported by: ggamba Owned by:
Priority: Feedback Pending Milestone:
Component: rpm Version:
Severity: low Keywords:
Cc: gabriele.gamba@…

Description

On a vanilla installed ArcaOS 5.0.1, after running "yum update" for the first time, I now get the following error message any time I run yum:

[C:\]yum update
arcanoae-rel         | 1.9 kB  00:00
arcanoae-rel/primary |  13 kB  00:00
netlabs-rel          | 2.9 kB  00:00
Impostazione processo di aggiornamento
errore: rpmdbNextIterator: salto h#     240 region trailer: BAD, tag 252444672 t
ype 252510208 offset -252575744 count 252641280
Nessun pacchetto marcato per l'aggiornamento

Packages are updated/installed as expected. Any hint about this? ("salto" = "jump")

Change History (7)

comment:1 by ggamba, 7 years ago

Cc: gabriele.gamba@… added

comment:2 by Silvan Scherrer, 7 years ago

Priority: majorFeedback Pending

please do:
"SET LANG=en_US"
goto to c:\var or any other directory beside a root directory
do "yum update"
post the result here

many thanks

comment:3 by ggamba, 7 years ago

Thank you Silvan, here it is:

[C:\var]SET LANG=en_US

[C:\var]yum update
arcanoae-rel         | 1.9 kB  00:00
arcanoae-rel/primary |  13 kB  00:00
netlabs-rel          | 2.9 kB  00:00
Setting up Update Process
error: rpmdbNextIterator: skipping h#     240 region trailer: BAD, tag 252444672
 type 252510208 offset -252575744 count 252641280
No Packages marked for Update

comment:4 by ggamba, 7 years ago

BTW, I saw no problems on a different machine after installing ArcaOS 5.0.2.

comment:5 by Silvan Scherrer, 7 years ago

I would try to clean up the metadata first. If this doesn't help I would rebuild the db with:

rpm --rebuilddb

first I would save the complete directory /@unixroot/var/lib/rpm to some /@unixroot/var/lib/rpm.back

the rebuild creates a new directory /@unixroot/var/lib/rpm.rebuild which you need to rename to /@unixroot/var/lib/rpm

I hope one or the other solves your issue.

comment:6 by ggamba, 7 years ago

Hi Silvan,

"yum clean all" was not enough. I then moved away /@unixroot/var/lib/rpm (copying a backup was not enough) and run "rpm --rebuilddb". Result was ok, thanks!

[C:\DESKTOP]rpm --rebuilddb
[C:\DESKTOP]yum update
warning: Generating 18 missing index(es), please wait...
Setting up Update Process
No Packages marked for Update

comment:7 by Silvan Scherrer, 7 years ago

Resolution: fixed
Status: newclosed

I'm glad it worked. So I close this ticket.

Note: See TracTickets for help on using tickets.