View previous topic :: View next topic |
Author |
Message |
wangxiaohu Apprentice
Joined: 15 Nov 2003 Posts: 248
|
Posted: Fri Nov 05, 2004 10:58 pm Post subject: Help! world file of portage is lost, need emerge everything. |
|
|
During an upgrade of portage (the program), it crashed and accidentally delete my /var directory. So the most important file for the portage, which is /var/lib/portage/world is lost.
Now I cannot do emerge -uD world anymore, unless I want to compile everything from scratch.
How to solve?
Here is my emerge --info
Quote: | $ emerge --info
Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r2 i686)
=================================================================
System uname: 2.6.9-gentoo-r2 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.5
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers: sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-Os -pipe -mmmx -msse -m3dnow -march=athlon-xp"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -pipe -mmmx -msse -m3dnow -march=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2 --quiet"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X acpi alsa avi bitmap-fonts cdr cjk cups eds esd fbcon foomaticdb freetype gif gmail gnome gpm gstreamer gtk gtk2 hal imap javascript jpeg libg++ libwww mmx mmx2 moznomail ncurses network nls nomalloccheck nptl nptlonly nvidia opengl operanom2 pdflib png ppds python quicktime sdl sse ssl truetype usb userlocales x86 xprint xv xvmc zlib"
|
|
|
Back to top |
|
|
embobo Guru
Joined: 19 May 2003 Posts: 311
|
Posted: Sat Nov 06, 2004 1:11 am Post subject: |
|
|
Everything in /var is gone? I think you may be SOL. Time to restore from backup. |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
|
Back to top |
|
|
wangxiaohu Apprentice
Joined: 15 Nov 2003 Posts: 248
|
Posted: Sun Nov 07, 2004 2:31 am Post subject: |
|
|
1. emerge --regen does not get the world file back
2. There is no backup.
What to do next? |
|
Back to top |
|
|
seank l33t
Joined: 08 Jul 2004 Posts: 686
|
|
Back to top |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Sun Nov 07, 2004 4:01 am Post subject: |
|
|
i've been trying to remember that command for half a week. thanks. |
|
Back to top |
|
|
wangxiaohu Apprentice
Joined: 15 Nov 2003 Posts: 248
|
Posted: Sun Nov 07, 2004 6:43 am Post subject: |
|
|
The problem is, I lost my /var totally....qpkg cannot find /var/log/emerge.log
I tested again, by creating ./var directory under /usr/portage, which is mounted from a reiserfs partition, and link -s this ./var to /var, that is, under root directory.
Then, I did an emerge sync, and it crashes saying cannot find /var directory. And the /var is totally deleted. Not the symbolic link, but the actual /usr/portage/var
This is a serious bug I think..... |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
Posted: Sun Nov 07, 2004 4:59 pm Post subject: |
|
|
Heres are my portage related /var dirs.
/var/db
/var/cache/edb/dep
/var/log/portage <---- optional You have to make this, particularly in your
case:wink: Then enable it in make.conf
If all this fails you could get a portage tarball. I belive this would make the directories for you again. Your real prob is that even doing this portage isnt going to know waht you have installed. _________________ An A-Z Index of the Linux BASH command line |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
|