Forums

Skip to content

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

[SOLVED] Fixing a broken install

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
pygoscelis
Guru
Guru
Posts: 421
Joined: Sat Jun 07, 2003 8:20 pm

[SOLVED] Fixing a broken install

  • Quote

Post by pygoscelis » Tue Mar 24, 2026 6:51 pm

After lots of package.accept_keywords and package.use customizations and a few careless `emerge --nodeps` I have a very broken system. Cannot emerge -avuD @world, cannot emerge @preserved-rebuild because of numerous slot conflicts. How do I untangle the mess? I'm willing to undo the customizations for now.

Edit: the solution was to remove all accepted keywords and merge from the empty tree.
Last edited by pygoscelis on Thu Mar 26, 2026 7:38 pm, edited 1 time in total.
Top
freke
Veteran
Veteran
Posts: 1136
Joined: Thu Jan 23, 2003 3:17 pm
Location: Somewhere in Denmark
Contact:
Contact freke
Website

Re: Fixing a broken install

  • Quote

Post by freke » Tue Mar 24, 2026 6:59 pm

pygoscelis wrote:After lots of package.accept_keywords and package.use customizations and a few careless `emerge --nodeps` I have a very broken system. Cannot emerge -avuD @world, cannot emerge @preserved-rebuild because of numerous slot conflicts. How do I untangle the mess? I'm willing to undo the customizations for now.
Not saying I'd be able to help - but without any actual information/output anyone would just be blindly guessing...
Top
pygoscelis
Guru
Guru
Posts: 421
Joined: Sat Jun 07, 2003 8:20 pm

Re: Fixing a broken install

  • Quote

Post by pygoscelis » Tue Mar 24, 2026 7:48 pm

freke wrote:but without any actual information/output anyone would just be blindly guessing...
I don't think a huge list of slot conflicts or my portage info would be of any use to anyone. I am interested in a general procedure. Something like "remove all /etc/portage/package.*; remove all use flags from /etc/make.conf; run emerge -pg --emptytree --backtrack=0 @world". Something along these lines. Not that these specific instructions are correct (I'm trying to do something like that right now).
Top
pietinger
Administrator
Administrator
Posts: 6630
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

Re: Fixing a broken install

  • Quote

Post by pietinger » Tue Mar 24, 2026 8:58 pm

pygoscelis wrote:[...] I am interested in a general procedure. Something like "remove all /etc/portage/package.*; remove all use flags from /etc/make.conf; run emerge -pg --emptytree --backtrack=0 @world". Something along these lines. Not that these specific instructions are correct (I'm trying to do something like that right now).
pygoscelis,

1. Check with "emerge -cp" if there is something to clean
2. Check your /var/lib/portage/world file with this script (please read the entire thread):
https://forums.gentoo.org/viewtopic-t-1176922.html
(and do of course again an "emerge -c" if you had some packages removed with "emerge -c PCKNAME")
3. Check again with "emerge -uUDvp @world"

If still problems, go on with:
4. For now, leave your USE flags in the USE= section of make.conf unchanged, but ...
5. Add temporary in you make.conf a line allowing most licences: ACCEPT_LICENSE="* -@EULA" (because of ->)
6. MOVE (so you still have them) all /etc/portage/package.*/* files to a safe place
7. Check again with "emerge -uUDvp @world" ... and now copy back some package-specific Use-flags into ./package.use

If you have still problems, then there are only 2 choices:
Either you are able to solve it ... or get help here (or IRC.)
https://wiki.gentoo.org/wiki/User:Pietinger --> New at Gentoo
Top
Hu
Administrator
Administrator
Posts: 24398
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Mar 24, 2026 9:02 pm

OP created [topic=1177163]Emerging from a clean slate, stil have conflicts.[/topic] to pursue this, too. Some responses may end up there instead of here. OP: splitting a problem across multiple threads is discouraged, and may lead to the threads being merged.
Top
Post Reply

5 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