public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alexey Luchko <luchik@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] how to recover a portage that wasn't in use for very long time
Date: Tue, 12 May 2009 16:56:54 +0300	[thread overview]
Message-ID: <4A098026.80503@gmail.com> (raw)
In-Reply-To: <4A0755BB.8040006@gmail.com>

Nick Fortino wrote:
> Alexey Luchko wrote:
>> I have a gentoo installed, but I wasn't updating it since late 2007, I 
>> suppose.
>> Today I've run emerge --sync. It worked! It's great ;)
>>
>> But then I've got the following collision. Obviously, a portage update 
>> is required. But it is confused by dependencies:
>> colinux ~ # emerge portage --pretend --tree
>> These are the packages that would be merged, in reverse order:
>> [cut]
>> [blocks B     ] <sys-apps/portage-2.1.5 (is blocking 
>> app-shells/bash-3.2_p39)
>> colinux ~ #
>>
> I worked on this a couple months back to make it possible. The key is to 
> download binary packages of portage and a few dependencies to break the 
> block. Once portage is upgraded, it's smart enough to figure things out 
> now. An original script an discussion can be found at 
> http://blog.jolexa.net/2009/03/25/gentoo-tips-to-upgrade-your-really-old-installation/ 
> 
> A slightly modified version is here inline. I would recommend against 
> running it as a script, but rather do the steps individually (also, if 
> you aren't running amd64, be sure to change the architecture of the 
> binaries you are downloading).
> 
> Read this line as typical warnings of your mileage may very etc.

I decided to try this way first.

I've got a problem on the way and hopefully restored the system.
The problem appeared after downloading and extracting new bash:
wget 
http://tinderbox.dev.gentoo.org/default-linux/x86/app-shells/bash-3.2_p39.tbz2
tar xfpj root/All/bash-3.2_p39.tbz2

Every next execution of bash (and sh also) gave me:
colinux ~ # sh
sh: /lib/libc.so.6: version `GLIBC_2.4' not found (required by sh)

I didn't get through it, but rather restored the partition from backup.
By the way, does one know a windows tool, that can write a partition directly?

If one is interested, I managed to get this way:
I had the backup on the windows host system.
I replaced my root's shell with /usr/bin/python and wrote a script that did 
what "cat > /dev/cobd/4" would do if it was available.
The I restored the system running the following:
$ gzip -d < /z/inst/colinux/colinux20090512.img.gz | ssh root@colinux -C 
'execfile("cat.py"); cat("/dev/cobd/4")'

It's really funny, but writing these lines I've understand that I had mounted 
host file system, and I could have restored the backup through it.


Have a nice time ;)
Alexey.



  reply	other threads:[~2009-05-12 13:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-10  0:58 [gentoo-user] how to recover a portage that wasn't in use for very long time Alexey Luchko
2009-05-10  1:54 ` Mike Kazantsev
2009-05-10  1:56   ` Mike Kazantsev
2009-05-10 12:20 ` Stroller
2009-05-10 17:31 ` Alan McKinnon
2009-05-10 19:25   ` [gentoo-user] " Francesco Talamona
2009-05-10 22:31 ` [gentoo-user] " Nick Fortino
2009-05-12 13:56   ` Alexey Luchko [this message]
2009-05-13 10:03 ` [gentoo-user] " Alexey Luchko
2009-05-13 10:17   ` Alan McKinnon
2009-05-13 14:16     ` Stroller
2009-05-13 14:27       ` Alan McKinnon
2009-05-13 14:49         ` Stroller
2009-05-13 15:00           ` Alan McKinnon
2009-05-13 15:14             ` Paul Hartman
2009-05-13 15:30               ` Graham Murray
2009-05-13 15:44                 ` Paul Hartman
2009-05-13 16:55                 ` Neil Bothwick
2009-05-13 14:33   ` Stroller

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=4A098026.80503@gmail.com \
    --to=luchik@gmail.com \
    --cc=gentoo-user@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