Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Recovering from unmerged linux-headers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
vaxbrat
Guru
Guru


Joined: 05 Oct 2005
Posts: 513
Location: DC Burbs

PostPosted: Sun May 07, 2006 1:18 am    Post subject: [solved] Recovering from unmerged linux-headers Reply with quote

So I'm an idiot....

I was cleaning out some debris (old kernels, kde 3.3 and 3.4, etc.) and threw the baby out with the bath water by unmerging the linux-headers. When emerge updates started falling on their faces I found that I couldn't re-emerge linux-headers. The errors I was getting looked suspiciously like some of the errors found in other threads such as

https://forums.gentoo.org/viewtopic-t-459466-highlight-linuxheaders+error.html

Some of the suggestions didn't look too helpful so I thought I'd throw in my two cents worth:

1) Grab a stage1 tarball (in my case stage1-amd64-2006.0.tar.bz2) and play it out somewhere

2) Cd in and push all of the usr/include over to your /usr/include
# cd <wherever>/usr/include
# tar cvpf - . | (cd /usr/include; tar xpf -)

3) push over the portage db entry
# cd <wherever>/var/db/pkg/sys-kernel
# tar cvpf - . | (cd /var/db/pkg/sys-kernel; tar xpf -)

You should now be able to do an emerge -e glibc to get things back to sanity. In my case, there were pending updates for both glibc and linux-headers, so I cheated and did an emerge -uD glibc


Last edited by vaxbrat on Sat May 20, 2006 3:19 am; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Administrator
Administrator


Joined: 09 Apr 2004
Posts: 10973
Location: the dutch mountains

PostPosted: Sun May 07, 2006 6:32 am    Post subject: Reply with quote

Moved from Portage & Programming to Documentation, Tips & Tricks.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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