Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Strange problem while emerging
Date: Sat, 26 Mar 2016 16:37:35
Message-Id: 56F6BABF.9050704@gmail.com
In Reply to: [gentoo-user] Strange problem while emerging by Dan Johansson
1 On 26/03/2016 17:46, Dan Johansson wrote:
2 > On my Raspberry Pi2 (running Gentoo of cause) I have a problem with
3 > portage, or rather with emerge. When emerging something I get some error
4 > messages about "shell-init:... permission denied" like this:
5 >
6 > ---------------------8<---------------------
7 >>> Emerging (1 of 1) app-arch/xz-utils-5.2.2::gentoo
8 > shell-init: error retrieving current directory: getcwd: cannot access
9 > parent directories: Permission denied
10 >>>> Downloading 'http://distfiles.gentoo.org/distfiles/xz-5.2.2.tar.gz'
11 > --2016-03-26 16:31:48--
12 > http://distfiles.gentoo.org/distfiles/xz-5.2.2.tar.gz
13 > Length: 1464228 (1.4M) [application/octet-stream]
14 > Saving to: ‘/usr/portage/distfiles/xz-5.2.2.tar.gz’
15 >
16 > /usr/portage/distfi 100%[=====================>] 1.40M 3.06MB/s in
17 > 0.5s
18 >
19 > 2016-03-26 16:31:48 (3.06 MB/s) -
20 > ‘/usr/portage/distfiles/xz-5.2.2.tar.gz’ saved [1464228/1464228]
21 >
22 > * xz-5.2.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...
23 >
24 > [ ok ]
25 > shell-init: error retrieving current directory: getcwd: cannot access
26 > parent directories: Permission denied
27 > shell-init: error retrieving current directory: getcwd: cannot access
28 > parent directories: Permission denied
29 > job-working-directory: error retrieving current directory: getcwd:
30 > cannot access parent directories: Permission denied
31 > chdir: error retrieving current directory: getcwd: cannot access parent
32 > directories: Permission denied
33 >>>> Unpacking source...
34 >>>> Unpacking xz-5.2.2.tar.gz to
35 > /var/tmp/portage/app-arch/xz-utils-5.2.2/work
36 >>>> Source unpacked in /var/tmp/portage/app-arch/xz-utils-5.2.2/work
37 > ---------------------8<---------------------
38 >
39 > The emerge continues and installs the software OK (as far as I can see).
40 > I tried to debug emerge (using --debug), but surprise surprise, just
41 > before the error messages shows there is a "set +x" in the output, hence
42 > I can not see which command it is that "produces" the error message and
43 > I can also not see the path/file that is the culprit.
44 >
45 > Any suggestions on how to debug this further?
46 >
47 >
48
49
50
51 What user do you run emerge as?
52 It should be root
53
54 Also check permissions on directories in /var/tmp/portage and all subdirs
55
56 --
57 Alan McKinnon
58 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Strange problem while emerging Dan Johansson <Dan.Johansson@×××.nu>