Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
portage broke [SOLVED]
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
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Sun Oct 12, 2003 7:49 pm    Post subject: portage broke [SOLVED] Reply with quote

It seems (after reading about a million posts) that everyone is having problems with portage today. I also had problems after upgrading to the new r10.

My research on the forums revealed that portage r10 was unmasked today. It seems to have a bug though. It borked my system and made it impossible to emerge anything. I kept getting errors on everything including emerge sync. I followed the instructions from several posts to no avail.

I finally figured out that the "ebuild tree (/usr/portage)" also got borked so I deleted it and reinstalled portage from scratch.

This is what I did. Hope it helps someone else.

make sure your logged in as root.

1 ) "mv /etc/make.conf /etc/make.conf.old"
2 ) "mkdir /root/portage"
3 ) "cp /usr/portage/sys-apps/portage/* /root/portage/"
4 ) "ls /root/portage/files/" VERIFY that portage-rescue-INSERT-YOUR-PLATFORM-HERE.tbz2 exists
5 ) "emerge unmerge portage" - that's right you heard me.
6 ) "rm -R /usr/portage/*" - again, that's right you heard me.
7 ) "cd /root/portage/files"
8 ) "tar -xjpUvf portage-rescue-INSERT-YOUR-PLATFORM-HERE.tbz2 -C /"
9 ) "ls -l /usr/bin/l*" VERIFY that /usr/bin/python is a link to /usr/bin/python2.2 (portage r3 doesn't work with python 2.3=>)
10 ) "emerge sync" (warning this will take longer than normal - be patient)
11 ) "rm /etc/make.conf" "mv /etc/make.conf.old /etc/make.conf"

DO NOT emerge portage until the developers get r10 worked out.

I had this problem on 3 machines today. This was the only way I was able to restore portage on all 3 of them.

If anyone else has had success with this problem but solved it in a different way please post it here! Thanks.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
carpaski
Retired Dev
Retired Dev


Joined: 04 Aug 2002
Posts: 43
Location: Chicago, IL

PostPosted: Sun Oct 12, 2003 9:35 pm    Post subject: Reply with quote

Are you certain it was -r10 and not -r12? -r12 WAS ~arch,
package.mask'd, and broken. It's been fixed for a long
while now. Nothing is wrong with -r10 as far as I'm aware.

If you installed the broken -r12, then you probably have
quite a few .py's in /etc/.... Delete them.
_________________
Nicholas Jones <carpaski@gentoo.org>
Gentoo Linux Developer
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Sun Oct 12, 2003 10:08 pm    Post subject: Reply with quote

yes, I'm positive it was the r10. Last night when I saw the upgrade was available I upgraded 3 of my boxes. I had already read about the python 2.3 dependency for r12 prior to that so I paid special attention when I did the upgrade. I also tried to remerge r10 after I did the above fix and it hosed my box in the exact same way. I keep getting aux_get() errors when emerge sync is run (at the updating portage cache stage). and ALL attempts to emerge any other package after that results in ebuild corrupted errors. The fix I posted above worked the second time around as well.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Sun Oct 12, 2003 10:16 pm    Post subject: Reply with quote

emerge --info
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test6-mm4)
=================================================================
System uname: 2.6.0-test6-mm4 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache autoaddcvs sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="oss encode libg++ nls berkdb slang tetex nas gpm esd motif aalib acpi alsa -apm arts avi bonobo cdr crypt cups dga directfb doc dvd -dvdr -emacs fbcon flash foomaticdb gd gdbm ggi gif gnome gphoto2 gstreamer gtk gtk2 gtkhtml imlib java joystick jpeg kde lcms libgda libwww mad mikmod mmx mozilla mpeg mysql ncurses nocd oggvorbis opengl pam pcmcia ppds pdflib perl png pnp python qt quicktime radeon readline scanner sdl slp snmp spell sse ssl svga tcpd tiff truetype trusted usb videos wmf xosd xml xml2 -xmms xv zlib X x86"
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
carpaski
Retired Dev
Retired Dev


Joined: 04 Aug 2002
Posts: 43
Location: Chicago, IL

PostPosted: Mon Oct 13, 2003 5:26 am    Post subject: Reply with quote

For me to fix this bug... I need to know what it is first.
It's fairly unique, as far as I've seen.

So... if you want to help me fix this I need you to break
it again. Set PORT_LOGDIR first in make.conf, and create
that directory. Then use script to redirect all the output
to a file. And get me the /var/db/pkg/sys-apps/portage-*
directories before and after you merge it.
_________________
Nicholas Jones <carpaski@gentoo.org>
Gentoo Linux Developer
Back to top
View user's profile Send private message
emanresu
n00b
n00b


Joined: 12 Oct 2003
Posts: 9

PostPosted: Mon Oct 13, 2003 6:30 am    Post subject: Reply with quote

portage 2.0.49-r10 does seem to have problem like r12. Someone I know just got his portage broken with r10. There are several posts regarding the problem(s) with r13 too. What's up with portage lately? I think r3 was THE STABLE version... anyway to request r3 back?
Back to top
View user's profile Send private message
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Mon Oct 13, 2003 4:25 pm    Post subject: Reply with quote

:( Fuck it! All I did was emerge -u portage today and now my system is totally fucking borked. I was ok with r10 it was r13 that game me the probs. I just followed the instructions here. Now it is worse how can I use emerge when
Quote:
5 ) "emerge unmerge portage" - that's right you heard me."

I did do step 8
Quote:
8 ) "t8 ) "tar -xjpUvf portage-rescue-INSERT-YOUR-PLATFORM-HERE.tbz2ar

Now what do I do? This is a serious bug in Gentoo!
Back to top
View user's profile Send private message
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Mon Oct 13, 2003 4:32 pm    Post subject: Reply with quote

:( Fuck it! All I did was emerge -u portage today and now my system is totally fucking borked. I was ok with r10 it was r13 that game me the probs. I just followed the instructions here. Now it is worse how can I use emerge when
Quote:
5 ) "emerge unmerge portage" - that's right you heard me."


But of course when I try step 10 I get
Quote:
10 ) "emerge sync" (warning this will take longer than normal - be patient)

I get
/usr/bin/emerge: No such file or directory
I guess step 8
Quote:
8 ) "t8 ) "tar -xjpUvf portage-rescue-INSERT-YOUR-PLATFORM-HERE.tbz2ar

was supposed to reinstall emerge but it doesn't seem to have worked on my system
Now what do I do? This is a serious bug in Gentoo which I've been using since Feb! I really don't have time to reinstall the whole system.
Back to top
View user's profile Send private message
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Mon Oct 13, 2003 5:02 pm    Post subject: Reply with quote

Sorry about the duplicate posts. I've managed to fix it now! I had to unpack the portage-rescue-2.0.47-r10-x86.tbz2 without the -U option and then copy the files across to the relevant directories manually. Time consuming but it worked! All I have lost now is my original make.conf so all's well that ends well I suppose. I won't be upgrading portage again anytime soon however.
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Mon Oct 13, 2003 5:24 pm    Post subject: Reply with quote

carpaski wrote:
For me to fix this bug... I need to know what it is first.
It's fairly unique, as far as I've seen.

So... if you want to help me fix this I need you to break
it again. Set PORT_LOGDIR first in make.conf, and create
that directory. Then use script to redirect all the output
to a file. And get me the /var/db/pkg/sys-apps/portage-*
directories before and after you merge it.



I will do this tonight when I get home.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
carpaski
Retired Dev
Retired Dev


Joined: 04 Aug 2002
Posts: 43
Location: Chicago, IL

PostPosted: Mon Oct 13, 2003 8:36 pm    Post subject: Reply with quote

pinr: You forgot the '-C /', I'd guess.
_________________
Nicholas Jones <carpaski@gentoo.org>
Gentoo Linux Developer
Back to top
View user's profile Send private message
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Mon Oct 13, 2003 8:41 pm    Post subject: Reply with quote

carpaski wrote:
pinr: You forgot the '-C /', I'd guess.

What -c / and where?
Anyway I've fixed it all now and and am using r10 version of protage without probs r13 is the one that is borked on my system.
Back to top
View user's profile Send private message
pinr
Apprentice
Apprentice


Joined: 26 Jan 2003
Posts: 241
Location: Monterrey, Mexico

PostPosted: Mon Oct 13, 2003 8:58 pm    Post subject: Reply with quote

carpaski wrote:

So... if you want to help me fix this I need you to break
it again. Set PORT_LOGDIR first in make.conf, and create
that directory. Then use script to redirect all the output
to a file. And get me the /var/db/pkg/sys-apps/portage-*
directories before and after you merge it.

Well I just tried to re-borked in order to try and help fix it and would you believe it worked perfectly. very odd.
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Tue Oct 14, 2003 6:25 pm    Post subject: Reply with quote

carpaski,
first of all, thanks for your help. The problem, it seems, has gone away. When I emerged r10 this morning it worked great. No errors of any kind. I emerged a couple of things to double check and everything went smooth.
This annoyed me so I started checking it out and noticed that my rsync mirror last night was totalink.net. However, the mirror being used when portage broke was netnitco.net. Sooooo, I set my mirror to use netnitco.net and low and behold they are no longer online. The rsync starts and connects to netnitco (I get their MOTD) and then...Nothing it times out. Could their mirror have been corrupted somehow? This is the only thing in my setup that has changed since the problem began. At least the only thing that I am aware of.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
Major Konig ZX-12R
Tux's lil' helper
Tux's lil' helper


Joined: 03 Aug 2003
Posts: 76
Location: Socialist Republic of Washington State

PostPosted: Thu Oct 23, 2003 9:56 pm    Post subject: Reply with quote

Yeah, me too. 1.) Dell Inspiron, 2.) Dell 620, 3.) Ain't gonna touch the home machine yet.

Can anyone point me to an url that will tell me how to rebuild portage from scratch...( :oops: )
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