Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
portage broken after replacing main packages with stage 3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
quelcom
Guru
Guru


Joined: 16 Mar 2004
Posts: 306
Location: Catalonia

PostPosted: Wed Oct 27, 2004 8:20 am    Post subject: portage broken after replacing main packages with stage 3 Reply with quote

I was installing Cedega when for error I did untar the files inside my home folder. In my ~ folder was created the cedega files.
Thereby I got a new usr in my home with the subfolders bin (the cedega binari) and share (the cedega shared components) and doc (cedega doc files).


Well, it's just an error because I should untar in the / (I don't pick cd / ) and I must went to delete this fake folder.

For accident I pick rm -rf /usr instead of rm -rf usr in my home folder. Owwww, I cancelled fastly but I deleted some binaries and shared files. rm is very fast. :?

I tried to run eterm (no binary found), xmms (no binary found)... Owww, I thought: emerge rocks! #emerge xmms (emerge: no binary found) :? :?

I got a problem I got a problem... I pick up the installation CD, I booted with it, mounted the root directory and then tar -xvjpf /mnt/cdrom/stages/stage3....tbz2 :oops:

Well, after I extracted the stage3 I edited the fstab and I booted my distro (luckily my boot is not afected).
I got some errors in booting but finally I could log on with root. :D

Once again I got emerge (untar the stage3) and when I would start the mass emerging the problems began...

I want to emerge orpheus, and in the configure I got an error:

Code:
checking for C compiler default output... configure: error installation or configuration problem: C compiler cannot create executables.


I want to emerge irssi and the error was:

Code:
g++: relocation error: g++: symbol __guard, version GLIBC_2.3.2 not defined in file libc.so.6 with link time reference.


This errors repeats when I want to emerge others packages.

I think that the error was when I untar the stage 3; because when I restored esential bins I untared too main packages, such as gcc, perl, python...

For example: emerge -s perl said that I got installed the version 5.8.2, available to update 5.8.4, but in the stage 3 I extracted the 5.8.0

emerge -s gcc said that I got installed 3.3.2, but in the stage 3 I extracted the 3.2.3...

Same with python, binutils...

In fact, portage seems not to be updated after the stage 3.

I deleted the /var/tmp/portage and /var/tmp/portage-pkg files, and not solved.

I tried to emerge the packages found in http://dev.gentoo.org/~avenj/bins/, but I when I emerged binutils the vital packages (gcc, perl, binutils...) want to be updated, but If I let it update portage wants to delet this packages

Others packages such as gcc or glibc needs a patches that I couldn't download (I can't install wvdial).

My data that is ubicated in my home is all ok. And the only problem is that I can't emerge packages.

I tried to emerge -C package and works perfectly.

PD: My Gentoo version is the 1.4

Thx
Back to top
View user's profile Send private message
leifbk
Guru
Guru


Joined: 05 Jan 2004
Posts: 415
Location: Bærum, Norway

PostPosted: Wed Oct 27, 2004 8:27 am    Post subject: Reply with quote

Perhaps you should try to run the bootstrap script from Stage 1, as it will rebuild all the basic tools. Afterwards, I think it will be prudent to run a emerge -e world.
_________________
Grumpy old man
Back to top
View user's profile Send private message
quelcom
Guru
Guru


Joined: 16 Mar 2004
Posts: 306
Location: Catalonia

PostPosted: Thu Oct 28, 2004 9:21 pm    Post subject: Reply with quote

Mmmm... this is very strange:

I made emerge -ep system and this is the output

Code:
!!! Invalid db entry: /var/db/pkg/x11-libs/-MERGING-gtk+-2.2.4-r1
!!! Invalid db entry: /var/db/pkg/x11-libs/-MERGING-gtk+-2.2.4-r1
!!! Invalid db entry: /var/db/pkg/x11-libs/-MERGING-gtk+-2.2.4-r1
........................................
.....................................................................................................................................................................................................

These are the packages that I would merge, in order:

Calculating system dependencies   !!! Invalid db entry: /var/db/pkg/x11-libs/-MERGING-gtk+-2.2.4-r1
 ...done!
