Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken Portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
rem7
n00b
n00b


Joined: 14 Oct 2005
Posts: 14
Location: USA, Los Angeles CA

PostPosted: Wed Sep 13, 2006 6:26 pm    Post subject: Broken Portage Reply with quote

system crashed when I was updaring portage... great... anyways...
if I try to emerge anything I get the following error:
Code:

Performing Global Updates: /usr/portage/profiles/updates/3Q-2006
(Could take a couple of minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
  s='/var/db SLOT move' S='binary SLOT move' p='update /etc/portage/package.*'
........
pTraceback (most recent call last):
  File "/usr/bin/emerge", line 4049, in ?
    emerge_main()
  File "/usr/bin/emerge", line 3770, in emerge_main
    portage.global_updates(settings, trees, mtimedb["updates"])
  File "/usr/lib/portage/pym/portage.py", line 6656, in global_updates
    myupd)
  File "/usr/lib/portage/pym/portage_update.py", line 198, in update_config_files
    write_atomic(updating_file, "".join(file_contents[x]))
  File "/usr/lib/portage/pym/portage_util.py", line 728, in write_atomic
    f.close()
  File "/usr/lib/portage/pym/portage_util.py", line 696, in close
    os.rename(self.name, self._real_name)
OSError: [Errno 16] Device or resource busy


no matter what I type infront of emerge, thats what I get.
So i tried to manually fix it using this guide http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml and when I get to:

Code:

cd /root/portage-recover/portage-2.1-r2
cp -R pym bin /usr/lib/portage/


I get:
Code:

cp: cannot stat `pym': No such file or directory
cp: cannot stat `bin': No such file or directory


so yeha, I don't know what else to do. I did revdep-rebuild but it failed while it was tryin to emerge some stuff.
_________________
- rem7 -
Back to top
View user's profile Send private message
anello
Guru
Guru


Joined: 17 Jul 2005
Posts: 557
Location: EU -> DE -> Stuttgart

PostPosted: Wed Sep 13, 2006 9:53 pm    Post subject: Reply with quote

post the output of
Code:
ls -la /root/portage-recover/portage-2.1-r2


you are either extracting the package wrong or to a wrong place, but the package definitely contains those folders
_________________
Antonino Catinello | http://catinello.eu
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Sat Oct 28, 2006 9:43 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads, please see this topic: portage fails - errno 16 Device or resource busy.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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