View previous topic :: View next topic |
Author |
Message |
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Sun Apr 13, 2003 11:45 pm Post subject: oops i broke emerge |
|
|
just a little while ago i copied a script over bash when i was in a hurry...now i borked emerge. i really need to quit breaking stuff. anyhoo, i was doing an emerge -u system to (intentionally) downgrade a number of masked packages I have been using and it errored out with this:
Code: |
!!! ERROR: sys-apps/groff-1.18.1-r1 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! (no error message)
|
then to my dismay...
Code: |
alluicd:[~]# emerge -pu system
python2.2: /lib/libpthread.so.0: version 'GLIBC_2.3.2' not found (required by python2.2)
|
uh-oh |
|
Back to top |
|
|
guero61 l33t
Joined: 14 Oct 2002 Posts: 811 Location: Behind you
|
Posted: Mon Apr 14, 2003 12:44 am Post subject: |
|
|
That hurts!
The only ways I've been able to recover from such an error were:
1. Download latest Stage-3 tarball, unpack in root directory. Run "emerge -e world". It'll take forever, but everything'll be recompiled to it's original status. Of course, you could leave off the emerge, but the packages that were untarred won't be optimized for your system.
2. Reinstall.
I think you know which I recommend. |
|
Back to top |
|
|
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Mon Apr 14, 2003 1:16 am Post subject: |
|
|
worked like a charm.
except i forgot to backup my configs...
man, this just isn't my week. |
|
Back to top |
|
|
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Mon Apr 14, 2003 1:45 am Post subject: |
|
|
almost. well it seems there are more problems than i thought.... may have to reinstall afterall. |
|
Back to top |
|
|
guero61 l33t
Joined: 14 Oct 2002 Posts: 811 Location: Behind you
|
Posted: Mon Apr 14, 2003 2:40 am Post subject: |
|
|
I guess it could have overwritten certain configs, I just didn't foresee that. Sorry!
What other issues are there? Maybe something we can help with? |
|
Back to top |
|
|
StuBear Apprentice
Joined: 26 Feb 2003 Posts: 157 Location: Melbourne,AUSTRALIA
|
Posted: Mon Apr 14, 2003 3:39 am Post subject: |
|
|
This is too late now as you have already untared the stage3, but in /usr/portage/sys-admin/portage/files there is a rescue portage that can be used to recover from this type of accident.
Read README.rescue (I think, but if it's wrong the correct one will be very obvious) in the portage/files directory.
A lot less painful than killing all your config settings with the tarball. |
|
Back to top |
|
|
guero61 l33t
Joined: 14 Oct 2002 Posts: 811 Location: Behind you
|
Posted: Mon Apr 14, 2003 3:41 am Post subject: |
|
|
See, even "guru" members don't necessarily know everything, even though we would like to think we do! |
|
Back to top |
|
|
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Mon Apr 14, 2003 12:08 pm Post subject: |
|
|
The config files aren't that big of a deal, some other packages are broken though and re-emerging them always fails. I just may start over. I don't mind that much anyway, it's generally a painless procedure. It's good to know about that rescue portage incase I get in this sort of mess again. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon Apr 14, 2003 5:17 pm Post subject: |
|
|
Moved from Other Things Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
allucid Veteran
Joined: 02 Nov 2002 Posts: 1314 Location: atlanta
|
Posted: Mon Apr 14, 2003 6:19 pm Post subject: |
|
|
one more question...
since i built my system from stage one before it wouldn't do any good to do that again, right? i'm not sure what the bootstrapping process does...
can anyone shed some light on this? |
|
Back to top |
|
|
guero61 l33t
Joined: 14 Oct 2002 Posts: 811 Location: Behind you
|
Posted: Mon Apr 14, 2003 11:07 pm Post subject: |
|
|
I don't think so; untarring the stage-3 overwrites some of the more important system files.
The only thing that's not going to be absolutely perfect if you do a stage3 is that for the time being, your system is not completely optimized. As each package updates in portage, the new one will be re-compiled with your specific USE and CFLAGS variables. That's the only drawback; for some it's enough to withdraw to stage1. You'll have to be patient one way or another -- wait for an initial compile or wait for packages to update so you can compile the update. |
|
Back to top |
|
|
StuBear Apprentice
Joined: 26 Feb 2003 Posts: 157 Location: Melbourne,AUSTRALIA
|
Posted: Mon Apr 14, 2003 11:54 pm Post subject: |
|
|
if you are worried about glibc, gcc etc not being "optimized" to your liking, then you can re-bootstrap, but it really isn't necessary.
What you may want to do is run "regenworld", as your old world file has probably been blitzed by the stage3 tarball. If you are lucky the records in the portage db will contain your old files and "regenworld" will put them back into your world file.
If you want to reoptimize then a sligthly faster method than bootstraping would be to "emerge -e world", this will rebuild everything except glibc to your settings in /etc/make.conf
My suggestion however would be to remerge only those apps that you feel MUST be optimized, and leave the rest until they get updated - which will probably be some time next week the way gentoo gets updated |
|
Back to top |
|
|
StuBear Apprentice
Joined: 26 Feb 2003 Posts: 157 Location: Melbourne,AUSTRALIA
|
Posted: Tue Apr 15, 2003 12:01 am Post subject: |
|
|
allucid wrote: | i'm not sure what the bootstrapping process does...
can anyone shed some light on this? |
realised after my previous post that I didn't answer your question.
bootstrapping will build binutils, gcc, gettext and then glibc with the settings in make.conf, then it will go back and rebuild binutils, gcc, and gettext with your newly optimized glibc.
This takes a while as you can imagine - about 2 hours on my XP 1800+, glibc is the killer takes forever.
Hope this answers your question |
|
Back to top |
|
|
|