LinuxQuestions.org
Review your favorite Linux distribution.
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-19-2003, 08:24 PM   #46
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30

I hate to suggest this as an alternetative but I would reinstall at this point. It seems harsh and if theis is a mission critical machine we can trouble shoot some more but something hosed your db and we aren;t getting it back the way it needs to be. Back up important data (on monday) and reinstall. Better yet burn the iso's for Fedora and install that, a lot of bugs, namely rpm db corruption are fixed in FC1.
 
Old 12-22-2003, 10:21 AM   #47
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
ok there is just something i just i don’t' know about? something that is required that i don't have for me to start implementing apt-get updates. turns out.....after a check of all my servers, it turns out that none of them have the __db files. and still don’t even after I run a "rpm -vv --rebuilddb" these are my old servers that have been working fine and we're built and maintained by the last administrator (someone who knew more about administration that i do presently). so the old servers are behave in the same way this new server that I/we have been working on and trying to set up. anyway, so since not only does this new server that i did the installation on acts like this, but since the old one's do as well...something tells me it's just something missing: a configuration or some package is needed.....since the older servers which were setup by someone more capable acts the exact same way.

consequently, i am now trying to do the research to find out why this is so...for all the servers. if you can think of something, a configuration you assumed i had, or some version of a db package etc....i would appreciate the note. worse comes to worse, i can perhaps go with another method of keeping my servers updated. (up2date registration or something else that is comparable and efficient…unless you have better suggestions). Again, thanks guys I do appreciate.
 
Old 12-22-2003, 12:53 PM   #48
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
ok here is what i've found. according to this:
http://rpmfind.net//linux/RPM/ASP/i3....asp.i386.html

i'm suppose to have files (scroll to bottom of above link)
/var/lib/rpm/__db.001
/var/lib/rpm/__db.002
/var/lib/rpm/__db.003
/var/lib/rpm/__db.004
/var/lib/rpm/__db.005
/var/lib/rpm/__db.006
/var/lib/rpm/__db.007
/var/lib/rpm/__db.008
/var/lib/rpm/__db.009

for some reason these file aren't there. does this tell me something about the version of rpm i'm running. i'm running:

# rpm -qa | grep rpm
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
rpmdb-redhat-7.3-0.20020613

which means the description from the link is correct. i should have those files. and the rebuild isn't putting them there. so is my rpm not installed correclty. if i run the rpm query, see what i'm running and then see the list of files from that rpm should include the db files...what does that tell me?

however it may think it is there..i say this b/c when i "rpm -Va" i get:

.....UG. c /var/lib/rpm/Basenames
.....UG. c /var/lib/rpm/Conflictname
.....UG. c /var/lib/rpm/Dirnames
.....UG. c /var/lib/rpm/Filemd5s
.....UG. c /var/lib/rpm/Group
.....UG. c /var/lib/rpm/Installtid
.....UG. c /var/lib/rpm/Name
.....UG. c /var/lib/rpm/Packages
.....UG. c /var/lib/rpm/Providename
.....UG. c /var/lib/rpm/Provideversion
.....UG. c /var/lib/rpm/Requirename
.....UG. c /var/lib/rpm/Requireversion
.....UG. c /var/lib/rpm/Sha1header
.....UG. c /var/lib/rpm/Sigmd5
.....UG. c /var/lib/rpm/Triggername
.....UG. c /var/lib/rpm/__db.001
.....UG. c /var/lib/rpm/__db.002


in the listing. i'm not exactly sure about how to use or read the verify option. but it seems to say that the db files are having some problems with ownership. however a ls -la doesn't even show they exist.

am i on the right track, or am i looking in the wrong place. could this have nothing to do why my apt-get update, install, etc isn't working....?

Last edited by wedgeworth; 12-22-2003 at 02:42 PM.
 
Old 12-22-2003, 05:07 PM   #49
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
No I think you are on the right track. I just really don't know what to do next. It is difficult w/o the actual machine in front of me.
 
Old 12-23-2003, 12:13 PM   #50
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
ok so here is what i've decided to do. i'm gonna update my rpm by just one version.(present version: rpm-4.0.4-7x.18) i'm going to upgrade to rpm-4.0.5-1.6x (hoping that this will fix my db problems that seem to be hindering my apt-get from working). so i download the rpm and i get this:


# rpm -Uvh rpm-4.0.5-1.6x.i386.rpm
error: failed dependencies:
popt = 1.6.5 is needed by rpm-4.0.5-1.6x
libbz2.so.0 is needed by rpm-4.0.5-1.6x
rpm = 4.0.4 is needed by rpm-devel-4.0.4-7x.18
rpm = 4.0.4 is needed by rpm-build-4.0.4-7x.18
rpm = 4.0.4 is needed by rpm-python-4.0.4-7x.18


which is fine. i then download popt rpm and download try to upgrade it and i get this:

# rpm -Uvh popt-1.6.5-1.6x.i386.rpm
error: failed dependencies:
popt = 1.6.4 is needed by rpm-devel-4.0.4-7x.18
popt = 1.6.4 is needed by rpm-4.0.4-7x.18
popt = 1.6.4 is needed by rpm-python-4.0.4-7x.18