[ebuild  N    ] sys-devel/patch-2.5.9 
[ebuild  N    ] sys-devel/gnuconfig-20040214 
[ebuild  N    ] sys-libs/ncurses-5.4-r5 
[ebuild  N    ] sys-devel/gettext-0.12.1-r2 
[ebuild  N    ] sys-apps/sed-4.0.9 
[ebuild  N    ] sys-apps/texinfo-4.6 
[ebuild  N    ] sys-apps/groff-1.18.1-r4 
[ebuild  N    ] sys-apps/cronbase-0.3.1 
[ebuild  N    ] sys-apps/man-1.5m-r2 
[ebuild  N    ] sys-devel/binutils-2.14.90.0.8-r1 
[ebuild  N    ] sys-libs/zlib-1.2.1-r3 
[ebuild  N    ] dev-python/python-fchksum-1.7.1 
[ebuild  N    ] app-shells/bash-2.05b-r9 
[ebuild  N    ] sys-libs/readline-4.3-r5 
[ebuild  N    ] sys-devel/flex-2.5.4a-r5 
[ebuild  N    ] app-arch/bzip2-1.0.2-r3 
[ebuild  N    ] sys-devel/automake-1.8.5-r1 
[ebuild  N    ] sys-apps/help2man-1.29 
[ebuild  N    ] sys-apps/coreutils-5.2.1 
[ebuild  N    ] sys-apps/debianutils-1.16.7-r4 
[ebuild  N    ] sys-apps/portage-2.0.50-r11 
*** Please update portage to the above version before proceeding.
    Failure to do so may result in failed or improper merges.
    A simple 'emerge -u portage' is sufficient.

[ebuild  N    ] sys-devel/bc-1.06-r5 
[ebuild  N    ] sys-apps/diffutils-2.8.4-r4 
[ebuild  N    ] dev-libs/openssl-0.9.7d-r1 
[ebuild  N    ] dev-lang/tcl-8.4.6 
[ebuild  N    ] sys-libs/pam-0.77 
[ebuild  N    ] sys-apps/miscfiles-1.3-r1 
[ebuild  N    ] sys-devel/gcc-config-1.3.6-r3 
[ebuild  N    ] sys-libs/cracklib-2.7-r9 
[ebuild  N    ] sys-apps/shadow-4.0.4.1-r4 
[ebuild  N    ] sys-apps/pam-login-3.14 
[ebuild  N    ] sys-apps/grep-2.5.1-r6 
[ebuild  N    ] app-crypt/hashalot-0.3 
[ebuild  N    ] sys-apps/util-linux-2.12-r4 
[ebuild  N    ] media-libs/libpng-1.2.7 
[ebuild  N    ] media-libs/freetype-2.1.5-r1 
[ebuild  N    ] app-arch/unzip-5.50-r2 
[ebuild  N    ] x11-base/opengl-update-1.7.2 
[ebuild  N    ] dev-libs/expat-1.95.7 
[ebuild  N    ] x11-misc/ttmkfdir-3.0.9-r2 
[blocks B     ] x11-base/xorg-x11 (from pkg x11-base/xfree-4.3.0-r7)
[ebuild  N    ] media-libs/fontconfig-2.2.2 
[ebuild  N    ] app-arch/cabextract-1.0 
[ebuild  N    ] x11-base/xfree-4.3.0-r7 
[ebuild  N    ] dev-lang/tk-8.4.6-r1 
[ebuild  N    ] sys-libs/db-1.85-r1 
[ebuild  N    ] sys-libs/gdbm-1.8.0-r5 
[ebuild  N    ] dev-lang/python-2.3.4 
[ebuild  N    ] dev-java/java-config-1.2.10 
[ebuild  N    ] dev-java/blackdown-jdk-1.4.1 
[ebuild  N    ] sys-libs/db-4.1.25_p1-r3 
[ebuild  N    ] sys-devel/libperl-5.8.4-r1 
[ebuild  N    ] dev-lang/perl-5.8.4-r1 
[ebuild  N    ] sys-devel/autoconf-2.59-r5 
[ebuild  N    ] sys-devel/libtool-1.5.2-r5 
[ebuild  N    ] sys-devel/m4-1.4.1 
[ebuild  N    ] sys-devel/bison-1.875 
[ebuild  N    ] sys-devel/gcc-3.3.4-r1 
[ebuild  N    ] sys-kernel/linux-headers-2.4.21-r1 
[ebuild  N    ] sys-libs/glibc-2.3.4.20040808-r1 
[ebuild  N    ] sys-apps/gawk-3.1.3-r1 
[blocks B     ] sys-apps/sysvinit (from pkg sys-apps/baselayout-1.9.4-r3)
[ebuild  N    ] sys-apps/baselayout-1.9.4-r3 
[ebuild  N    ] sys-apps/modutils-2.4.25 
[ebuild  N    ] app-shells/sash-3.7 
[ebuild  N    ] sys-libs/slang-1.4.9-r1 
[ebuild  N    ] app-editors/nano-1.3.4 
[ebuild  N    ] net-misc/dhcpcd-1.3.22_p4-r5 
[ebuild  N    ] net-misc/iputils-021109-r3 
[ebuild  N    ] dev-libs/popt-1.7-r1 
[ebuild  N    ] net-misc/rsync-2.6.0-r3 
[ebuild  N    ] net-misc/wget-1.9-r2 
[ebuild  N    ] sys-apps/kbd-1.12-r2 
[ebuild  N    ] app-arch/cpio-2.5 
[ebuild  N    ] sys-fs/e2fsprogs-1.35 
[ebuild  N    ] sys-apps/ed-0.2-r4 
[ebuild  N    ] sys-apps/fbset-2.1 
[ebuild  N    ] sys-apps/file-4.10 
[ebuild  N    ] sys-apps/findutils-4.1.20-r1 
[ebuild  N    ] sys-apps/slocate-2.7-r5 
[ebuild  N    ] app-arch/gzip-1.3.5-r1 
[ebuild  N    ] sys-apps/hdparm-5.7-r1 
[ebuild  N    ] sys-apps/less-382-r2 
[ebuild  N    ] sys-apps/man-pages-1.67 
[ebuild  N    ] sys-apps/net-tools-1.60-r8 
[ebuild  N    ] sys-apps/procps-3.2.3-r1 
[ebuild  N    ] sys-apps/psmisc-21.4 
[ebuild  N    ] sys-apps/setserial-2.17-r2 
[ebuild  N    ] app-arch/sharutils-4.2.1-r10 
[ebuild  N    ] app-arch/ncompress-4.2.4-r1 
[ebuild  N    ] app-arch/tar-1.14 
[ebuild  N    ] sys-apps/which-2.16 
[ebuild  N    ] sys-devel/bin86-0.16.0 
[ebuild  N    ] sys-devel/make-3.80-r1 
[ebuild  N    ] sys-libs/pwdb-0.62 
[ebuild  N    ] sys-apps/tcp-wrappers-7.6-r8 
[ebuild  N    ] net-misc/openssh-3.8.1_p1-r1 
[ebuild  N    ] sys-fs/devfsd-1.3.25-r8 


