View previous topic :: View next topic |
Author |
Message |
mudpoet n00b
Joined: 06 Jul 2002 Posts: 6 Location: Dallas, Texas USA
|
Posted: Sat Jul 06, 2002 11:50 pm Post subject: Portage: error running `emerge [insert any command here]` |
|
|
I get errors when running emerge. The error I get is this:
!! invalid db entry: /var/db/virtual/glibc
!! invalid db entry: /var/db/virtual/kernel
This happens running just about any emerge command. Here are 3 examples it does it with:
# emerge rsync
# emerge --pretend gaim
# emerge search everybuddy
The strange thing is that it doesn't keep it from performing the operation. It will still merge my package and run fine. Could it have to do with me installing off of a stage1 CD of a version prior to 1.0??
Thanks in advance _________________ Travis Bell
tjbell at mudpoet dot org
http://www.mudpoet.org
"Go sell crazy someplace else; we're all stocked up here." |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sat Jul 06, 2002 11:56 pm Post subject: |
|
|
Run emerge -s portage. Among the output you see, should be something similar to this:
Code: | * sys-apps/portage
Latest version Available: 2.0.9
Latest version Installed: 2.0.3
Homepage: http://www.gentoo.org
Description:
Portage ports system |
What is your 'Latest version Installed'? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Sat Jul 06, 2002 11:56 pm Post subject: |
|
|
try emerge --clean rsync then emerge --update world --pretend and see what it tells you to update...also what version of portage are you running..its up to 2.0.9 now |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Jul 07, 2002 1:10 am Post subject: |
|
|
"emerge --version" will also tell you what version you have installed, without relying on an up-to-date, accurate, or legal Portage tree to be installed. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Jul 07, 2002 1:14 am Post subject: |
|
|
I thought there was a version option. Interestingly enough, neither 'man emerge' or 'emerge -h' mention it. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
mudpoet n00b
Joined: 06 Jul 2002 Posts: 6 Location: Dallas, Texas USA
|
Posted: Sun Jul 07, 2002 1:16 am Post subject: |
|
|
I'll check and reply as soon as I get home. _________________ Travis Bell
tjbell at mudpoet dot org
http://www.mudpoet.org
"Go sell crazy someplace else; we're all stocked up here." |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sun Jul 07, 2002 1:17 am Post subject: |
|
|
Well, yeah, but a lot of apps have --version options, so documentation or not...
Nevertheless, this is a doc bug, and was filed as #4633. _________________ I don't believe in witty sigs. |
|
Back to top |
|
|
mudpoet n00b
Joined: 06 Jul 2002 Posts: 6 Location: Dallas, Texas USA
|
Posted: Sun Jul 07, 2002 4:57 am Post subject: Portage version |
|
|
desk1 root # emerge --version
!!! Invalid db entry: /var/db/pkg/virtual/kernel
!!! Invalid db entry: /var/db/pkg/virtual/glibc
!!! Invalid db entry: /var/db/pkg/virtual/kernel
!!! Invalid db entry: /var/db/pkg/virtual/glibc
Portage 2.0.8
desk1 root #
Again, all help is greatly appreciated... _________________ Travis Bell
tjbell at mudpoet dot org
http://www.mudpoet.org
"Go sell crazy someplace else; we're all stocked up here." |
|
Back to top |
|
|
Aruspex n00b
Joined: 28 Jun 2002 Posts: 51 Location: Brick, NJ
|
Posted: Sun Jul 07, 2002 5:42 am Post subject: |
|
|
I think we may need a few more symptoms to get a hold of whats happening.
1. What were the last few changes you made before this started?
2. Did anything drastic happen before this started? ie. powerfailure, ctrl-c durring emerge, etc..
3. Anything else you can think of
The more information, the better. _________________ "If you want to make an apple pie from scratch, you must first create the universe" -Carl Sagan |
|
Back to top |
|
|
mudpoet n00b
Joined: 06 Jul 2002 Posts: 6 Location: Dallas, Texas USA
|
Posted: Sun Jul 07, 2002 5:48 am Post subject: |
|
|
Aruspex wrote: | 1. What were the last few changes you made before this started? |
It's been happening just about the whole time during the install. There may have been one or two toward the very beginning of install that it didn't happen on, but I'm not sure.
Aruspex wrote: | 2. Did anything drastic happen before this started? ie. powerfailure, ctrl-c durring emerge, etc.. |
Nope, not really. I've had no powerfailures, nor any stoppage of any merges.
Aruspex wrote: | 3. Anything else you can think of |
I really can't think of anything else. It's just really weird because the other machine that I installed gentoo on (from the same CD) didn't do this. BUT.....when I did the install on the other machine, that was pre-moving-of-rsync-servers. And when I did the install on that machine, what was on the CD is also what was most recent on the servers. _________________ Travis Bell
tjbell at mudpoet dot org
http://www.mudpoet.org
"Go sell crazy someplace else; we're all stocked up here." |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Jul 07, 2002 5:50 am Post subject: |
|
|
What image is on the CD? What CPU does the other machine have?
What CPU does the machine with the problems have? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Aruspex n00b
Joined: 28 Jun 2002 Posts: 51 Location: Brick, NJ
|
Posted: Sun Jul 07, 2002 5:57 am Post subject: |
|
|
This may be a psychotic sugestion... maybe try rmdir'ing those two directories? I would really like some other comments on that
Code: | !!! Invalid db entry: /var/db/pkg/virtual/kernel
!!! Invalid db entry: /var/db/pkg/virtual/glibc |
I say get rid of em (or move em) and see what happens
I don't have them. Maybe it will work... hmmm. _________________ "If you want to make an apple pie from scratch, you must first create the universe" -Carl Sagan |
|
Back to top |
|
|
Aruspex n00b
Joined: 28 Jun 2002 Posts: 51 Location: Brick, NJ
|
Posted: Sun Jul 07, 2002 5:59 am Post subject: |
|
|
Guess what.... I just created a /var/db/pkg/virtual/kernel directory and this is what i got when I ran 'emerge --version'
Code: | root@Zorak:</var/db/pkg>: mkdir virtual
root@Zorak:</var/db/pkg>: cd virtual
root@Zorak:</var/db/pkg/virtual>: mkdir kernel
root@Zorak:</var/db/pkg/virtual>: emerge --version
!!! Invalid db entry: /var/db/pkg/virtual/kernel
!!! Invalid db entry: /var/db/pkg/virtual/kernel
Portage 2.0.9
root@Zorak:</var/db/pkg/virtual>: |
and when I rmdir'ed:
Code: | root@Zorak:</var/db/pkg>: rm -rf virtual
root@Zorak:</var/db/pkg>: emerge --version
Portage 2.0.9 |
_________________ "If you want to make an apple pie from scratch, you must first create the universe" -Carl Sagan |
|
Back to top |
|
|
mudpoet n00b
Joined: 06 Jul 2002 Posts: 6 Location: Dallas, Texas USA
|
Posted: Sun Jul 07, 2002 6:05 am Post subject: |
|
|
kanuslupus wrote: | What image is on the CD? What CPU does the other machine have?
What CPU does the machine with the problems have? |
I'm guessing it's 1.0 since the files on the CD are
isolinux
stage1-ix86-1.0.tbz2
stage2-i686-1.0.tbz2
stage3-i686-1.0.tbz2
I built the system from stage1 and didn't use 2 or 3. The bad behavior is on a P3-500, the system that behaved when I installed a month or whatever ago is a P2-300. Both have 128MB RAM. _________________ Travis Bell
tjbell at mudpoet dot org
http://www.mudpoet.org
"Go sell crazy someplace else; we're all stocked up here." |
|
Back to top |
|
|
mudpoet n00b
Joined: 06 Jul 2002 Posts: 6 Location: Dallas, Texas USA
|
Posted: Sun Jul 07, 2002 6:23 am Post subject: |
|
|
Aruspex wrote: | Guess what.... I just created a /var/db/pkg/virtual/kernel directory and this is what i got when I ran 'emerge --version'
Code: | root@Zorak:</var/db/pkg>: mkdir virtual
root@Zorak:</var/db/pkg>: cd virtual
root@Zorak:</var/db/pkg/virtual>: mkdir kernel
root@Zorak:</var/db/pkg/virtual>: emerge --version
!!! Invalid db entry: /var/db/pkg/virtual/kernel
!!! Invalid db entry: /var/db/pkg/virtual/kernel
Portage 2.0.9
root@Zorak:</var/db/pkg/virtual>: |
and when I rmdir'ed:
Code: | root@Zorak:</var/db/pkg>: rm -rf virtual
root@Zorak:</var/db/pkg>: emerge --version
Portage 2.0.9 |
|
The kernel entry is:
desk1 root # cat /var/db/pkg/vitural/kernel/VIRTUAL
sys-kernel/linux-headers-2.14.17-r5
and glibc is similar. I'm a little leary of deleting it since I don't know why it's there. I don't know it's safe to delete. (Though you'd think so if it's causing errors ;-p) _________________ Travis Bell
tjbell at mudpoet dot org
http://www.mudpoet.org
"Go sell crazy someplace else; we're all stocked up here." |
|
Back to top |
|
|
Aruspex n00b
Joined: 28 Jun 2002 Posts: 51 Location: Brick, NJ
|
Posted: Sun Jul 07, 2002 6:41 am Post subject: |
|
|
I figured you'd say that
Well "the first step in avoiding a trap is knowing of it's existence." Or rather, the first step in solving an error is being able to reproduce it.
1st I'd check if your really have them installed
Then I would see if 'linux-headers-2.14.17-r5' exists elsewhere in /var/db/pkg. 'find /var/db/pkg -name linux...'
Personally, I would move the directories somewhere safe and see what happens. But I would prefer if a portage developer or guru would throw in his/her 2 cents _________________ "If you want to make an apple pie from scratch, you must first create the universe" -Carl Sagan |
|
Back to top |
|
|
|