Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge Errors Help Please
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Fri Oct 29, 2004 8:07 am    Post subject: Emerge Errors Help Please Reply with quote

Hi,

whenever I run emerge I get this
Code:

Check /var/db/pkg/kde-base/kdelibs-3.2.0_rc1/PROVIDE and USE.
Possibly Invalid: ['\x00']
Exception: list index out of range


There is no ebuild in /usr/portage/ for this so i cant emerge -C it. I tried going into /var/db/pkg/kde-base/kdelibs-3.2.0_rc1/ and using the ebuild there but then I get this:

Code:

 kde-base/kdelibs
    selected: 3.2.0_rc1
   protected: none
     omitted: 3.1.5-r1 3.2.3-r2 3.3.0

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging kde-base/kdelibs-3.2.0_rc1...
No package files given... Grabbing a set.
portage: CONTENTS line 1 corrupt!
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2747, in ?
    if 1==unmerge(myaction, myfiles):
  File "/usr/bin/emerge", line 2167, in unmerge
    retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action not in ["clean","prune"])
  File "/usr/lib/portage/pym/portage.py", line 2700, in unmerge
    mylink.unmerge(trimworld=mytrimworld,cleanup=1)

I snipped some of that last output..

Mozilla keeps breaking on me and maybe it has somthing to do with this?

Can someone please tell me what to do?

thx...
Back to top
View user's profile Send private message
hecatomb
Guru
Guru


Joined: 02 Sep 2004
Posts: 525

PostPosted: Fri Oct 29, 2004 8:24 am    Post subject: Reply with quote

Don't really know what's going on there.

Code:
$ emerge info | grep USE
...

$ cat /var/db/pkg/kde-base/kdelibs-3.2.0_rc1/PROVIDE
...
Back to top
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Fri Oct 29, 2004 9:29 am    Post subject: Reply with quote

emerge info | grep USE
Code:

Check /var/db/pkg/kde-base/kdelibs-3.2.0_rc1/PROVIDE and USE.
Check /var/db/pkg/kde-base/kdelibs-3.2.0_rc1/PROVIDE and USE.
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd dvdr encode esd f77 foomaticdb gdbm gif gpm gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"


cat /path/to/PROVIDE

produces nothing - it appears to be an empty file...

thing is, im using kde 3.3.0! - i have tons of old kde stuff in there and im using none of it, and it still cuases me problems?

thanks for the help...
Back to top
View user's profile Send private message
hecatomb
Guru
Guru


Joined: 02 Sep 2004
Posts: 525

PostPosted: Fri Oct 29, 2004 1:35 pm    Post subject: Reply with quote

Sorry I'm not familiar enough with portage to know what this message really means.
I searched through the code of /usr/bin/emerge but can't find the point where this occours.

You can debug this script by adding some debugging-print-msgs.

Code:
$ cp /usr/bin/emerge /usr/bin/emerge.bak

$ vi /usr/bin/emerge
...
68: #Freeze the portdbapi for enhanced performance:
69: portage.portdb.freeze()
70: # added debugging msg
71: print "FREEZE"
...
280: tmpsettings = portage.config(clone=portage.settings)
281: portage.spawn("/usr/lib/portage/bin/portageq pkgdir &> /dev/null", tmpsettings, free=1)
282: # added debugging msg
283: print "SPAWN"
...

$ emerge info


Hope we can find out what and where emerge is "doing this thing"!
Back to top
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Fri Oct 29, 2004 2:34 pm    Post subject: Reply with quote

maybe i should reemerge portage? - any devs in here with a view on this?
Back to top
View user's profile Send private message
hecatomb
Guru
Guru


Joined: 02 Sep 2004
Posts: 525

PostPosted: Fri Oct 29, 2004 2:39 pm    Post subject: Reply with quote

What's wrong on debugging it?
Learning by doing! ;-)
Back to top
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Sat Oct 30, 2004 8:41 am    Post subject: Reply with quote

Im not that skilled.....

Anyone have an idea of what to do please? I cant glsa-check -f new anymore either :(

Code:

fixing 200410-30
auxdb exception: [/usr/portage::kde-base/kdegraphics-3.2.2]: u'No key provided. key: kdegraphics-3.2.2'
Traceback (most recent call last):
  File "/usr/bin/glsa-check", line 162, in ?
    mergelist = myglsa.getMergeList()
  File "/usr/lib/gentoolkit/pym/glsa.py", line 565, in getMergeList
    self.packages[pkg]["unaff_atoms"])
  File "/usr/lib/gentoolkit/pym/glsa.py", line 324, in getMinUpgrade
    mylist = portage.db["/"]["porttree"].dbapi.match(u)
  File "/usr/lib/portage/pym/portage.py", line 5359, in match
    return self.xmatch("match-visible",mydep)
  File "/usr/lib/portage/pym/portage.py", line 5346, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep=mydep,mykey=mykey))
[b]<snpped....>[/b]
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4835
Location: Gothenburg, Sweden

PostPosted: Mon Nov 01, 2004 8:44 am    Post subject: Reply with quote

The first problem seems to be related to a broken package database. Open the offending files (in /var/db...) in a text editor and look for null characters, carriage returns or whatever else that shouldn't be there. PROVIDE should probably be empty, USE and CONTENTS should not.

glsa-check :arrow: http://forums.gentoo.org/viewtopic.php?t=241975
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Mon Nov 01, 2004 1:02 pm    Post subject: Reply with quote

OK!

thankyou so much! there was some control char in PROVIDE - how the hell did that get there?

I can run emerge fine, and glsa-check now i have added it to pakacge.keywords with ~x86 but, i have a followon question if i may...

running glsa-check produces a block:

>>kde-base/kdegraphics-3.3.1-r1 (masked by: ~x86 keyword)

No biggie, i can probably locate the right docs to fix it BUT, i dont need kde 3.3.1-r1 - im runing 3.3.0! 8O

How is that happening? - and how might i remove old kde packages that are just taking up space?

many thanks again, im not quite there yet but i feel much safer now things are almost back to normal :)
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4835
Location: Gothenburg, Sweden

PostPosted: Mon Nov 01, 2004 2:38 pm    Post subject: Reply with quote

That glsa-check problem is reported in the glsa sticky as well as in this bug. No solution, though.

In general, you remove a specific version by just specifying the version:
Code:
emerge -Cp package-version

Follow that by a depclean or ecatmur's dep, or try this.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Mon Nov 01, 2004 4:10 pm    Post subject: Reply with quote

Seems i either have to emerge -C every kde/whatever app or juse the dep script.

Am runing dep -P and it seems good so far but is there not some manual or explanation for a non programmer to follow? - i've glaned over the thread (thanks!) and can only really see discussion of the script from a programmers point of view.

If there isnt, what else should I add to that other than dep -P?

thanks again...
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4835
Location: Gothenburg, Sweden

PostPosted: Mon Nov 01, 2004 4:20 pm    Post subject: Reply with quote

There's no manual that I know of (other than dep -h). I would use the spring-clean (-s) option. The usual disclaimer of not removing things blindly applies, of course.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Mon Nov 01, 2004 5:34 pm    Post subject: Reply with quote

Yes, that seems to be working well :)

Also seems i have another corrupt file in /var/db/pkg/kde-base/kdelibs-3.2.0-rc1/CONTENTS

Unfortunately, the entire file looks like gobbledygook to me, i have no idea what to remove? should I just create a blank file for that and erase the old one?

Also, im clearly a little uninformed on keeping my system clean! - could you point me to any doc/thread that would help me run a tighter system?

thanks yet again...
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4835
Location: Gothenburg, Sweden

PostPosted: Mon Nov 01, 2004 6:18 pm    Post subject: Reply with quote

The CONTENTS file contains every file, symlink and directory that were installed when you emerged the package. Without it portage won't know what to remove while uninstalling. You can look in the CONTENTS file of some other package for how the file should look, but that won't help you any if it is completely borked. You don't want to put the current mtime and checksum in it as the files may have been overwritten by a newer version of the package. The best way around this is to delete that directory so as to fool portage into believing that version isn't installed, and then use ecatmur's cruft script to clean out files that does not belong to any installed package.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Nick W
l33t
l33t


Joined: 07 Dec 2003
Posts: 684

PostPosted: Tue Nov 02, 2004 6:54 am    Post subject: Reply with quote

Great, that seems to have worked so far...

Does cruft remove these files or just point them out? - it lists thousands of them! hehe...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum