Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

emerge -C linux-headers fails (solved)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Randy R
n00b
n00b
Posts: 63
Joined: Fri Jan 09, 2004 4:02 pm

emerge -C linux-headers fails (solved)

  • Quote

Post by Randy R » Sat Mar 12, 2005 11:00 pm

The error I see when the process aborts is:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/emerge", line 2801, in ?
    if 1==unmerge(myaction, myfiles):
  File "/usr/bin/emerge", line 2168, in unmerge
    retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,mysettings,unmerge_action not in ["clean","prune"])
  File "/usr/lib/portage/pym/portage.py", line 2790, in unmerge
    mylink.unmerge(trimworld=mytrimworld,cleanup=1)
  File "/usr/lib/portage/pym/portage.py", line 6073, in unmerge
    if (pkgfiles[obj][0] not in ("dir","fif","dev","sym")) and (lmtime != pkgfiles[obj][1]):
KeyError: '.'
I have tried emerging the package again (it is successfull) but when portage attempts to unmerge the previous instance, it fails. I have spent a significant ammount of time on this. I can emerge a newer version and then unmerge that, but i can not get rid of linux-headers-2.4.21-r1.

I would even be willing to do a manual removal of the package ( if I knew how)

Any suggestions would be welcome.
Last edited by Randy R on Sun May 01, 2005 8:32 pm, edited 1 time in total.
Top
Randy R
n00b
n00b
Posts: 63
Joined: Fri Jan 09, 2004 4:02 pm

  • Quote

Post by Randy R » Tue Mar 15, 2005 1:22 am

anybody?
Top
Randy R
n00b
n00b
Posts: 63
Joined: Fri Jan 09, 2004 4:02 pm

  • Quote

Post by Randy R » Mon Mar 28, 2005 12:43 am

Still have the problem

No ideas? None?
Top
Randy R
n00b
n00b
Posts: 63
Joined: Fri Jan 09, 2004 4:02 pm

The End

  • Quote

Post by Randy R » Thu Apr 21, 2005 7:42 pm

Still broken. I will be reinstalling. Probably going to try ubuntu and see how that goes. This installation is my original and was originally done over two years ago. Its been fun, but I can't fix this.
Top
iTux
Guru
Guru
Posts: 586
Joined: Tue Sep 07, 2004 11:50 pm
Location: Toronto

  • Quote

Post by iTux » Fri Apr 22, 2005 2:16 am

Hi,

Not being to unmerge is not that big a problem... I suspect you have other reasons for switching operating systems as it is much easier to fix your unmerge problem than to install another OS... In case you are still using Gentoo or if others encounter similar problems:

qpkg -l -nc package_name
gives you the list of files.

1) Remove all of them.
Ex:
for f in `qpkg -l -nc package_name` ; do
rm $f
done
2) Unmerge the package
3) Re-emerge the newer version of the package again.


iTux
Top
Randy R
n00b
n00b
Posts: 63
Joined: Fri Jan 09, 2004 4:02 pm

  • Quote

Post by Randy R » Sat Apr 23, 2005 1:24 am

Thanks for your response. I tried what you suggested but it didn't work. I get the same error. Emerge -C removes all the packeges normally (it seems) but looks like there may be some other file that is causing a problem (installed package db or somthing?)

Anyway, thanks for your response. I just didn't think that this would be that hard a problem to resolve. I just can't figure out how to fix it.

As far as changing distros, I like being able to fix the errors that come up without having to reinstall(forums is normally great. almost never have to submit a question). If I do need to reinstall, then it might be easier to do a distro that that dosen't need to be compiled.
Top
Randy R
n00b
n00b
Posts: 63
Joined: Fri Jan 09, 2004 4:02 pm

  • Quote

Post by Randy R » Sun May 01, 2005 8:38 pm

The way to fix a system with a package that will not be removed by

Code: Select all

emerge -C some-package
is to do a manual uninstall as previously shown above, then go into

Code: Select all

/var/db/pkg/
and delete the entry for the package that will not uninstall and problem resolved.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic