Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unable to upgrade old system!
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
L. Vmbrius
n00b
n00b


Joined: 24 Jul 2007
Posts: 14
Location: 中国,西安

PostPosted: Fri Oct 28, 2011 12:00 pm    Post subject: [SOLVED] Unable to upgrade old system! Reply with quote

Hello! I have some issues with updates.
I can't update neither python nor portage because my system is too old and when I try to upgrade any of them, another blocks it:


Code:
juppiter ~ # emerge -av python

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

Calculating dependencies... done!
[ebuild  N    ] dev-libs/libffi-3.0.10  USE="-debug -static-libs -test" 736 kB
[ebuild  N    ] app-misc/mime-types-8  12 kB
[ebuild     U ] sys-devel/autoconf-wrapper-10-r1 [6] 0 kB
[ebuild  N    ] virtual/libffi-0  0 kB
[ebuild     U ] sys-devel/autoconf-2.68 [2.63] USE="-emacs" 1,350 kB
[ebuild  NS   ] dev-lang/python-2.7.2-r3 [2.5.4-r2] USE="gdbm ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -ipv6 -sqlite -tk -wininst" 11,494 kB
[blocks B     ] <sys-apps/portage-2.1.9 ("<sys-apps/portage-2.1.9" is blocking dev-lang/python-2.7.2-r3)

Total: 6 packages (2 upgrades, 3 new, 1 in new slot), Size of downloads: 13,591 kB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  ('ebuild', '/', 'dev-lang/python-2.7.2-r3', 'merge') pulled in by
    python



Code:
juppiter ~ # emerge -av portage

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

Calculating dependencies... done!
[ebuild  N    ] dev-libs/libffi-3.0.10  USE="-debug -static-libs -test" 736 kB
[ebuild  N    ] app-misc/mime-types-8  12 kB
[ebuild     U ] sys-devel/autoconf-wrapper-10-r1 [6] 0 kB
[ebuild  N    ] virtual/libffi-0  0 kB
[ebuild     U ] sys-devel/autoconf-2.68 [2.63] USE="-emacs" 1,350 kB
[ebuild  NS   ] dev-lang/python-2.7.2-r3 [2.5.4-r2] USE="gdbm ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -ipv6 -sqlite -tk -wininst" 11,494 kB
[ebuild     U ] sys-apps/portage-2.1.10.11 [2.1.6.13] USE="(ipc%*) less%* -build -doc -epydoc -python2% -python3% (-selinux)" LINGUAS="-pl" 830 kB
*** Portage will stop merging at this point and reload itself,
    then resume the merge.
[blocks B     ] <sys-apps/portage-2.1.9 ("<sys-apps/portage-2.1.9" is blocking dev-lang/python-2.7.2-r3)

Total: 7 packages (3 upgrades, 3 new, 1 in new slot), Size of downloads: 14,421 kB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  ('ebuild', '/', 'dev-lang/python-2.7.2-r3', 'merge') pulled in by
    dev-lang/python:2.7 required by ('ebuild', '/', 'sys-apps/portage-2.1.10.11', 'merge')


How one should resolve that? 8O


Last edited by L. Vmbrius on Fri Oct 28, 2011 12:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
L. Vmbrius
n00b
n00b


Joined: 24 Jul 2007
Posts: 14
Location: 中国,西安

PostPosted: Fri Oct 28, 2011 12:49 pm    Post subject: Reply with quote

Code:
juppiter ~ # emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/server, gcc-4.3.2, unavailable, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Celeron-R-_D_CPU_420_@_1.60GHz-with-glibc2.2.5
Timestamp of tree: Fri, 28 Oct 2011 07:30:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r4
dev-util/pkgconfig:  0.23
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.2-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81
sys-kernel/linux-headers: 2.6.27-r2
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dedicated dri fortran gdbm gpm iconv mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre pppd readline session snmp sse sse2 ssl sysfs tcpd truetype unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Fri Oct 28, 2011 12:49 pm    Post subject: Reply with quote

It's described in detail in older threads, but IIRC, you need to do it in smaller steps - try emerging portage-2.1.6.13 first, then try updating python, till you get to 2.6 slot, then update portage again.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3413

PostPosted: Fri Oct 28, 2011 12:50 pm    Post subject: Reply with quote

There are 2 ways to do this:

1 - Give up and reinstall.

2 - Bring it up to date in stages.

Since #1 is simple, and of no interest for discussion, I'll go a little further into #2. This topic comes up every now and then, so if you look you'll be able to find other threads on the same thing.

Basically you're peeling the onion, and you've found the first layer with portage and python. Focus on just those two, for the moment. You're going to have to mask some packages to a back-level. In this case, you've got python-2.5.4-r2 installed, and portage-2.1.6.13. I've got both python and portage ebuilds up, for the moment, and from what I can see...

portage-2.1.6.13 won't build with python-2.6.6 or newer.
portage-2.1.9.42 doesn't appear to have any significant python dependencies, other than python-2.x or python-3.x.
python-2.6.6-r2 or newer needs portage-2.1.9 or newer.

I would say that at this point you need to add ">=dev-lang/python-2.6.0" and ">=sys-apps/portage-2.1.10.0" to "/etc/portage/package.mask" and then "emerge -av portage". That should get you successfully to portage-2.1.9.42, which is the prerequisite for newer python versions. At that point you should be able to remove the python mask mentioned above, which will let you upgrade python to current. Then remove the portage mask mentioned above, which will let you upgrade portage to current.

This isn't the whole story. You will no doubt run into other problems, similar to this, and the solutions will be similar. I will also add that there will be at least one gcc upgrade and at least one Xorg upgrade in there, too. Since both of those require recompiling other stuff I would suggest starting there.

My suggestion, assuming portage and python get current as easily as I've suggested that they might, (No guarantee that other blockers won't show up in the steps that I've outlined.) would be to upgrade gcc next, using the gcc upgrade guide. That way you can combine the processes of recompiling your system/world and upgrading the system. As you "emerge -e system/world" you'll pull in the upgrades. You won't either recompile old packages with the new gcc, then compile updated packages with the new gcc, or compile new packages with the old gcc, then recompile them with the new gcc, The fact that you "emerge -e system" followed by "emerge -e world" should take care of the xorg-server upgrade properly, which requires recompiling all drivers in the process. Since xorg-server is part of "system" when you rebuild "world" that will make sure that all of the drivers are recompiled.

As I stated previously, other blockers will show up, and will need to be handled by temporary masking, as with portage and python. You just need to select intermediate compatible levels of both. Sometimes you may need several steps to "come to current" instead of the "simple" sequence for portage and python.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
L. Vmbrius
n00b
n00b


Joined: 24 Jul 2007
Posts: 14
Location: 中国,西安

PostPosted: Fri Oct 28, 2011 12:57 pm    Post subject: Reply with quote

Thank you for deep answer, also it seems I've found solution there, so that issue solved:)

I've done it slightly differently by merging python 2.6 with -O key. Whatever, it works:)
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