public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Richard Freeman <rich0@gentoo.org>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Re: system broken?
Date: Tue, 09 Dec 2008 18:10:04 -0500	[thread overview]
Message-ID: <493EFACC.6090405@gentoo.org> (raw)
In-Reply-To: <40bb8d3b0812091105q2cc4d77ar8953e56baba1f1a@mail.gmail.com>

Martin Herrman wrote:
> Of course (using Gentoo now for a month or so), I don't have buildpkg
> in my config. So I used the manual on the URL you provided. It says
> that one should emerge portage first to get a correct system first.
> But when I do that, I get an error:
> 

Yeah - once you break it you get stuck with the pieces.  Somebody might 
have a clever solution for you - if not your best best might be to find 
a stage3 tarball off the distribution site and unpack it somewhere.  In 
there you'll find good (but stale) copies of anything you need.

If nothing else you can install the stage3 to a directory, then set up 
your environment per the install guide and chroot to it.  Then type 
"quickpkg portage" to generate a binary package in /var/packages (within 
the chroot).  You can then use that binary package to reinstall portage. 
  Best way to do that is with emerge -k, but if that doesn't work you 
can always just expand the tarball into your root.  I'd re-emerge 
portage just to clean up after doing that.

It could be something other than portage that is broken.  If you're 
still able to boot and generally function, it can't be anything too 
critical (like glibc).

I wouldn't jump the gun on my stage3 idea - somebody else might have a 
more clever and clean solution.  However, I've cleaned up after a few 
disasters via partial manual reinstalls.  And if you just quickpkg 
specific packages from your chroot you won't be overwriting files 
en-masse.  You could also update your chroot (emerge -uD system) and 
then you wouldn't need to worry too much about copying over files left 
and right.  Just be careful not to wipe out your /etc files (fstab and 
passwd come to mind) by copying them from the stage3.



  reply	other threads:[~2008-12-09 23:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-09 14:05 [gentoo-amd64] system broken? Martin Herrman
2008-12-09 16:47 ` [gentoo-amd64] " Duncan
2008-12-09 19:05   ` Martin Herrman
2008-12-09 23:10     ` Richard Freeman [this message]
2008-12-10  8:43     ` Duncan
2008-12-10 11:47       ` Martin Herrman
2008-12-10 12:09         ` Ben de Groot
2008-12-10 13:45           ` Duncan
2008-12-10 18:53             ` Martin Herrman
2008-12-10 22:23               ` Duncan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=493EFACC.6090405@gentoo.org \
    --to=rich0@gentoo.org \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox