Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GF19: Emerge fails to unmerge a package.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Frequently Asked Questions
View previous topic :: View next topic  
Author Message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4835
Location: Gothenburg, Sweden

PostPosted: Thu Jan 13, 2005 2:45 pm    Post subject: GF19: Emerge fails to unmerge a package. Reply with quote

Navigation: [Gentoo Fundamentals] [Table of Contents]

Q: I have upgraded a package, but the old version fails to unmerge. What should I do if:

  • It complains about an unexpected EOF while looking for matching `"' in /var/db/pkg/<cat>/<pkg-version>/<pkg-version>.ebuild?

    A: This is caused by an old bug that replaced a " with, typically, ^A. Edit the ebuild in /var/db/... manually, or try running the (unmaintained) fixvardbentries script.
    See Unexpected EOF error on unmerging for more info and support.

  • It complains about a missing eclass?

    A: There are a number of ways to solve this:
    1. Grab the old eclass from CVS and put it in /usr/portage/eclass, before unmerging
    2. Edit the saved ebuild in /var/db/pkg/<cat>/<pkg-version>
    3. Remove the files installed by the ebuild by hand

Taken from this post in Cannot unmerge due to missing eclass. Note that if you're using ebuilds from an overlay, you have to be careful with eclasses from that overlay. Such eclasses must be kept as long as you have an ebuild from that overlay still installed.

  • I get a traceback?

    A: There is probably corruption in your package database. Check the files in /var/db/pkg/<cat>/<pkg-version> for null characters, carriage returns or whatever else that shouldn't be there. Chances are that re-emerging the old version and then upgrading solves the problem. More info can be found here, here and here, for instance.

    2005-08-08: Updated unexpected EOF section since fixvardbentries is no longer distributed with portage. --kallamej
    2006-06-29: Added note about eclasses and overlays. --kallamej
    2007-05-19: Added one more link to the traceback section and switched to post and topic tags. --kallamej

    _________________
    Please read our FAQ Forum, it answers many of your questions.
    irc: #gentoo-forums on irc.freenode.net
  • Back to top
    View user's profile Send private message
    Display posts from previous:   
    Reply to topic    Gentoo Forums Forum Index Frequently Asked Questions 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