Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to restore the WHOLE portage system?
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
bler
n00b
n00b


Joined: 13 Aug 2008
Posts: 1

PostPosted: Wed Aug 13, 2008 4:38 pm    Post subject: How to restore the WHOLE portage system? Reply with quote

Hello,

I have some serious problems with portage in general. It had all begun when I've tried to do something like update the system or so. To make matters worse, it was a long time ago and I had more serious things to do than playing with portage, so I cant remember exactly what I did.

Long story short, it does not work at all.

Emerge hangs in random moments when compiling/configuring packages:
Code:
../sandbox-1.2.18.1//configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --build=i686-pc-linux-gnu
and just sits there. emerging different packages ends in about the same, like exim:
Code:
* Applying exim-4.20-maildir.patch ...                                                                                      [ ok ].

Also, I'm getting errors like:
Code:
 * checking m4-1.4.10.tar.bz2 ;-) ...                                                                                        [ ok ]
/root/portage-recover/bin/sed: line 20: /usr/local/sbin/: is a directory
/root/portage-recover/bin/sed: line 20: exec: /usr/local/sbin/: cannot execute: Success
Traceback (most recent call last):
  File "/root/portage-recover/bin/filter-bash-environment.py", line 51, in <module>
    compile_egrep_pattern(args[0]), file_in, file_out)
  File "/root/portage-recover/bin/filter-bash-environment.py", line 34, in filter_bash_environment
    file_out.write(line)
IOError: [Errno 32] Broken pipe
/root/portage-recover/bin/sed: line 20: /usr/local/sbin/: is a directory
/root/portage-recover/bin/sed: line 20: exec: /usr/local/sbin/: cannot execute: Success
 *
 * ERROR: sys-devel/m4-1.4.10 failed.
 * Call stack:
 *   , line :  Called die
 * The specific snippet of code:
/root/portage-recover/bin/sed: line 20: /usr/local/sbin/: is a directory
/root/portage-recover/bin/sed: line 20: exec: /usr/local/sbin/: cannot execute: Success
/root/portage-recover/bin/sed: line 20: /usr/local/sbin/: is a directory
/root/portage-recover/bin/sed: line 20: exec: /usr/local/sbin/: cannot execute: Success
 *  The die message:
 *   error processing environment

I've tried portage-recover, that is replacing /usr/lib/portage with the one portage-2.1.4.tar.bz2. I've tried replacing the whole /usr/portage, with no effect.


So, is there anything I could do? Reinstalling the system is my very, very, very, very last option.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Aug 13, 2008 5:37 pm    Post subject: Reply with quote

Have you tried to emerge portage and see what happens? Maybe emerge --sync and then emerge -p portage first.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Wed Aug 13, 2008 5:39 pm    Post subject: Reply with quote

I assume by "portage-recover" you mean the official Portage repair guide? Follow the instructions there very carefully. You should not try to run Portage from the portage-recover directory, which appears to be the case based on the errors you posted. Also don't overlook the following step:

Manually fixing Portage wrote:
If you are not using Gentoo on FreeBSD then you should remove the sed wrapper script since it's not needed and it is known to cause problems with old versions of bash:
Code Listing 1.4: Removing the sed wrapper script:
# rm -f /usr/lib/portage/bin/sed

Note: If you accidently unmerged portage before or lost /etc/make.globals for other reasons you should also copy cnf/make.globals back into /etc, otherwise portage might behave in strange ways.

You may want to delete your present /root/portage-recover directory and start over from step one. This is task that benefits from patience, caution and attention to detail.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Wed Aug 13, 2008 5:52 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.
The specifics vary but similar problems are not uncommon...please search before posting.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
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