Gentoo Forums
Gentoo Forums
Quick Search: in
Strange problem on /etc/profile.env
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
fernandoc1
n00b
n00b


Joined: 03 Jan 2010
Posts: 69

PostPosted: Sat Feb 13, 2010 11:36 am    Post subject: Strange problem on /etc/profile.env Reply with quote

Every time I try to make a command like emerge or env-update for example I get an error like:
Code:

localhost / # emerge -av gnome
open('/etc/profile.env', 'r'): (5, 'Input/output error')
Traceback (most recent call last):
  File "/usr/bin/emerge", line 42, in <module>
    retval = emerge_main()
  File "/usr/lib/portage/pym/_emerge/main.py", line 1024, in emerge_main
    settings, trees, mtimedb = load_emerge_config()
  File "/usr/lib/portage/pym/_emerge/actions.py", line 2409, in load_emerge_config
    trees = portage.create_trees(trees=trees, **kwargs)
  File "/usr/lib/portage/pym/portage/__init__.py", line 9186, in create_trees
    config_incrementals=portage.const.INCREMENTALS)
  File "/usr/lib/portage/pym/portage/__init__.py", line 1870, in __init__
    expand=expand_map)
  File "/usr/lib/portage/pym/portage/util.py", line 414, in getconfig
    encoding=_encodings['fs'], errors='strict'), 'rb').read()
IOError: [Errno 5] Input/output error: '/etc/profile.env'


Code:

localhost / # env-update
open('/etc/profile.env', 'r'): (5, 'Input/output error')
Traceback (most recent call last):
  File "/usr/sbin/env-update", line 36, in <module>
    portage.env_update(makelinks)
  File "/usr/lib/portage/pym/portage/__init__.py", line 970, in env_update
    target_root = settings["ROOT"]
  File "/usr/lib/portage/pym/portage/proxy/objectproxy.py", line 38, in __getitem__
    return object.__getattribute__(self, '_get_target')()[key]
  File "/usr/lib/portage/pym/portage/__init__.py", line 9224, in _get_target
    init_legacy_globals()
  File "/usr/lib/portage/pym/portage/__init__.py", line 9309, in init_legacy_globals
    db = create_trees(**kwargs)
  File "/usr/lib/portage/pym/portage/__init__.py", line 9186, in create_trees
    config_incrementals=portage.const.INCREMENTALS)
  File "/usr/lib/portage/pym/portage/__init__.py", line 1870, in __init__
    expand=expand_map)
  File "/usr/lib/portage/pym/portage/util.py", line 414, in getconfig
    encoding=_encodings['fs'], errors='strict'), 'rb').read()
IOError: [Errno 5] Input/output error: '/etc/profile.env'


Can someone help me on this?
Back to top
View user's profile Send private message
patrikas
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2009
Posts: 106

PostPosted: Sat Feb 13, 2010 12:12 pm    Post subject: Reply with quote

Hi. fsck your filesystem first.
Back to top
View user's profile Send private message
fernandoc1
n00b
n00b


Joined: 03 Jan 2010
Posts: 69

PostPosted: Sat Feb 13, 2010 12:51 pm    Post subject: Reply with quote

Thanks, it worked.
But I have a question: how could my file system became corrupted, since my installation is fresh new?
I don't think that I'm having hardware problems, because I was using this disk with Windows 7 and I haven't had any problems on it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum