Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Resolved!] Cannot emerge portage
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
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Tue Mar 25, 2008 12:36 am    Post subject: [Resolved!] Cannot emerge portage Reply with quote

Updating and ancient system...


openwall etc # emerge --version
Portage 2.0.51.22-r2 (default-linux/x86/2007.0, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.9-gentoo-r4 i686)
openwall etc # emerge portage
Calculating dependencies -
emerge: there are no ebuilds to satisfy "sys-libs/db:4.4".

openwall etc #


Can somebody point me in the right direction?

Thanks.
Erich


Last edited by ewtrowbr on Thu Mar 27, 2008 5:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Tue Mar 25, 2008 12:46 am    Post subject: Reply with quote

Try installing a newer version of portage manually. It seems that you have a version from before slotted ebuilds....

poly-p man
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Mar 25, 2008 1:34 am    Post subject: Reply with quote

Well, how long this installation wasn't update ?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9237
Location: beyond the rim

PostPosted: Tue Mar 25, 2008 6:14 am    Post subject: Reply with quote

d2_racing wrote:
Well, how long this installation wasn't update ?

over two years ...
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Mar 25, 2008 11:48 am    Post subject: Reply with quote

Yeah, you will have fun I think.
Back to top
View user's profile Send private message
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Wed Mar 26, 2008 1:16 am    Post subject: Reply with quote

Thanks for the interest and the lulz. I followed the instructions for manually installing portage in the howto at http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml , but it's not working. I am way out of my league at this point.

can somebody offer some assistance?

Code:
openwall portage-2.1.4 # pwd
/root/portage-recover/portage-2.1.4
openwall portage-2.1.4 # ln -s ../lib/portage/bin/emerge /usr/bin/emerge
ln: `/usr/bin/emerge': File exists
openwall portage-2.1.4 # mv /usr/bin/emerge /usr/bin/emerge.old
openwall portage-2.1.4 # ln -s ../lib/portage/bin/emerge /usr/bin/emerge
openwall portage-2.1.4 # emerge --metadata
  File "/usr/bin/emerge", line 488
    result = list(x for x in matches if portage.cpv_getkey(x) == cp)
                      ^
SyntaxError: invalid syntax
openwall portage-2.1.4 # emerge sys-apps/portage
  File "/usr/bin/emerge", line 488
    result = list(x for x in matches if portage.cpv_getkey(x) == cp)
                      ^
SyntaxError: invalid syntax
openwall portage-2.1.4 #


thanks,
Erich
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9237
Location: beyond the rim

PostPosted: Wed Mar 26, 2008 10:15 am    Post subject: Reply with quote

ewtrowbr wrote:
Thanks for the interest and the lulz. I followed the instructions for manually installing portage in the howto at http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml , but it's not working. I am way out of my league at this point.

can somebody offer some assistance?

Code:
openwall portage-2.1.4 # pwd
/root/portage-recover/portage-2.1.4
openwall portage-2.1.4 # ln -s ../lib/portage/bin/emerge /usr/bin/emerge
ln: `/usr/bin/emerge': File exists
openwall portage-2.1.4 # mv /usr/bin/emerge /usr/bin/emerge.old
openwall portage-2.1.4 # ln -s ../lib/portage/bin/emerge /usr/bin/emerge
openwall portage-2.1.4 # emerge --metadata
  File "/usr/bin/emerge", line 488
    result = list(x for x in matches if portage.cpv_getkey(x) == cp)
                      ^
SyntaxError: invalid syntax
openwall portage-2.1.4 # emerge sys-apps/portage
  File "/usr/bin/emerge", line 488
    result = list(x for x in matches if portage.cpv_getkey(x) == cp)
                      ^
SyntaxError: invalid syntax
openwall portage-2.1.4 #


thanks,
Erich

Your python is too old, make sure you've read the python compability notes in the howto (they're there for a reason).
Back to top
View user's profile Send private message
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Wed Mar 26, 2008 7:41 pm    Post subject: Reply with quote

Thanks for the help. I got a bit further this time... I appear to be in dependency hell, reminding be of my Redhat days...

when I try to emerge portage following my manual upgrade to 2.1.1, I get a strange error with my python dependencies. I assume that unmerging my current python version is not the answer... The python-updater package is blocked by my existing python version.

Code:

openwall ewtrowbr # emerge -p portage

These are the packages that would be merged, in order:

Calculating dependencies... done!
[blocks B     ] <dev-lang/python-2.3.6-r2 (is blocking app-admin/python-updater-0.2)

[ebuild  NS   ] dev-lang/python-2.4.4-r6  USE="berkdb gdbm ipv6 ncurses readline ssl -bootstrap -build -doc -examples -nocxx -nothreads -tk -ucs2"
[ebuild  N    ] app-admin/python-updater-0.2
[ebuild     U ] app-shells/bash-3.2_p17-r1 [3.0-r12] USE="-afs% -plugins% -vanilla%"
[ebuild     U ] sys-apps/portage-2.1.4.4 [2.0.51.22-r2] USE="-doc% -epydoc%" LINGUAS="-pl%"
*** Portage will stop merging at this point and reload itself,
    then resume the merge.
[ebuild     U ] net-misc/rsync-2.6.9-r5 [2.6.0] USE="acl%* ipv6%* -xinetd%"
[ebuild  N    ] dev-libs/libxml2-2.6.30-r1  USE="ipv6 python readline -bootstrap -build -debug -doc -test"
[ebuild  N    ] virtual/libiconv-0
[ebuild     U ] sys-devel/gettext-0.17 [0.14.4] USE="acl%* openmp%* -nocxx%"
[ebuild     U ] sys-apps/coreutils-6.9-r1 [5.2.1] USE="-xattr%"
[ebuild  N    ] dev-python/pycrypto-2.0.1-r6  USE="-bindist -gmp -test"
openwall ewtrowbr #



I have reviewed the documentation at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked but don't see any obvious answer. Anybody ave a clue about this?

Thanks,
Erich
Back to top
View user's profile Send private message
OmSai
l33t
l33t


Joined: 30 Sep 2007
Posts: 605
Location: Manchester, CT, USA

PostPosted: Wed Mar 26, 2008 8:29 pm    Post subject: Reply with quote

ewtrowbr wrote:
I assume that unmerging my current python version is not the answer... The python-updater package is blocked by my existing python version.
Solution
_________________
Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it.
Back to top
View user's profile Send private message
ewtrowbr
Apprentice
Apprentice


Joined: 08 May 2004
Posts: 153
Location: Columbus, OH

PostPosted: Thu Mar 27, 2008 5:30 pm    Post subject: Reply with quote

Quote:
'Install python-updater with --nodeps, then install >=python-2.4, then install >=portage-2.1.2, then run python-updater, then update or remove python-2.3 (the order is very important)'


That was it. Thanks so much for the help! Now I have to do the same thing on 4 other systems.

Thanks again!

Erich
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