LINUX.ORG.RU

Обновление Perl

 ,


1

2

Пытаюсь обновить Perl perl-cleaner --all

в ответ: Calculating dependencies... done! [ebuild U ] dev-perl/XML-Parser-2.410.0-r2 [2.410.0] 0 kB [ebuild U ] dev-perl/Locale-gettext-1.50.0-r1 [1.50.0] 0 kB

Total: 2 packages (2 upgrades), Size of downloads: 0 kB

[quote][quote][quote] Verifying ebuild manifests[br][/quote][/quote][/quote][quote][quote][quote] Emerging (1 of 2) dev-perl/XML-Parser-2.410.0-r2[br][/quote][/quote][/quote] * XML-Parser-2.41.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] [Errno 13] Permission denied: '/usr/bin/sandbox': /usr/bin/sandbox /usr/lib64/portage/bin/ebuild.sh unpack Traceback (most recent call last): File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn unshare_net, unshare_ipc, cgroup) File "/usr/lib64/portage/pym/portage/process.py", line 514, in _exec os.execve(binary, myargs, env) File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) PermissionError: [Errno 13] Permission denied: '/usr/bin/sandbox' * The ebuild phase 'unpack' has exited unexpectedly. This type of behavior * is known to be triggered by things such as failed variable assignments * (bug #190128) or bad substitution errors (bug #200313). Normally, before * exiting, bash should have displayed an error message above. If bash did * not produce an error message above, it's possible that the ebuild has * called `exit` when it should have called `die` instead. This behavior * may also be triggered by a corrupt bash binary or a hardware problem * such as memory or cpu malfunction. If the problem is not reproducible or * it appears to occur randomly, then it is likely to be triggered by a * hardware problem. If you suspect a hardware problem then you should try * some basic hardware diagnostics such as memtest. Please do not report * this as a bug unless it is consistently reproducible and you are sure * that your bash binary and hardware are functioning properly.[quote][quote][quote] Failed to emerge dev-perl/XML-Parser-2.410.0-r2, Log file:[br][/quote][/quote][/quote][quote][quote][quote] '/tmp/portage/dev-perl/XML-Parser-2.410.0-r2/temp/build.log'[br][/quote][/quote][/quote] * perl-cleaner is stopping here: * Fix the problem and start perl-cleaner again.

Где-то права похерились, а вот где ?! Грешил на python, так вот что получилось: * Starting Python Updater... * Main active version of Python: 3.3 * Active version of Python 2: 2.7 * Active version of Python 3: 3.3 * Globally supported Python ABIs in installed repositories: * gentoo: 2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0 * Adding to list: sys-libs/libcap-ng:0 * emerge -Dv1 --keep-going sys-libs/libcap-ng:0

* IMPORTANT: 14 news items need reading for repository 'gentoo'. * Use eselect news to read news items.

* Last emerge --sync was Wed Feb 25 17:35:01 2015.

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

Calculating dependencies... done! [ebuild U ] sys-libs/libcap-ng-0.7.4 [0.7.3] USE="-python -static-libs" PYTHON_TARGETS="python2_7%* python3_3%* -python3_4%" 398 kB

Total: 1 package (1 upgrade), Size of downloads: 398 kB

[quote][quote][quote] Verifying ebuild manifests[br][/quote][/quote][/quote][quote][quote][quote] Emerging (1 of 1) sys-libs/libcap-ng-0.7.4[br][/quote][/quote][/quote][Errno 13] Permission denied: '/bin/bash': /bin/bash -c >> /usr/portage/distfiles/.__portage_test_write__ 2>/dev/null ; rval=$? ; rm -f /usr/portage/distfiles/.__portage_test_write__ ; exit $rval Traceback (most recent call last): File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn unshare_net, unshare_ipc, cgroup) File "/usr/lib64/portage/pym/portage/process.py", line 514, in _exec os.execve(binary, myargs, env) File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) PermissionError: [Errno 13] Permission denied: '/bin/bash' [quote][quote][quote] Downloading 'http://mirror.yandex.ru/gentoo-distfiles/distfiles/libcap-ng-0.7.4.tar.gz'[br][/quote][/quote][/quote][Errno 13] Permission denied: '/usr/bin/wget': wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/libcap-ng-0.7.4.tar.gz http://mirror.yandex.ru/gentoo-distfiles/distfiles/libcap-ng-0.7.4.tar.gz Traceback (most recent call last): File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn unshare_net, unshare_ipc, cgroup) File "/usr/lib64/portage/pym/portage/process.py", line 514, in _exec os.execve(binary, myargs, env) File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) PermissionError: [Errno 13] Permission denied: '/usr/bin/wget' [quote][quote][quote] Downloading 'http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.7.4.tar.gz'[br][/quote][/quote][/quote][Errno 13] Permission denied: '/usr/bin/wget': wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/libcap-ng-0.7.4.tar.gz http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.7.4.tar.gz Traceback (most recent call last): File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn unshare_net, unshare_ipc, cgroup) File "/usr/lib64/portage/pym/portage/process.py", line 514, in _exec os.execve(binary, myargs, env) File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) PermissionError: [Errno 13] Permission denied: '/usr/bin/wget' !!! Couldn't download 'libcap-ng-0.7.4.tar.gz'. Aborting. * Fetch failed for 'sys-libs/libcap-ng-0.7.4', Log file: * '/tmp/portage/sys-libs/libcap-ng-0.7.4/temp/build.log'[quote][quote][quote] Failed to emerge sys-libs/libcap-ng-0.7.4, Log file:[br][/quote][/quote][/quote][quote][quote][quote] '/tmp/portage/sys-libs/libcap-ng-0.7.4/temp/build.log'[br][/quote][/quote][/quote] * * The following package has failed to build or install: * * (sys-libs/libcap-ng-0.7.4::gentoo, ebuild scheduled for merge), Log file: * '/tmp/portage/sys-libs/libcap-ng-0.7.4/temp/build.log'



Последнее исправление: yaxon (всего исправлений: 2)

Ответ на: комментарий от bvn13

ls -ld /usr drwxr-xr-x 13 root root 376 ноя 27 2013 /usr ls -ld /usr/bin/ drwxr-xr-x 2 root root 24608 фев 25 18:25 /usr/bin/ ls -ld /usr/bin/sandbox -rwxr-xr-x 1 root root 38792 ноя 28 2013 /usr/bin/sandbox

yaxon
() автор топика
Ответ на: комментарий от yaxon

Судя по тому, что ты добавил, у тебя что-то конкретно похерилось. Добавь тег gentoo и скастуй гентушников, мож, они поболе моего в этом вопросе разбираются.

bvn13 ★★★★★
()
Ответ на: комментарий от yaxon

А если запустить /usr/bin/sandbox ?

Причём судя по правам должно запускаться под root-м.

Что мог бы предположить, можно попробовать chmod o+r /usr/bin/sandbox - но не уверен, что это правильно. Вечером домой приду, могу подглядеть, какие флаги у меня выставлены.

Но это странно давать права на исполнение (x) и не на чтение.

BattleCoder ★★★★★
()
Ответ на: комментарий от BattleCoder

/usr/bin/sandbox ============================= Gentoo path sandbox ============================== Detection of the support files. Verification of the required files. Setting up the required environment variables. The protected environment has been started. -------------------------------------------------------------------------------- Process being started in forked instance.

* Loading sandboxed shell * Log File: /var/log/sandbox/sandbox-17535.log * Debug Log File: /var/log/sandbox/sandbox-debug-17535.log * sandboxon: turn sandbox on * sandboxoff: turn sandbox off * addread <path>: allow <path> to be read * addwrite <path>: allow <path> to be written * adddeny <path>: deny access to <path> * addpredict <path>: allow fake access to <path>

yaxon
() автор топика
Ответ на: комментарий от BattleCoder

ls -ld /usr/portage/ drwxrwxr-x 172 portage portage 5248 фев 25 18:39 /usr/portage/ ls -ld /usr/portage/distfiles/ drwxrwxr-x 2 root portage 17664 апр 10 16:54 /usr/portage/distfiles/ содержимое -rw-rw-r-- 1 portage portage 571091 апр 29 2013 zlib-1.2.8.tar.gz

ls -ld /var/tmp/portage ls: невозможно получить доступ к /var/tmp/portage: Нет такого файла или каталога ls -ld /var/tmp/ drwxrwxrwt 3 root root 104 апр 16 2014 /var/tmp/

yaxon
() автор топика
Ответ на: комментарий от yaxon

Странно - вроде бы всё ок.

Что ещё мог бы посоветовать, попробуйте поиграться с командой ebuild, вместо emerge XML-Parser запустить ebuild c нужными параметрами (там по стадии, сначала загрузить архив, потом распаковать, потом собрать и т.п.) - получится ли?

Подозреваю, что нет - но может хоть понятнее будет, в чём дело.

BattleCoder ★★★★★
()
Ответ на: комментарий от yaxon

ls -ld /var/tmp/portage
ls: невозможно получить доступ к /var/tmp/portage: Нет такого файла или каталога

Создать директорию?

r3lgar ★★★★★
()
Ответ на: комментарий от r3lgar

а при чем тут вообще эта директория ?! на другом компьютере нет такого, сравниваю потихоньку все права на каталоги и файлы. Может проще все переустановить....

yaxon
() автор топика
Ответ на: комментарий от yaxon

вот еще: emerge --sync [quote][quote][quote] Synchronization of repository 'gentoo' located in '/usr/portage'...[br] Starting rsync with rsync://213.180.204.183/gentoo-portage...[br] Checking server timestamp ...[br][/quote][/quote][/quote][Errno 13] Permission denied: '/usr/bin/rsync': /usr/bin/rsync --recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --verbose rsync://213.180.204.183/gentoo-portage/metadata/timestamp.chk /tmp/tmpbc0hej Traceback (most recent call last): File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn unshare_net, unshare_ipc, cgroup) File "/usr/lib64/portage/pym/portage/process.py", line 514, in _exec os.execve(binary, myargs, env) File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) PermissionError: [Errno 13] Permission denied: '/usr/bin/rsync' * Rsync has reported that there is a syntax error. Please ensure * that sync-uri attribute for repository 'gentoo' is proper. * sync-uri: 'rsync://mirror.yandex.ru/gentoo-portage'

yaxon
() автор топика
Ответ на: комментарий от yaxon

вот еще :

[Errno 13] Permission denied: '/bin/bash': /bin/bash -c >> /usr/portage/distfiles/.__portage_test_write__ 2>/dev/null ; rval=$? ; rm -f /usr/portage/distfiles/.__portage_test_write__ ; exit $rval Traceback (most recent call last): File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn unshare_net, unshare_ipc, cgroup) File "/usr/lib64/portage/pym/portage/process.py", line 514, in _exec os.execve(binary, myargs, env) File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) PermissionError: [Errno 13] Permission denied: '/bin/bash' [quote][quote][quote] Downloading 'http://mirror.yandex.ru/gentoo-distfiles/distfiles/libcap-ng-0.7.4.tar.gz'[br][/quote][/quote][/quote][Errno 13] Permission denied: '/usr/bin/wget': wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/libcap-ng-0.7.4.tar.gz http://mirror.yandex.ru/gentoo-distfiles/distfiles/libcap-ng-0.7.4.tar.gz Traceback (most recent call last): File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn unshare_net, unshare_ipc, cgroup) File "/usr/lib64/portage/pym/portage/process.py", line 514, in _exec os.execve(binary, myargs, env) File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) PermissionError: [Errno 13] Permission denied: '/usr/bin/wget' [quote][quote][quote] Downloading 'http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.7.4.tar.gz'[br][/quote][/quote][/quote][Errno 13] Permission denied: '/usr/bin/wget': wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/libcap-ng-0.7.4.tar.gz http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.7.4.tar.gz Traceback (most recent call last): File "/usr/lib64/portage/pym/portage/process.py", line 316, in spawn unshare_net, unshare_ipc, cgroup) File "/usr/lib64/portage/pym/portage/process.py", line 514, in _exec os.execve(binary, myargs, env) File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) PermissionError: [Errno 13] Permission denied: '/usr/bin/wget' !!! Couldn't download 'libcap-ng-0.7.4.tar.gz'. Aborting. * Fetch failed for 'sys-libs/libcap-ng-0.7.4', Log file: * '/tmp/portage/sys-libs/libcap-ng-0.7.4/temp/build.log'

Вручную проверил wget -t 3 -T 60 --passive-ftp -O /usr/portage/distfiles/libcap-ng-0.7.4.tar.gz http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.7.4.tar.gz файл скачивается

yaxon
() автор топика
Ответ на: комментарий от yaxon

Может проще все переустановить....

Негентушно!

r3lgar ★★★★★
()
Ответ на: комментарий от das_tier

негентушно, гентушно - это не решение.... У меня идея есть сверить все каталоги на права, но как... Может скриптик какой написать, но на bash не писал не разу.

yaxon
() автор топика
Ответ на: комментарий от yaxon

Вообщем вычитал я на форумах... Проблему решил неправильно считаю, но пока работает! в файлике make.conf указал строчку FEATURES="-userfetch -userpriv -usersandbox -usersync"

yaxon
() автор топика
Ответ на: комментарий от yaxon

У меня идея есть сверить все каталоги на права, но как... Может скриптик какой написать, но на bash не писал не разу.

Для этого существует tripwire, но ее надо было ставить вначале.

soomrack ★★★★
()

TPE c grsecurity используешь? Если да, то поиграйся в /etc/sysctl.conf

kernel.grsecurity.tpe = 1 - включает TPE
kernel.grsecurity.tpe_gid = 0 - можно установить группу (0-root, 250-portage)
kernel.grsecurity.tpe_invert = 1 - разрешение запуск файлов с правами на запись только выше указанной группе
#kernel.grsecurity.tpe_invert = 0 - запрет запуск файлов с правами на запись выше указанной группе

gradmin, selinux или что то похожее настраивал?

mount -o remount,noexec - тоже может запретить исполнение, но тогда даже root запускать бы ничего не смог, а у тебя юзер 250 (portage) не имеет прав на исполнение стандартных бинарей дистра.

Или взломали, или ты какими-то средствами безопасности запретил пользователю 250 (portage) выполнять файлы..

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.