Все началось с обновления GCC
emerge --ask gcc
* ACCESS DENIED: open_wr: /dev/tty
* ACCESS DENIED: open_wr: /dev/pts/1
* ACCESS DENIED: open_wr: /dev/null
/bin/sh: /dev/null: Отказано в доступе
!!! Invalid binary package: '/usr/portage/pkg/app-text/ghostscript-gpl-9.10-r2.tbz2'
!!! Missing metadata key(s): CATEGORY, PF, SLOT. This binary package is not
!!! recoverable and should be deleted.
Local copy of remote index is up-to-date and will be used.
* ACCESS DENIED: open_wr: /var/cache/edb/binhost/192.168.0.1/portage/Packages.28670
* ACCESS DENIED: open_wr: /var/log/emerge.log
emergelog(): [Errno 13] Permission denied: '/var/log/emerge.log'
* ACCESS DENIED: open_wr: /var/log/emerge.log
emergelog(): [Errno 13] Permission denied: '/var/log/emerge.log'
* ACCESS DENIED: open_wr: /var/lib/gentoo/news/.news-gentoo.unread.portage_lockfile
These are the packages that would be merged, in order:
Calculating dependencies... done!
[binary R ] sys-devel/gcc-4.8.4
Would you like to merge these packages? [Yes/No]
* ACCESS DENIED: open_wr: /var/lib/portage/.world.portage_lockfile
Permission denied: 'open('/var/lib/portage/.world.portage_lockfile')'
* ACCESS DENIED: open_wr: /var/log/emerge.log
emergelog(): [Errno 13] Permission denied: '/var/log/emerge.log'
[s] package.mask # ls -ld /var/log/emerge.log
-rw-rw---- 1 portage portage 3922049 июн 20 14:01 /var/log/emerge.log
теперь я не могу ничего сделать. Куда копать