On 26/03/2016 17:46, Dan Johansson wrote:
> On my Raspberry Pi2 (running Gentoo of cause) I have a problem with
> portage, or rather with emerge. When emerging something I get some error
> messages about "shell-init:... permission denied" like this:
> 
> ---------------------8<---------------------
>>> Emerging (1 of 1) app-arch/xz-utils-5.2.2::gentoo
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Permission denied
>>>> Downloading 'http://distfiles.gentoo.org/distfiles/xz-5.2.2.tar.gz'
> --2016-03-26 16:31:48--
> http://distfiles.gentoo.org/distfiles/xz-5.2.2.tar.gz
> Length: 1464228 (1.4M) [application/octet-stream]
> Saving to: ‘/usr/portage/distfiles/xz-5.2.2.tar.gz’
> 
> /usr/portage/distfi 100%[=====================>]   1.40M  3.06MB/s   in
> 0.5s
> 
> 2016-03-26 16:31:48 (3.06 MB/s) -
> ‘/usr/portage/distfiles/xz-5.2.2.tar.gz’ saved [1464228/1464228]
> 
>  * xz-5.2.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...
> 
>                                                          [ ok ]
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Permission denied
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: Permission denied
> job-working-directory: error retrieving current directory: getcwd:
> cannot access parent directories: Permission denied
> chdir: error retrieving current directory: getcwd: cannot access parent
> directories: Permission denied
>>>> Unpacking source...
>>>> Unpacking xz-5.2.2.tar.gz to
> /var/tmp/portage/app-arch/xz-utils-5.2.2/work
>>>> Source unpacked in /var/tmp/portage/app-arch/xz-utils-5.2.2/work
> ---------------------8<---------------------
> 
> The emerge continues and installs the software OK (as far as I can see).
> I tried to debug emerge (using --debug), but surprise surprise, just
> before the error messages shows there is a "set +x" in the output, hence
> I can not see which command it is that "produces" the error message and
> I can also not see the path/file that is the culprit.
> 
> Any suggestions on how to debug this further?
> 
> 



What user do you run emerge as?
It should be root

Also check permissions on directories in /var/tmp/portage and all subdirs

-- 
Alan McKinnon
alan.mckin...@gmail.com


Reply via email to