Why portage said that those are new packages? I got them installed (first in my installation, later when I untared the stage 3).

For exemple this is the output of emerge -s wget

Code:
!!! Invalid db entry: /var/db/pkg/x11-libs/-MERGING-gtk+-2.2.4-r1
!!! Invalid db entry: /var/db/pkg/x11-libs/-MERGING-gtk+-2.2.4-r1
!!! Invalid db entry: /var/db/pkg/x11-libs/-MERGING-gtk+-2.2.4-r1
........................................
.....................................................................................................................................................................................................
Searching...     
[ Results for search key : wget ]
[ Applications found : 3 ]
 
*  app-emacs/emacs-wget
      Latest version available: 0.4.2
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 27 kB
      Homepage:    http://pop-club.hp.infoseek.co.jp/emacs/emacs-wget/
      Description: Wget interface for Emacs

*  net-misc/gwget
      Latest version available: 0.6
      Latest version installed: 0.6
      Size of downloaded files: 304 kB
      Homepage:    http://gwget.sourceforge.net/
      Description: GTK2 WGet Frontend

*  net-misc/wget
      Latest version available: 1.9-r2
      Latest version installed: 1.8.2-r2
      Size of downloaded files: 1,309 kB
      Homepage:    http://wget.sunsite.dk/
      Description: Network utility to retrieve files from the WWW



I got installed wget, but the emerge -ep system no.

I'm really very sad... Tomorrow I'll put a wvdial binary (from another machine) to my box and I'll try to connect to the net.

My intention is emerge system and pray...

Any better idea??

Thanx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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