donjames Posted October 5, 2018 Report Share Posted October 5, 2018 eix installs until it gets down to the last line and then: Writing database file /var/cache/eix/portage.eix... cannon open database file /var/cache/eix/portage.eix for writing (mode = 'wb') How can I fix this? Thanks, donjames Solution: cd /var/cache chown root:portage eix emerge eix ###### end of solution ####### Link to comment Share on other sites More sharing options...
0 s4uliu5 Posted October 5, 2018 Report Share Posted October 5, 2018 Hi, please check if directory `/var/cache/eix/` exists and it has there right permissions. At my Funtoo box I have box-fenix ~ # stat /var/cache/eix/ File: /var/cache/eix/ Size: 4096 Blocks: 8 IO Block: 4096 directory Device: fe01h/65025d Inode: 562362 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 250/ portage) Gid: ( 250/ portage) Access: 2018-08-03 23:46:48.804008384 +0300 Modify: 2018-09-07 17:40:44.768927828 +0300 Change: 2018-09-07 17:40:45.736941231 +0300 Birth: - and box-fenix ~ # stat /var/cache/eix/portage.eix File: /var/cache/eix/portage.eix Size: 8152103 Blocks: 15928 IO Block: 4096 regular file Device: fe01h/65025d Inode: 562982 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 250/ portage) Gid: ( 250/ portage) Access: 2018-08-04 00:13:01.220015984 +0300 Modify: 2018-10-05 08:06:43.164145881 +0300 Change: 2018-10-05 08:06:43.164145881 +0300 Birth: - Also I'm running `eix-update` as "root". -- Saulius Link to comment Share on other sites More sharing options...
0 donjames Posted October 5, 2018 Author Report Share Posted October 5, 2018 (edited) The directory, /var/cache/eix, has the permissions: drwxr-xr-x I ran eix-update as root. I changed the permissions to: drwxrwxrwx and it worked. Then I changed the permissions back to: drwxr-xr-x I hope I didn't break anything. Please let me know if this is a proper solution. Thanks, donjames Edited October 5, 2018 by donjames Send more data. Link to comment Share on other sites More sharing options...
0 eyesee Posted October 5, 2018 Report Share Posted October 5, 2018 I also ran into this issue. Have you also check correct ownership? It should be the user portage in group portage for /var/cache/eix and everything inside. Link to comment Share on other sites More sharing options...
0 donjames Posted October 5, 2018 Author Report Share Posted October 5, 2018 (edited) The owner is root:root for the eix directory. root:portage for the edb directory. I changed the owner in the eix directory to: root:portage and now eix-update runs without a hitch. donjames Edited October 5, 2018 by donjames Send more data. Link to comment Share on other sites More sharing options...
Question
donjames
eix installs until it gets down to the last line and then:
Writing database file /var/cache/eix/portage.eix...
cannon open database file /var/cache/eix/portage.eix for writing (mode = 'wb')
How can I fix this?
Thanks,
donjames
Solution:
cd /var/cache
chown root:portage eix
emerge eix
###### end of solution #######
Link to comment
Share on other sites
4 answers to this question
Recommended Posts