which is still fine b/c these these 3 are needed by the new version of rpm. however when i try to upgrade the rpm-python i get this:


# rpm -Uvh rpm-python-4.0.5-1.6x.i386.rpm
error: failed dependencies:
rpm = 4.0.5 is needed by rpm-python-4.0.5-1.6x
popt = 1.6.5 is needed by rpm-python-4.0.5-1.6x
libbz2.so.0 is needed by rpm-python-4.0.5-1.6x


so it seems that rpm-4.0.5 is required before you can upgrade to rpm-python-4.0.5. however the first dependency i mentioned (see above) says you can't upgrade to rpm-4.0.5 b/c it's older version is being used by the older version of rpm-python. i seem to be chasing my tail here. and of course i don't have apt that will handle the dependencies, that's what i'm trying to fix to able to do. i was hoping that by upgrading to a newer version of rpm, that i could fix the db files and be able to start using apt-get. what do i do now?

Last edited by wedgeworth; 12-23-2003 at 12:17 PM.
 
Old 12-23-2003, 12:28 PM   #51
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
just do a rpm -Uvh and then each package name at once:

put them all in one dir

then, rpm -Uvh *.rpm

or just tab complete each package name... this will install them all at once and should solve the dependency issues.
 
Old 12-23-2003, 03:06 PM   #52
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
any clue how to fix this dependency.

# ls
bzip2-1.0.2-2.i386.rpm rpm-4.0.5-1.6x.i386.rpm rpm-devel-4.0.5-1.6x.i386.rpm
popt-1.6.5-1.6x.i386.rpm rpm-build-4.0.5-1.6x.i386.rpm rpm-python-4.0.5-1.6x.i386.rpm
# rpm -Uvh *.rpm
error: failed dependencies:
libbz2.so.0 is needed by rpm-4.0.5-1.6x
libbz2.so.0 is needed by rpm-build-4.0.5-1.6x
libbz2.so.0 is needed by rpm-devel-4.0.5-1.6x
libbz2.so.0 is needed by rpm-python-4.0.5-1.6x


i thought libbz2.so.0 was bzip2-1.0.2-2.i386.rpm....
 
Old 12-23-2003, 04:03 PM   #53
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
It should be... you could try upgrading it first... did you search rpmfind to check?
 
Old 12-29-2003, 05:24 PM   #54
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
ok i don't know why it didn't like that but now i may have "fixed" it only to have a new problem. any help with it would be appreciated it. i thought i'd finally gotten it working when things started to download. then i got lots of conflicts. anyone have an idea on how to get rid of these. (oh the joys that awaited me after my christmas vacation)


# ls -la
total 2566
drwxr-xr-x 2 root root 1024 Dec 29 16:12 .
drwx------ 12 lacey lacey 1024 Dec 29 16:12 ..
-rw-rw-r-- 1 lacey lacey 107939 Dec 29 16:06 bzip2-0.9.5d-2.i386.rpm
-rw-rw-r-- 1 lacey lacey 45390 Dec 29 16:13 bzip2-1.0.2-2.i386.rpm
-rw-rw-r-- 1 lacey lacey 58676 Dec 23 10:25 popt-1.6.5-1.6x.i386.rpm
-rw-rw-r-- 1 lacey lacey 1256494 Dec 23 09:56 rpm-4.0.5-1.6x.i386.rpm
-rw-rw-r-- 1 lacey lacey 78109 Dec 23 10:20 rpm-build-4.0.5-1.6x.i386.rpm
-rw-rw-r-- 1 lacey lacey 1025129 Dec 23 10:20 rpm-devel-4.0.5-1.6x.i386.rpm
-rw-rw-r-- 1 lacey lacey 32268 Dec 23 10:20 rpm-python-4.0.5-1.6x.i386.rpm
# rpm -Uvh *.rpm
Preparing... ########################################### [100%]
package bzip2-1.0.2-2 (which is newer than bzip2-0.9.5d-2) is already installed
package bzip2-1.0.2-2 is already installed
file /usr/include/bzlib.h from install of bzip2-0.9.5d-2 conflicts with file from package bzip2-devel-1.0.2-2
file /usr/lib/libbz2.a from install of bzip2-0.9.5d-2 conflicts with file from package bzip2-devel-1.0.2-2
file /usr/lib/libbz2.so from install of bzip2-0.9.5d-2 conflicts with file from package bzip2-devel-1.0.2-2
file /usr/bin/bzip2 conflicts between attempted installs of bzip2-1.0.2-2 and bzip2-0.9.5d-2
file /usr/bin/bzip2recover conflicts between attempted installs of bzip2-1.0.2-2 and bzip2-0.9.5d-2
file /usr/bin/bzless conflicts between attempted installs of bzip2-1.0.2-2 and bzip2-0.9.5d-2
 
Old 12-30-2003, 05:49 PM   #55
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
ok i finally got the rpm updated:

