unmerging linux-headers and broken system
First of all, I do admit I did a stupid thing :). Being a debian user, thought removing kernel-headers would have beeen harmless so I unmerged it.
As the result, I cannot emerge it again, not to speak about any other program I'd like to install. Basically, nothing emerges failing with the following: I'd appreciate any help and promise I'll be a good user next time :] Quote:
|
Right,I guess you missed the big red warning when unmerging that ;)
In any case, don't worry. It's easy to get back from this one using a prebuilt package. As I am typing from an x86 box I just packaged it with quickpkg, and uploaded it to my server. All you need to do is to download this into your root fs /. Then tar xf it. After that, you should re-emerge linux-headers (first thing), to replace my hand-made package with a legitimate Gentoo one. http://www.jesgue.es/files/gentoo-x8...aders-3.9.tbz2 By the way, you might be interested in adding this to your make.conf, so portage automatically builds packages at least for system packages. Those packages come in handy when you break something vital. Code:
FEATURES="buildsyspkg" |
So this would be right up there with unmerging python ?. Did that once, several years ago ....
|
Unmerging python is slightly worse, both practically and philosophically speaking. However, the worst thing is unmerging glibc and/or tar, that will require a livecd to recover.
|
Quote:
Quote:
Is there any way-out of this except for reinstalling the whole system? |
Ugh, if you did that, then I am afraid that re-installing is the fastest way out of this problem.
The fact that there's not even a valid /dev/null means that your system is horribly broken. Note that by replacing your whole /usr with the one in the stage you probably downgraded glibc. That alone is enough to turn your system into a dead boulder. |
Eh, I should have waited but to tell the truth I was quite sure gentoo user-experts would have just ignored me having realized my stupidity.
I've been switching to gentoo for a while being still a noob for some matters. All the same, I want to learn but hardly, there's a way to achieve unless making mistakes :) Thanks for your support. |
Quote:
Quote:
Quote:
|
I really wonder what broke your system, linux-headers is a system package alright and you get a big fat warning when removing it. In actuality it is used to build glibc only and should not cause havoc, at least not instantly.
Anyhow, methinks for stable Gentoo binary packages can be downloaded from attic if need arises? |
Quote:
I am still having the problem with linux-headers-3.10 but this time, the error is different and the compilation process seems to have gone few steps further. Am I right? Quote:
|
Your system is broken.
The first errors (the ones about your locales) are probably easily fixable by re-editing /etc/locale.gen (if needed, just to make sure it's ok), and then running "locale-gen" as root. You must make sure that you generate the locales that portage is complaining about (en_US.UTF-8). But the rest of errors about undefined symbols and that stuff is probably due to your toolchain being completely broken, which, as I said, is to be expected when your system binaries have been built against a toolchain that you abruptly overwrote with another one. If you truly want to recover from this, as a learning exercise, you can look into the [url=http://tinderbox.dev.gentoo.org/]gentoo tinderbox[/u], which has prebuilt binaries for the most critical packages. You might be able to do something using those, you'll need to restore portage, glibc, gcc, binutils, coreutils, sandbox, libtool, python and probably some others. The x86 branch is here: http://tinderbox.dev.gentoo.org/default-linux/x86/ You can put the packages in /usr/portage/packages and use emerge -K to force installation via binary packages. Or, if that doesn't work, just use tar as before (your system can't possibly go any worse, so...). If you get to the point where you can use "eselect" to pick the new binary toolchain, and then "emerge -e system" then that's a good start. |
Quote:
Stay tuned for more ;) |
Quote:
When I emerge Quote:
Quote:
Quote:
What am I missing? |
You just
Code:
emerge -K "=portage-2.2.7" |
Quote:
I'm afraid, I'm stopping understanding what I am doing. |
All times are GMT -5. The time now is 03:26 AM. |