LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2003, 11:49 AM   #16
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30

I am not sure...
just for fun let's rebuild you rpm db w/

#rpm --rebuilddb

then grep it out...

#rpm -qa | grep apt
 
Old 12-18-2003, 11:57 AM   #17
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
in exact order....



# rpm -e apt*
error: package apt-0.5.5cnc5-fr0.rh73.2.i386.rpm is not installed
error: package apt-0.5.5cnc5-fr0.rh73.2.src.rpm is not installed
error: package apt-devel-0.5.5cnc5-fr0.rh73.2.i386.rpm is not installed
# rpm -qa | grep apt
apt-0.5.5cnc5-fr0.rh73.2
apt-devel-0.5.5cnc5-fr0.rh73.2
#
#
# rpm --rebuilddb
# rpm -qa | grep apt
apt-devel-0.5.5cnc5-fr0.rh73.2
apt-0.5.5cnc5-fr0.rh73.2
#
 
Old 12-18-2003, 11:58 AM   #18
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
You should have tried to rebuld then erase...try erase again
 
Old 12-18-2003, 12:00 PM   #19
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
# rpm -e apt*
error: package apt-0.5.5cnc5-fr0.rh73.2.i386.rpm is not installed
error: package apt-0.5.5cnc5-fr0.rh73.2.src.rpm is not installed
error: package apt-devel-0.5.5cnc5-fr0.rh73.2.i386.rpm is not installed


still same thing.....
 
Old 12-18-2003, 12:07 PM   #20
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Jumpin jesus...This is a stumper...

Let me think

I told you it might be rpm...It appears your rpm is corrupt. Apt relies heavily on rpm. Even trying to update...it essentially calls rpm to go out and d/l the cache files from the remote server...

you may need to reinstall RPM...I need to think so more though. What are you thinking?
 
Old 12-18-2003, 12:14 PM   #21
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
thinking..


while i do, what is a good test to see if my rpm stuff is working right now...or is there going to be a comperable test that we can run command line that could point out if it might be working or not. or will it be something where rpm commandline upgrades will appear to work fine but when it comes to interacting with apt, it fails.

also, rpm -qa | grep rpm tells me at the moment this:

rpm-devel-4.0.4-7x.18
rpm-build-4.0.4-7x.18
rpm-python-4.0.4-7x.18
rpm-4.0.4-7x.18



??
 
Old 12-18-2003, 12:20 PM   #22
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
well you could try erasing something else...hmm

try:

#rpm -e <some_pkg>

you may have to tinker a bit to find a pkg you can easily get again and that has no deps
 
Old 12-18-2003, 02:12 PM   #23
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
ok here is what happened. i was too afraid to remove something that was already there so i went out and got samba-common-2.2.3a-6.i386.rpm and installed it. check the rpm -qa, saw it was there and then tried to remove it. see below for all that happened.

# ls
samba-2.2.3a-6.i386.rpm samba-common-2.2.3a-6.i386.rpm
# rpm -Uvh samba-common-2.2.3a-6.i386.rpm
Preparing... ########################################### [100%]
1:samba-common ########################################### [100%]
#
# rpm -qa | grep samba
samba-common-2.2.3a-6
# rpm -e samba*
error: package samba-2.2.3a-6.i386.rpm is not installed
error: package samba-common-2.2.3a-6.i386.rpm is not installed


one of the erros made sense..b/c i had only installed the common file. however both showed up as unistalled. maybe this is telling us something is wrong with rpm. does this test help you determine what might be up?
 
Old 12-18-2003, 02:31 PM   #24
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
well...when you issue (-e) I am pretty sure rpm queries the db to look for installed pkgs and it is not finding them. RPM itself cannot be completely hosed as it would not return regular queries and it would not install. There is an option to tell just the db that a package.

My initial guess is that the rpmdb pkg is to blame. Do you think you can find an rpm of it on the net and then:

#rpm -Uvh rpmdb*
 
Old 12-18-2003, 04:47 PM   #25
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
ok i went to downlaod something to update my rpmdb. i found rpmdb-redhat-7.3-0.20020613.i386.rpm and did a reqular install on it: rpm -ivh rpmdb-redhat-7.3-0.20020613.i386.rpm. seem to download fine. even did a rpm query check. after that i tried to rebuild the rpmdb and then try to rpm erase the samba program....all this did fine till the end. it's still not working:

# rpm -Uvh samba-common-2.2.3a-6.i386.rpm
Preparing... ########################################### [100%]
1:samba-common ########################################### [100%]
# rpm -e samba*
error: package samba-2.2.3a-6.i386.rpm is not installed
error: package samba-common-2.2.3a-6.i386.rpm is not installed
# rpm -ivh samba-common-2.2.3a-6.i386.rpm
Preparing... ########################################### [100%]
package samba-common-2.2.3a-6 is already installed
# rpm -rebuilddb
# rpm -qa | grep samba
samba-common-2.2.3a-6
# rpm -e samba-common-2.2.3a-6.i386.rpm
error: package samba-common-2.2.3a-6.i386.rpm is not installed



still i'm at a loose for why this doesn't work. did i download the wrong rpm...what? it still is being confusing.....

Last edited by wedgeworth; 12-18-2003 at 04:57 PM.
 
Old 12-19-2003, 07:39 AM   #26
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Ok...well don't add the rpm info to the pkg name during uninstall...just:

rpm -e samba
 
Old 12-19-2003, 08:51 AM   #27
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
doesn't work:

# rpm -e samba
error: package samba is not installed
 
Old 12-19-2003, 11:06 AM   #28
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Man, we can't catch a break

This one has me stumped.

I would go to rpm.org or RH.com and join the mailing list and ask there. Sorry I couldn't get it fixed for you. Anyone else?
 
Old 12-19-2003, 11:26 AM   #29
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
Try this:

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb


from here:

http://www.rpm.org/hintskinks/repairdb/

This has helped me out a few times with a corrupted RPM db.


Last edited by lupin_the_3rd; 12-19-2003 at 11:28 AM.
 
Old 12-19-2003, 11:54 AM   #30
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
lupin_the_3rd, thanks for the tip. however, forgive me "rm -f /var/lib/rpm/__db*" confuses me.


# cd /var/lib/rpm
# ls
Basenames Dirnames Group Name Providename Requirename Sha1header Triggername
Conflictname Filemd5s Installtid Packages Provideversion Requireversion Sigmd5


what exactly does that command do. it doesn't seem like there is any file like that in that directory. sorry if it's just some command or referencing something i'm just not familiar with.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get problems curly08 Ubuntu 4 05-06-2005 04:51 AM
apt-get problems PDD Linux - Software 1 11-11-2004 06:44 AM
apt-get problems PDD Linux - Software 3 10-26-2004 08:02 AM
I am having APT problems UncleAnt Conectiva 1 10-15-2004 01:04 AM
apt-get problems ibrewale Debian 4 06-30-2004 02:30 PM


All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration