here is an example: burrito callipygous /usr/portage/net-irc $ emerge -s ngircd *** You are not in the portage group. You may experience cache problems *** due to permissions preventing the creation of the on-disk cache. *** Please add this user to the portage group if you wish to use portage. Searching... /Traceback (most recent call last): File "/usr/bin/emerge", line 2336, in ? searchinstance.execute(mysearch) File "/usr/bin/emerge", line 545, in execute if not portage.portdb.xmatch("match-visible",package): File "/usr/lib/portage/pym/portage.py", line 4711, in xmatch myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey)) File "/usr/lib/portage/pym/portage.py", line 4697, in xmatch myval=self.gvisible(self.visible(self.cp_list(mykey))) File "/usr/lib/portage/pym/portage.py", line 4792, in gvisible myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"]) File "/usr/lib/portage/pym/portage.py", line 4542, in aux_get mylock = lockfile(mydbkey,unlinkfile=1) File "/usr/lib/portage/pym/portage.py", line 81, in lockfile myfd = os.open(lockfilename, os.O_CREAT|os.O_WRONLY,0660) OSError: [Errno 13] Permission denied: '/var/cache/edb/dep//aux_db_key_temp' burrito callipygous /usr/portage/net-irc $ cat /etc/group |grep portage portage:x:250:portage,callipygous as you can see, the user is in the portage group. Reproducible: Sometimes Steps to Reproduce: 1. Make sure user is in the portage group, but not su -'d 2. emerge -s a package 3. see that it didn't work as desired Actual Results: see above Expected Results: showed this Searching... [ Results for search key : ngircd ] [ Applications found : 1 ] * net-irc/ngircd Latest version available: 0.8.0 Latest version installed: [ Not Installed ] Size of downloaded files: 260 kB Homepage: http://arthur.ath.cx/~alex/ngircd/ Description: A IRC server written from scratch. License: GPL-2 portage version 2.0.50-r11
what does `id callipygous` say ?
To further describe the reasoning for the question in the previous comment, linux requires that a user log off and log on again (or executing something like newgrp) for the group change to take effect. It seems like you have not done this..
got this per mail: id callipygous says: burrito callipygous ~ $ id callipygous uid=1000(callipygous) gid=100(users) groups=100(users),6(disk),10(wheel),18(audio),19(cdrom),35(games),250(portage)
Run it as root once. Reopen if you can duplicate. ls -l /var/cache/edb/dep/aux_db_key_temp You also did not indicate portage version.
I indicated portage version, here is is again anyway portage version 2.0.50-r11 Seems tho that I had to actually log out and log back in again ... not just open up a new terminal :/ tho I do remember that in previous versions or portage you didn't have to be in the portage group to emerge -s or -p something, you just couldn't install anything ... oh well. Thanks