# rpm -Uvh *.rpm
Preparing... ########################################### [100%]
1opt ########################################### [ 20%]
2:rpm ########################################### [ 40%]
3:rpm-build ########################################### [ 60%]
4:rpm-devel ########################################### [ 80%]
5:rpm-python ########################################### [100%]
#

# rpm -qa | grep rpm
rpm-4.0.5-1.7x
rpm-build-4.0.5-1.7x
rpm-python-4.0.5-1.7x
rpmdb-redhat-7.3-0.20020613
rpm-devel-4.0.5-1.7x
#

anyway so i check to see if the __db.001 and __db.002 under var/lib/rpm. there wasn't. however rpm --rebuilddb did seem to do something (took it along time).

# rpm --rebuilddb
#

anyway next i try to run apt-get update, which is one of the main things we've been trying to get to work this whole time. well i'm not sure it's working...but it's definitely doing something differently. if you know what all this is or know what it means, please help:

# apt-get update
Get:1 http://ayo.freshrpms.net redhat/7.3/i386 release [1178B]
Get:2 ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386 release
Err ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386 release
Could not connect data socket, connection timed out
Fetched 1178B in 2m1s (10B/s)
Get:1 http://ayo.freshrpms.net redhat/7.3/i386/os pkglist [1229kB]
Get:2 ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/os pkglist
Get:3 http://ayo.freshrpms.net redhat/7.3/i386/os release [144B]
Get:4 http://ayo.freshrpms.net redhat/7.3/i386/updates pkglist [561kB]
Get:5 http://ayo.freshrpms.net redhat/7.3/i386/updates release [157B]
Get:6 http://ayo.freshrpms.net redhat/7.3/i386/freshrpms pkglist [129kB]
Get:7 http://ayo.freshrpms.net redhat/7.3/i386/freshrpms release [161B]
Err ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/os pkglist
Could not connect data socket, connection timed out
Get:8 ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/os release
Err ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/os release
Could not connect data socket, connection timed out
Get:9 ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/updates pkglist [560kB]
Err ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/updates pkglist
Could not connect data socket, connection timed out
Get:10 ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/updates release [96B]
Err ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/updates release
Could not connect data socket, connection timed out
Get:11 ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/extra pkglist [2137B]
Err ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/extra pkglist
Could not connect data socket, connection timed out
Get:12 ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/extra release [97B]
Err ftp://apt-rpm.tuxfamily.org redhat/7.3/en/i386/extra release
Could not connect data socket, connection timed out
Fetched 1919kB in 12m2s (2655B/s)
Failed to fetch ftp://apt-rpm.tuxfamily.org/apt/redh...6/base/release Could not connect data socket, connection timed out
Failed to fetch ftp://apt-rpm.tuxfamily.org/apt/redh...ase/pkglist.os Could not connect data socket, connection timed out
Failed to fetch ftp://apt-rpm.tuxfamily.org/apt/redh...ase/release.os Could not connect data socket, connection timed out
Failed to fetch ftp://apt-rpm.tuxfamily.org/apt/redh...kglist.updates Could not connect data socket, connection timed out
Failed to fetch ftp://apt-rpm.tuxfamily.org/apt/redh...elease.updates Could not connect data socket, connection timed out
Failed to fetch ftp://apt-rpm.tuxfamily.org/apt/redh.../pkglist.extra Could not connect data socket, connection timed out
Failed to fetch ftp://apt-rpm.tuxfamily.org/apt/redh.../release.extra Could not connect data socket, connection timed out
Reading Package Lists... Done
Building Dependency Tree... Done
W: Release files for some repositories could not be retrieved or authenticated. Such repositories are being ignored.
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
#



also it is good to not that being a beginner at this i only have two entries in my sources.list file they are:

rpm http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms
rpm ftp://apt-rpm.tuxfamily.org/apt redhat/7.3/en/i386 os updates extra
 
Old 12-30-2003, 05:57 PM   #56
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
looks like it can't connect to the tux-family site... comment it out and then try.
 
Old 12-30-2003, 06:20 PM   #57
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
The other poster has a good test. There could be problems with tux-family, although I have used them. your sources.list entry for tux-family should look like:

rpm ftp://apt-rpm.tuxfamily.org/apt redhat/7.3/en/i386 os updates extra
 
Old 12-31-2003, 09:49 AM   #58
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
actually i had the entry correct the problem is i really don't have anything else. i've only got to entries.


rpm http://ayo.freshrpms.net redhat/7.3/i386 os updates freshrpms
rpm ftp://apt-rpm.tuxfamily.org/apt redhat/7.3/en/i386 os updates extra


maybe if i had a few more entries to try to update from it would work better. in truth however...i'm new at using apt-get and am not able to really read what it's doing yet when i do an apt-get update. if you have a few more entries i could use for my sources.list file (that are tried and true), i could try the update again and we'll see what it does. thanks guys.
 
Old 12-31-2003, 10:02 AM   #59
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
Try updating just one application and see if that works... are you using synaptic as well? You could easily do this with the gui by choosing "upgradeable" from the drop-down menu and choosing one of the applications listed.
 
Old 12-31-2003, 10:18 AM   #60
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
sorry.....commandline interface....how try it out using that?
 
  


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 12:28 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