View previous topic :: View next topic |
Author |
Message |
Wizumwalt Guru
Joined: 20 Aug 2006 Posts: 547
|
Posted: Tue Feb 15, 2011 8:03 pm Post subject: updating old gentoo box |
|
|
Trying to update a gentoo box several years old, and following this link ... Manually fixing broken portage installation ... http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
But get the following error.
Code: |
root@local portage-2.1.6 # pwd
/root/portage-recover/portage-2.1.6
root@local portage-2.1.6 # ./bin/emerge
File "./bin/emerge", line 19
except PermissionDenied, e:
^
SyntaxError: invalid syntax
|
Any ideas? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Feb 15, 2011 8:11 pm Post subject: |
|
|
Wizumwalt,
This thread is the closest we have to a guide.
Please post the output of emerge --sync so we can see just how old your system is. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Wizumwalt Guru
Joined: 20 Aug 2006 Posts: 547
|
Posted: Tue Feb 15, 2011 8:21 pm Post subject: |
|
|
I'm now running portage from a recovery install in my root home dir, but havent' been able to get anything working. Any advice, thanks.
Code: |
# pwd
/root/portage-recover/portage-2.1.6
# ./bin/emerge --info | more
Portage 12175-svn (default/linux/x86/10.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r7-i686-Intel-R-_Pentium-R-_4_CPU_2.00GHz-with-glibc2.0
Timestamp of tree: Mon, 14 Feb 2011 01:45:01 +0000
app-shells/bash: 3.2_p17-r1
dev-lang/python: 2.4.6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.65-r1
sys-devel/automake: 1.10.1, 1.11.1
sys-devel/binutils: 2.18-r1
sys-devel/gcc: 4.1.2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 2.2.6b
sys-devel/make: 3.81
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo http://mirror.datapipe.net/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.namerica.gentoo.org/gentoo-portage"
USE="X acl alsa avahi berkdb bzip2 cairo cdx cli cracklib crypt cups cxx dbus dri dvd fortran gdbm gnome gpm gtk hal iconv imlib ipv6 jpeg jpg kde modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl png pppd python qt3 qt4 readline session ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" 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
|
Code: |
# ./bin/emerge sys-apps portage
* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
emerge: there are no ebuilds to satisfy "sys-apps".
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Feb 15, 2011 9:57 pm Post subject: |
|
|
Wizumwalt,
Code: | # ./bin/emerge sys-apps portage | is missing a /
might work _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Wizumwalt Guru
Joined: 20 Aug 2006 Posts: 547
|
Posted: Tue Feb 15, 2011 10:49 pm Post subject: |
|
|
Can't seem to get past this ....
Code: |
# ./bin/emerge sys-apps/portage
* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
[ebuild U ] sys-apps/sandbox-2.4 [1.2.18.1-r2] USE="(-multilib)"
[ebuild NS ] dev-lang/python-2.6.6-r1 [2.4.6] USE="gdbm ipv6 ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -sqlite -tk -wininst"
[ebuild U ] sys-apps/portage-2.1.9.25 [2.1.6.11] USE="(ipc%*) -python3%"
*** 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.6.6-r1)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
root@local portage-2.1.6 # ./bin/emerge -C sys-apps/portage-2.1.9
--- Couldn't find 'sys-apps/portage-2.1.9' to unmerge.
>>> No packages selected for removal by unmerge
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Feb 15, 2011 11:36 pm Post subject: |
|
|
Wizumwalt,
Code: | [blocks B ] <sys-apps/portage-2.1.9 ("<sys-apps/portage-2.1.9" is blocking dev-lang/python-2.6.6-r1) |
Means that you need sys-apps/portage-2.1.9 to get python-2.6.6-r1. You seem to have portage-2.1.6.
The tree contains the follwoing portage versions Code: | -rw-r--r-- 1 root root 9886 Oct 13 02:30 portage-2.1.6.13.ebuild
-rw-r--r-- 1 root root 8538 Oct 13 02:30 portage-2.1.6.7.ebuild
-rw-r--r-- 1 root root 9340 Feb 6 20:01 portage-2.1.8.3.ebuild
-rw-r--r-- 1 root root 9704 Feb 6 20:01 portage-2.1.9.25.ebuild
-rw-r--r-- 1 root root 9716 Feb 6 20:01 portage-2.1.9.35.ebuild
-rw-r--r-- 1 root root 10108 Feb 8 23:00 portage-2.1.9.39.ebuild |
and the following python ebuilds Code: | -rw-r--r-- 1 root root 9296 Dec 16 16:14 python-2.4.6.ebuild
-rw-r--r-- 1 root root 9646 Dec 16 16:14 python-2.5.4-r4.ebuild
-rw-r--r-- 1 root root 9444 Dec 6 02:56 python-2.6.5-r3.ebuild
-rw-r--r-- 1 root root 9625 Jan 6 19:31 python-2.6.6-r1.ebuild | There are more of both, but these are the ones that concern us now.
Try to emerge portage at the highest version you can. Thats probably 2.1.8.3
the command is Code: | emerge -1 =sys-apps/portage-2.1.8.3 | The -1 means --oneshot, so portage is not added to your world file.
If that works, try Code: | emerge -1 =dev-lang/python-2.5.4-r4 |
If that works, it gets a little longwinded. run which will rebuild all your python installs to work with your new version of python.
Repeat those steps until your portage and python are current.
You may pick up other dependencies along the way. You defeat those in the same way, by incremental updates. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|
|
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
|
|