/dev/null: Permission denied [SOLVED]

Доброго вам дня.
*В начале не собирался sandbox, но теперь я понял что ни один пакет не собирается.
Изначально проблема была как и тут, эмуляция в ядре включена.
Но после того как я пытался самостоятельно решить проблему второй день - выискивал возможные варианты решения на багзилле, и оф форумах и делал следующее:

quickpkg sandbox # на всякий случай сохранил
emerge -C sandbox
emerge emul-linux-x86-xlibs # надеялся что после включения эмуляции в ядре осталось лишь пересобрать этот пакет, но при его персборке получил такие же ошибки как и ниже
emerge -k sandbox
emerge -l sandbox

emerge --info
появились эти страшные логи.
*Никакой пакет не собирается вообще.

# emerge sandbox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/sandbox-2.4  USE="(multilib)" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/sandbox-2.4
 * sandbox-2.4.tar.xz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                        [ ok ]
 * Package:    sys-apps/sandbox-2.4
 * Repository: gentoo
 * Maintainer: 
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   ccache sandbox
ACCESS DENIED  open_wr:      /dev/tty
ACCESS DENIED  open_wr:      /dev/pts/0
ACCESS DENIED  open_wr:      /dev/tty
ACCESS DENIED  open_wr:      /dev/pts/0
ACCESS DENIED  open_wr:      /dev/null
/usr/lib64/portage/bin/ebuild.sh: line 77: /dev/null: Permission denied
/usr/lib64/portage/bin/ebuild.sh: line 302: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1919: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1919: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1919: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1919: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1945: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1794: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1799: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1802: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1805: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1810: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1794: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1799: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1802: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1805: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1810: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1983: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1986: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 2121: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 2121: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 2155: hasq: command not found
ACCESS DENIED  open_wr:      /dev/null
/usr/lib64/portage/bin/ebuild.sh: line 1558: /dev/null: Permission denied
ACCESS DENIED  open_wr:      /dev/null
/usr/lib64/portage/bin/ebuild.sh: line 1558: /dev/null: Permission denied
ACCESS DENIED  open_wr:      /dev/null
/usr/lib64/portage/bin/ebuild.sh: line 1558: /dev/null: Permission denied
ACCESS DENIED  open_wr:      /dev/null
/usr/lib64/portage/bin/ebuild.sh: line 1566: /dev/null: Permission denied
/usr/lib64/portage/bin/ebuild.sh: line 1664: save_IFS: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1667: restore_IFS: command not found
ACCESS DENIED  open_wr:      /dev/null
/usr/portage/profiles/base/profile.bashrc: line 16: /dev/null: Permission denied
ACCESS DENIED]  open_wr:      /dev/null
/usr/lib64/portage/bin/ebuild.sh: line 688: /dev/null: Permission denied
/usr/lib64/portage/bin/ebuild.sh: line 765: vecho: command not found
ACCESS DENIED  open_wr:      /dev/null
/usr/lib64/portage/bin/ebuild.sh: line 688: /dev/null: Permission denied
/usr/lib64/portage/bin/ebuild.sh: line 769: vecho: command not found
ACCESS DENIED  open_wr:      /dev/null
/usr/lib64/portage/bin/ebuild.sh: line 688: /dev/null: Permission denied
/usr/lib64/portage/bin/ebuild.sh: line 2345: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 2347: save_ebuild_env: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1794: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1799: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1802: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1805: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1810: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 2349: assert: command not found
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-27786.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib64/portage/bin/ebuild.sh unpack 

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib64/portage/bin/ebuild.sh unpack 

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib64/portage/bin/ebuild.sh unpack 

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib64/portage/bin/ebuild.sh unpack 

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib64/portage/bin/ebuild.sh unpack 

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib64/portage/bin/ebuild.sh unpack 

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib64/portage/bin/ebuild.sh unpack 

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib64/portage/bin/ebuild.sh unpack 
--------------------------------------------------------------------------------
ACCESS DENIED  open_wr:      /dev/tty
ACCESS DENIED  open_wr:      /dev/pts/0
ACCESS DENIED  open_wr:      /dev/tty
ACCESS DENIED  open_wr:      /dev/pts/0
ACCESS DENIED  open_wr:      /dev/null
/usr/lib64/portage/bin/ebuild.sh: line 77: /dev/null: Permission denied
/usr/lib64/portage/bin/ebuild.sh: line 302: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1919: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1919: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1919: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1919: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1945: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1794: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1799: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1802: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1805: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1810: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1794: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1799: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1802: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1805: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1810: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1983: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1986: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 2121: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 2121: hasq: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1664: save_IFS: command not found
/usr/lib64/portage/bin/ebuild.sh: line 1667: restore_IFS: command not found
ACCESS DENIED  open_wr:      /dev/null
/usr/portage/profiles/base/profile.bashrc: line 16: /dev/null: Permission denied
ACCESS DENIED  open_wr:      /dev/tty
ACCESS DENIED  open_wr:      /dev/pts/0
ACCESS DENIED  open_wr:      /dev/tty
ACCESS DENIED  open_wr:      /dev/pts/0
ACCESS DENIED  open_wr:      /dev/null
sh: /dev/null: Permission denied
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-27865.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib64/portage/bin/misc-functions.sh die_hooks 

F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: /bin/bash /usr/lib64/portage/bin/ebuild-ipc exit 1 

F: open_wr
S: deny
P: /dev/pts/0
A: /dev/pts/0
R: /dev/pts/0
C: /bin/bash /usr/lib64/portage/bin/ebuild-ipc exit 1 

F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: sh -c uname -p 2> /dev/null 

F: open_wr
S: deny
P: /dev/pts/0
A: /dev/pts/0
R: /dev/pts/0
C: sh -c uname -p 2> /dev/null 

F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: sh -c uname -p 2> /dev/null 
--------------------------------------------------------------------------------

>>> Failed to emerge sys-apps/sandbox-2.4, Log file:

>>>  '/var/tmp/portage/sys-apps/sandbox-2.4/temp/build.log'

#revdep-rebuild ничего не дал.
# ls -n /dev/ | grep 'null'
crw-rw-rw- 1 0 0 1, 3 Apr 28 13:20 null

Такое вижу впервые и пока что не придумал что делать)

?

А если попробовать http://gentoo.ru/content/ya-udalilslomal-sistemnyy-paket-i-teper-gentoo-ne-gruzitsya-neuzheli-pereustanavlivatsya

а эта строка - это просто подпись

!

Помогло, спасибо!
Что я сделал:
Согласно постам по вашему линку, так как система рабочая, и грузится, я решил не загружаться с livecd а все сделать без перезагрузки.

1. Скачал и распаковал в папку /l stage3 и portage-lastest
# cd /l
# tar xvjpf stage3-*.tar.bz
# tar xvjf /l/portage-latest.tar.bz2 -C /l/usr

2. Смонтировал следующее добро:
# mount --bind /l/dev/ /dev
# mount --bind /l/dev/pts /dev/pts
# mount --bind /l/dev/shm /dev/shm
# mount -t proc none /l/proc

3. chroot 
# chroot /l /bin/bash && env-update
# mkdir /mnt/broken

4. Извне подмонтировал раздел корня
# mount /dev/sda5 /l/mnt/broken

5. Пересобрал udev
# ROOT="/mnt/broken" PORTAGE_CONFIG_ROOT="/mnt/broken" emerge -1 udev

Would you like to know more?

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".