Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old August 7th, 2002, 07:00 PM
Eric Anderson Eric Anderson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 11 Eric Anderson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RPM error: cannot open Depends index using db1 - Invalid argument (22)

Howdy,

I recently upgraded from linux kernel 2.2.17 to 2.2.19 on a redhat 6.2 machine. The upgrade went fine, but after I rebooted with the new kernel (which went fine) my RPM appears to be broken, whenever I try to install/update something with rpm I (sometimes) get the following error:

cannot open Depends index using db1 - Invalid argument (22)

And then (sometimes) when it tries to install the package it reports:

Preparing... Segmentation fault

I'm using rpm 4.0.2

I say sometimes because some packages will install. I've done the rpm -K --nogpg check on the md5 checksum for the packages that return errors but RPM says that they're "OK".

Anybody have any idea what might be going on or recommend a course of action?

thanks,

Eric Anderson
Information Systems Developer
University of Oregon - Charles H. Lundquist College of Business
eric@lcbmail.uoregon.edu

Reply With Quote
  #2  
Old August 7th, 2002, 07:17 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,632 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 12 m 33 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
Did you set up your box so that you can boot between the two kernels? That's what redhat (and a lot of other wise linux folks) recommend. . .

What I'm getting at- if you boot to your old kernel and get the same error, then these problems may not be due to your kernel upgrade.

Why did you upgrade your kernel? You know the old saying, "if it ain't broken, don't fix it. . ."

Reply With Quote
  #3  
Old August 8th, 2002, 11:13 AM
Eric Anderson Eric Anderson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 11 Eric Anderson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yup, I built a new kernel and then added two entries in lilo.conf. One for my old 2.2.17 kernel and another for the new 2.2.19. When I rebooted into the new kernel the problem cropped up. So I rebooted back into my old kernel and the problem was still there.

I guess I'm simply interested in what the hell the error message means:

error: cannot open Depends index using db1 - Invalid argument (22)

when I run a simple command like:

rpm -Uvh some-package-version.rpm

thanks for the reply,
e

Reply With Quote
  #4  
Old August 8th, 2002, 11:46 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
donīt know for sure, but seems like your rpm database is broken. maybe you did an update when the harddrive was full - or maybe itīs just a bug in the rpm program.

you can rebuild the database with:
rpm --rebuiddb

but i canīt tell you if it will drop broken entries or actually rebuild them then..
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > RPM error: cannot open Depends index using db1 - Invalid argument (22)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway