Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge rsync -> broken portage
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
zorloc
Guest





PostPosted: Thu May 02, 2002 8:33 pm    Post subject: emerge rsync -> broken portage Reply with quote

I run a cron job running "emerge rsync" to get the newest packages every night. And then a "emerge --pretend update" and emerge --pretend --world update" to see what needs updating. After my last emerge rsync (4am Pacific May 2nd) portage is ~broken. I can run "emerge rsync" and "emerge system" but "emerge update" fails:

hal etc # emerge --pretend update

These are the packages that I would merge, in order.

Calculating system dependencies !!! Name error in m: category or package part missing.
Traceback (most recent call last):
File "/usr/bin/emerge", line 790, in ?
mydepgraph.syscreate(mylines)
File "/usr/bin/emerge", line 267, in syscreate
self.create(self.match(myline,mykey="update (likely old /var/db/pkg entry)"))
File "/usr/bin/emerge", line 270, in match
myeb=self.db[portage.root]["porttree"].dep_bestmatch(mydep)
File "/usr/lib/python2.0/site-packages/portage.py", line 1590, in dep_bestmatch
if not self.hasnode(mykey):
File "/usr/lib/python2.0/site-packages/portage.py", line 1360, in hasnode
self.populate()
File "/usr/lib/python2.0/site-packages/portage.py", line 1850, in populate
self.zap(y)
File "/usr/lib/python2.0/site-packages/portage.py", line 1291, in zap
mykey=cps[0]+"/"+cps[1]
TypeError: unsubscriptable object

I have not updated my gentoo installation on 2 machines to 1.0+ yet.

HELP?
Back to top
jlewis
Guest





PostPosted: Thu May 02, 2002 11:48 pm    Post subject: emerge problem Reply with quote

I'm seeing the exact same error. I tried following a suggestion offered in another post on this forum -- untarring and using the portage-rescue package (as described in /usr/portage/sys-apps/portage/files/README.RESCUE), but to no avail.
Back to top
AnimalMachine
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2002
Posts: 106
Location: Milwaukee, WI USA

PostPosted: Fri May 03, 2002 6:56 pm    Post subject: Reply with quote

I'm getting a similar problem, but my output looks like this:

root@punchbowl portage # emerge app-arch/rpm2targz/ --pretend

These are the packages that I would merge, in order.

Calculating dependencies !!! Name error in m: category or package part missing.
Traceback (most recent call last):
File "/usr/sbin/emerge", line 817, in ?
mykey=mydepgraph.db[portage.root]["porttree"].dep_bestmatch(mypkg)
File "/usr/lib/python2.0/site-packages/portage.py", line 1626, in dep_bestmatch
if not self.hasnode(mypkgdep):
File "/usr/lib/python2.0/site-packages/portage.py", line 1360, in hasnode
self.populate()
File "/usr/lib/python2.0/site-packages/portage.py", line 1850, in populate
self.zap(y)
File "/usr/lib/python2.0/site-packages/portage.py", line 1291, in zap
mykey=cps[0]+"/"+cps[1]
TypeError: unsubscriptable object


I've also tried rescuing portage using 1.9.5, but the error hasn't changed so I guess that's not the problem. Anyone out there with any suggestions?
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Fri May 03, 2002 7:21 pm    Post subject: Reply with quote

three people having the issue?
I'd file a bug report..... I haven't upgraded my portage to the new one. I only do system updates infrequently.
Back to top
View user's profile Send private message
steveD
Guest





PostPosted: Fri May 03, 2002 7:52 pm    Post subject: Reply with quote

I "emerge rsync" almost daily. So far, no problem.
I guess the problem may come from the portage and python version.
You may need to update the "python" package and then the "portage" package. Use the -b option whenever "emerge" to build a bianry .tbz2 package. For the 2 important system packages "python" and "portage", you may need to keep the working version somewhere in case upgrade has problems (cannot run emerge rsync). When upgrade has problem, just copy the old version of "python" and "portage" to / and tar -jxpf to restore it.
Back to top
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Fri May 03, 2002 9:01 pm    Post subject: Reply with quote

What version of portage are you guys running?
Code:
# emerge -V
Portage 1.9.6_pre2
# date
Fri May  3 16:00:39 CDT 2002


My version works fine for me.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
TheMole
Guest





PostPosted: Fri May 03, 2002 9:10 pm    Post subject: Hmmmmmmmz Reply with quote

bash-2.05a# emerge -V
Calculating dependencies !!! Name error in m: category or package part missing.
Traceback (most recent call last):
File "/usr/sbin/emerge", line 817, in ?
mykey=mydepgraph.db[portage.root]["porttree"].dep_bestmatch(mypkg)
File "/usr/lib/python2.0/site-packages/portage.py", line 1546, in dep_bestmatch
mypkgdep=self.dep_pkgcat(mypkgdep)
File "/usr/lib/python2.0/site-packages/portage.py", line 1529, in dep_pkgcat
if self.hasnode(cat+"/"+mypkgdep_packagename):
File "/usr/lib/python2.0/site-packages/portage.py", line 1360, in hasnode
self.populate()
File "/usr/lib/python2.0/site-packages/portage.py", line 1850, in populate
self.zap(y)
File "/usr/lib/python2.0/site-packages/portage.py", line 1291, in zap
mykey=cps[0]+"/"+cps[1]
TypeError: unsubscriptable object


Even that, I can not answer... now lemme see, where do I fill out this bug report thingy...
Back to top
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Fri May 03, 2002 10:05 pm    Post subject: Reply with quote

You can try repairing portage.
Code:
/usr/portage/sys-apps/portage/files
cat README.RESCUE
tar xjpUvf portage-rescue-1.8.19.tbz2 -C /


See if that works, if that doesn't then I would submit a bug report. I've heard of problems when people either nuke portage in the middle of it doing something, or they reboot/crash their computer (even worse!). Basically some critical file(s) was corrupted, this should restore them.

Tell me how it goes.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
zorloc
Guest





PostPosted: Fri May 03, 2002 10:55 pm    Post subject: Bug report submitted Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=2335
Back to top
AnimalMachine
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2002
Posts: 106
Location: Milwaukee, WI USA

PostPosted: Fri May 03, 2002 11:51 pm    Post subject: Reply with quote

I've gone back to Portage 1.8.19, and then I ran into another problem with it complaining about missing python-fchksum, so I manually untar'd version 1.6.1 of that and installed it.

Now when I try to emerge something, I get:

root@punchbowl portage # emerge app-arch/rpm2targz/ --pretend
Calculating dependencies \Traceback (most recent call last):
File "/usr/sbin/emerge", line 1309, in ?
mydepgraph.create(mytype+" "+portage.root+" "+mykey,None,"--onlydeps" not in myopts)
File "/usr/sbin/emerge", line 400, in create
mydb=open(mydbkey,"r")
IOError: [Errno 2] No such file or directory: '/var/cache/edb/dep/dep-rpm2targz-8.0.ebuild'

Not sure if any of that helps...
Back to top
View user's profile Send private message
steveD
Guest





PostPosted: Sat May 04, 2002 12:27 am    Post subject: Reply with quote

I used to see a lot of file in /var/cache/ebd/dep.
Lately, I see none. My current portage version is 1.9.6. Maybe some recent portage versions no longer uses these files and the folder was cleaned up.
I never erase any file in this folder, so must be the portage cleaned it.
Now, there are only 3 files: counter, virtuals, world in that folder.
Back to top
j lewis
Guest





PostPosted: Sat May 04, 2002 1:51 am    Post subject: emerge problems -- fixed? Reply with quote

Up until about 5 min ago, I was still seeing the same emerge problems that I've been having over the past two days. Then I ran emerge rsync once again, and now everything seems to be working again:

# emerge --pretend ruby

These are the packages that I would merge, in order.

Calculating dependencies. done!
[ebuild R ] dev-lang/ruby-1.6.7 to /

Try rsync'ing again and see if that doesn't help.

-- Jeff
Back to top
AnimalMachine
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2002
Posts: 106
Location: Milwaukee, WI USA

PostPosted: Sat May 04, 2002 4:32 am    Post subject: Reply with quote

Just rsync'd and I still have the same problem. :(
Back to top
View user's profile Send private message
edis
n00b
n00b


Joined: 18 Apr 2002
Posts: 5
Location: Lithuania

PostPosted: Sat May 04, 2002 11:02 am    Post subject: missing directory Reply with quote

AnimalMachine wrote:
I've gone back to Portage 1.8.19, and then I ran into another problem with it complaining about missing python-fchksum, so I manually untar'd version 1.6.1 of that and installed it.

Now when I try to emerge something, I get:

root@punchbowl portage # emerge app-arch/rpm2targz/ --pretend
Calculating dependencies \Traceback (most recent call last):
File "/usr/sbin/emerge", line 1309, in ?
mydepgraph.create(mytype+" "+portage.root+" "+mykey,None,"--onlydeps" not in myopts)
File "/usr/sbin/emerge", line 400, in create
mydb=open(mydbkey,"r")
IOError: [Errno 2] No such file or directory: '/var/cache/edb/dep/dep-rpm2targz-8.0.ebuild'

Not sure if any of that helps...


I had the same problem. Directory /var/cache/edb/dep/ was missing.
I simply mkdir'ed it and everything went fine.
_________________
Edvinas
Back to top
View user's profile Send private message
AnimalMachine
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2002
Posts: 106
Location: Milwaukee, WI USA

PostPosted: Sat May 04, 2002 1:12 pm    Post subject: Reply with quote

That works! :D
Thanks!
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