OSError: [Errno 5] Input/output error: '/var/cache/edb/counter'
Вырубили свет (слышал еще на Ext2, когда глючит файловая система бывает) рухнул портеж, стал выдавать такую ошибку:
бла-бла-бла...
>>> Merging <название пакета> to /
!!! Global counter missing. Regenerated from counter files to: 2209
Traceback (most recent call last):
File "/usr/bin/emerge", line 6544, in
retval = emerge_main()
File "/usr/bin/emerge", line 6538, in emerge_main
myopts, myaction, myfiles, spinner)
File "/usr/bin/emerge", line 5997, in action_build
retval = mergetask.merge(pkglist, favorites, mtimedb)
File "/usr/bin/emerge", line 3845, in merge
prev_mtimes=ldpath_mtimes)
File "/usr/lib64/portage/pym/portage.py", line 4104, in doebuild
vartree=vartree, prev_mtimes=prev_mtimes)
File "/usr/lib64/portage/pym/portage.py", line 4295, in merge
mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib64/portage/pym/portage.py", line 8387, in merge
cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
File "/usr/lib64/portage/pym/portage.py", line 7988, in treewalk
counter = self.vartree.dbapi.counter_tick(self.myroot, mycpv=self.mycpv)
File "/usr/lib64/portage/pym/portage.py", line 5760, in counter_tick
return self.counter_tick_core(myroot,incrementing=1,mycpv=mycpv)
File "/usr/lib64/portage/pym/portage.py", line 5826, in counter_tick_core
write_atomic(cpath, str(counter))
File "/usr/lib64/portage/pym/portage_util.py", line 827, in write_atomic
f.close()
File "/usr/lib64/portage/pym/portage_util.py", line 785, in close
apply_stat_permissions(self.name, os.stat(self._real_name))
OSError: [Errno 5] Input/output error: '/var/cache/edb/counter'
Лечится так:
Из /var/cache/edb удаляем counter и mtimedb, т.к. имеют непонятные права доступа равные ??????;
Затем emerge --metadata
Должно работать
- Для комментирования войдите или зарегистрируйтесь