Re: [gentoo-user] Resurrecting a Gentoo install
Ok, looks as though it's time for a manually-installed version of python to upgrade portage, then a portage-installed python:2.6 to bootstrap your way towards modernity. This is all explained here: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml This may also help http://forums.gentoo.org/viewtopic-p-5578709.html That last one mentioned --nodeps which gave me an idea. I did 'emerge -pv python' then emerged all of the packages listed with --nodeps so portage wouldn't complain. Portage wouldn't work after that until I switched back to python:2.5 with eselect. Then I emerged portage to the latest version (which switched back to python:2.6) and I'm hoping I can make some good progress before I come crying back to you guys again. - Grant I just did a 'ls -ltr /var/log/portage' and this thing hasn't been updated in over 3 years. Wow. - Grant Honestly, it's not worth trying to update it using portage. Just backup everything on it and do a re-install. Trying to update it will be a recursive process, repeated many times over, including manually building compatible pythons and dealing with the inevitable issues that arise. Then you still have the X migration issues to deal with, you still have to deal with openrc, with massive pam changes in the last 3 years, and who knows what else. So you will slowly and painfully replace many packages outside of portage to fix this. A reinstall will do the same thing but with much less personal pain :-) If however, you want to do this as a learning exercise then by all means proceed. You will gain useful knowledge (but I think you already have that knowledge) I'm crazy so I updated the thing. It was my first-ever Gentoo install and I guess I've got a soft spot for it. Thanks to --nodeps I didn't have to resort to installing anything outside of portage. I'm 99% done but I lost my connection to the machine and now I can't reconnect: # ssh 1.2.3.4 Password: PTY allocation request failed on channel 0 Thanks to you guys: http://www.gossamer-threads.com/lists/gentoo/user/206090 I'm pretty sure I need to have the following done when someone is onsite tomorrow: mount -t devpts none /dev/pts If that doesn't work I think I'll try rebooting. Is there anything I should make sure I do before I reboot for the first time since taking this on? It will boot into the same 2.6.25-hardened kernel. I've updated all packages except firefox, mesa, and xorg-server I think, but I don't need X working yet. I've updated /etc/fstab. etc-update is done. One thing I'm shaky about is madwifi. I'll still be relying on madwifi-ng and ath0 for network connectivity until I configure a new kernel with ath5k support. I hope it still works after rebooting into all those updated packages. - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
On Sun, 22 Jan 2012 23:26:25 -0800 Grant emailgr...@gmail.com wrote: Ok, looks as though it's time for a manually-installed version of python to upgrade portage, then a portage-installed python:2.6 to bootstrap your way towards modernity. This is all explained here: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml This may also help http://forums.gentoo.org/viewtopic-p-5578709.html That last one mentioned --nodeps which gave me an idea. I did 'emerge -pv python' then emerged all of the packages listed with --nodeps so portage wouldn't complain. Portage wouldn't work after that until I switched back to python:2.5 with eselect. Then I emerged portage to the latest version (which switched back to python:2.6) and I'm hoping I can make some good progress before I come crying back to you guys again. - Grant I just did a 'ls -ltr /var/log/portage' and this thing hasn't been updated in over 3 years. Wow. - Grant Honestly, it's not worth trying to update it using portage. Just backup everything on it and do a re-install. Trying to update it will be a recursive process, repeated many times over, including manually building compatible pythons and dealing with the inevitable issues that arise. Then you still have the X migration issues to deal with, you still have to deal with openrc, with massive pam changes in the last 3 years, and who knows what else. So you will slowly and painfully replace many packages outside of portage to fix this. A reinstall will do the same thing but with much less personal pain :-) If however, you want to do this as a learning exercise then by all means proceed. You will gain useful knowledge (but I think you already have that knowledge) -- Alan McKinnnon alan.mckin...@gmail.com
Re: [gentoo-user] Resurrecting a Gentoo install
Sorry about top posting but I'm on the Kindle. How are you set for disk space? Consider creating a new partition and building a new install in a chroot. When it works then change grub and boot it for real. At least that won't hurt your working install. Cheers, Mark On 1/22/12, Grant emailgr...@gmail.com wrote: Ok, looks as though it's time for a manually-installed version of python to upgrade portage, then a portage-installed python:2.6 to bootstrap your way towards modernity. This is all explained here: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml This may also help http://forums.gentoo.org/viewtopic-p-5578709.html That last one mentioned --nodeps which gave me an idea. I did 'emerge -pv python' then emerged all of the packages listed with --nodeps so portage wouldn't complain. Portage wouldn't work after that until I switched back to python:2.5 with eselect. Then I emerged portage to the latest version (which switched back to python:2.6) and I'm hoping I can make some good progress before I come crying back to you guys again. - Grant I just did a 'ls -ltr /var/log/portage' and this thing hasn't been updated in over 3 years. Wow. - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
Ok, looks as though it's time for a manually-installed version of python to upgrade portage, then a portage-installed python:2.6 to bootstrap your way towards modernity. This is all explained here: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml This may also help http://forums.gentoo.org/viewtopic-p-5578709.html
Re: [gentoo-user] Resurrecting a Gentoo install
Ok, looks as though it's time for a manually-installed version of python to upgrade portage, then a portage-installed python:2.6 to bootstrap your way towards modernity. This is all explained here: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml This may also help http://forums.gentoo.org/viewtopic-p-5578709.html That last one mentioned --nodeps which gave me an idea. I did 'emerge -pv python' then emerged all of the packages listed with --nodeps so portage wouldn't complain. Portage wouldn't work after that until I switched back to python:2.5 with eselect. Then I emerged portage to the latest version (which switched back to python:2.6) and I'm hoping I can make some good progress before I come crying back to you guys again. - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
Ok, looks as though it's time for a manually-installed version of python to upgrade portage, then a portage-installed python:2.6 to bootstrap your way towards modernity. This is all explained here: http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml This may also help http://forums.gentoo.org/viewtopic-p-5578709.html That last one mentioned --nodeps which gave me an idea. I did 'emerge -pv python' then emerged all of the packages listed with --nodeps so portage wouldn't complain. Portage wouldn't work after that until I switched back to python:2.5 with eselect. Then I emerged portage to the latest version (which switched back to python:2.6) and I'm hoping I can make some good progress before I come crying back to you guys again. - Grant I just did a 'ls -ltr /var/log/portage' and this thing hasn't been updated in over 3 years. Wow. - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
On 21 January 2012 04:48, Grant emailgr...@gmail.com wrote: # emerge -avDuN system [snip] !!! All ebuilds that could satisfy =sys-auth/pambase-20081028 have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) USE=-pam emerge @system will avoid that particular block, although it may only get you as far as the next one. I seem to get an error like this from whatever I try to emerge. Is untarring a stage3 my only option? - Grant You don't have to do the entire stage3 at once, http://tinderbox.dev.gentoo.org/ has precompiled packages for the major arches and profiles. You could try to replace just pambase, pam, python, etc. -- whatever's giving you trouble. This was not my first recommendation because I've managed to break e.g. `tar` and `cp` before in the attempt at which point you have two rescues to attempt. The errors I'm getting seem to be complaining about emerging ebuilds with a higher EAPI number than my portage has. Should I just install the latest portage binary package? If so, how should I do that? - Grant What you need to do is upgrade portage incrementally, to increase your available EAPI. Versions available are ; sys-apps/portage Available versions: [M]2.1.6.7 2.1.6.13 2.1.10.11 2.1.10.41 (~)2.1.10.44 Try upgrading to 2.1.6.13 first, then 2.1.10.41 (perhaps with intermediaries in between)
Re: [gentoo-user] Resurrecting a Gentoo install
# emerge -avDuN system [snip] !!! All ebuilds that could satisfy =sys-auth/pambase-20081028 have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) USE=-pam emerge @system will avoid that particular block, although it may only get you as far as the next one. I seem to get an error like this from whatever I try to emerge. Is untarring a stage3 my only option? - Grant You don't have to do the entire stage3 at once, http://tinderbox.dev.gentoo.org/ has precompiled packages for the major arches and profiles. You could try to replace just pambase, pam, python, etc. -- whatever's giving you trouble. This was not my first recommendation because I've managed to break e.g. `tar` and `cp` before in the attempt at which point you have two rescues to attempt. The errors I'm getting seem to be complaining about emerging ebuilds with a higher EAPI number than my portage has. Should I just install the latest portage binary package? If so, how should I do that? - Grant What you need to do is upgrade portage incrementally, to increase your available EAPI. Versions available are ; sys-apps/portage Available versions: [M]2.1.6.7 2.1.6.13 2.1.10.11 2.1.10.41 (~)2.1.10.44 Try upgrading to 2.1.6.13 first, then 2.1.10.41 (perhaps with intermediaries in between) I'm on 2.1.6.13 currently and I get EAPI errors when I try to emerge anything so I need a higher version. If I try for 2.1.10.11 I get: # emerge -av1 =portage-2.1.10.11 [snip] [ebuild NS ] dev-lang/python-2.7.2-r3 [2.5.2-r7] 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 ] dev-lang/python:2.7 (dev-lang/python:2.7 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.7.2-r3) Total: 12 packages (5 upgrades, 6 new, 1 in new slot, 1 uninstall), Size of downloads: 16,070 kB Conflict: 3 blocks (2 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') - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
On 01/20/2012 11:48 PM, Grant wrote: You don't have to do the entire stage3 at once, http://tinderbox.dev.gentoo.org/ has precompiled packages for the major arches and profiles. You could try to replace just pambase, pam, python, etc. -- whatever's giving you trouble. This was not my first recommendation because I've managed to break e.g. `tar` and `cp` before in the attempt at which point you have two rescues to attempt. The errors I'm getting seem to be complaining about emerging ebuilds with a higher EAPI number than my portage has. Should I just install the latest portage binary package? If so, how should I do that? All of those tinderbox tarballs are just archives to be extracted in /. For portage specifically, I'd follow the guide that Dale posted, since it takes care not to clobber your configs.
Re: [gentoo-user] Resurrecting a Gentoo install
# emerge -avDuN system [snip] !!! All ebuilds that could satisfy =sys-auth/pambase-20081028 have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) USE=-pam emerge @system will avoid that particular block, although it may only get you as far as the next one. I seem to get an error like this from whatever I try to emerge. Is untarring a stage3 my only option? - Grant You don't have to do the entire stage3 at once, http://tinderbox.dev.gentoo.org/ has precompiled packages for the major arches and profiles. You could try to replace just pambase, pam, python, etc. -- whatever's giving you trouble. This was not my first recommendation because I've managed to break e.g. `tar` and `cp` before in the attempt at which point you have two rescues to attempt. The errors I'm getting seem to be complaining about emerging ebuilds with a higher EAPI number than my portage has. Should I just install the latest portage binary package? If so, how should I do that? - Grant Only because I had to do this once myself. http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml From that link: If your currently installed version of python reported by python -V is less than 2.6 then you must choose a version of portage that is compatible with it. If you have at least python 2.6 then use portage-2.1.10.41.tar.bz2. If you have python 2.4 or 2.5 then use portage-2.1.6.tar.bz2. I get: # python -V Python 2.5.2 and I'm already on portage-2.1.6.13 which is non-functional since it doesn't have high enough EAPI support for current ebuilds. I think I'm stuck between a python and portage upgrade. I can't update python with my current portage and I can't update portage with my current python. - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
If its not being used and outage is not a problem, I would recommend reinstalling. I'm against doying it, but 2 years is a lot, if you have any servers (MySQL, PHP) it would be an issue, you'll have MAJOR changes to X, OpenRC and I'm not even talking about the kernel, udev, etc. I would back it up and reinstall, guess it would take less time and be way smoother. Just my 2 cents... On Fri, Jan 20, 2012 at 20:37, Grant emailgr...@gmail.com wrote: I have an old Gentoo system that hasn't been updated or used at all in at least 2 years. It's remote but I have SSH access. I've updated portage but I thought I should check with you guys before I plow ahead with emerge -DuN world. It won't be used for anything until I bring it up to speed and someone can physically log in and issue commands a couple times per week so an outage isn't the end of the world. Any advice? - Grant -- Daniel da Veiga
Re: [gentoo-user] Resurrecting a Gentoo install
On 20 January 2012, at 23:58, Grant wrote: OK, so the install is old and portage has dependencies, right? emerge -pvDuN portage will get you closer. However this is probably best covered using Neil's suggestion of emerge -pvDuN @system I can't even get started: # emerge -avDuN system [snip] !!! All ebuilds that could satisfy have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) The current version of portage supports EAPI '2'. You must upgrade to a newer version of portage before EAPI masked packages can be installed. You can get pambase-20081028 from the Gentoo CVS attic [1], add it to your local overlay and emerge it. Once that is done you can carry on, but you'll probably find more blockers, and you'll have to do the same thing again a few times until you can upgrade to the current version of Portage (or whatever). I have done this 2 or 3 times in the past and it is normally viable - it's just a HUGE pain and will have you pulling your hair out. Alternatively, if you can find Portage snapshots which break up the updating period then this will reduce the pain. Ideally what you want to do is find a snapshot which is 4 - 6 months newer than your last update and update to that. I would probably update --deep, though safest is to update most every package on the system. Once you have updated that far, make a new update for another 6 months newer, and so on until you're current. I have here the following snapshots: portage.snapshot.2009-04-12.tar.xz portage.snapshot.2009-07-01.tar.bz2 portage.snapshot.2009-12-20.tar.bz2 portage.snapshot.2010-01-28.tar.bz2 portage.snapshot.2010-02-23.tar.bz2 portage.snapshot.2010-03-30.tar.bz2 portage.snapshot.2010-10-07.tar.bz2 I highly recommend you use them. The ebuilds you need (for example an older pambase) will be in the snapshot and they'll be unmasked. When you emerge the package it will simply get the older releases from Sourceforge or wherever. Email me directly and I'll sort out some way to send these to you. Stroller. [1] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/ Unfortunately the attic is timing out for me right now, so I can't give you a more direct link.
Re: [gentoo-user] Resurrecting a Gentoo install
On 1/21/2012 01:56 PM, Daniel da Veiga wrote: If its not being used and outage is not a problem, I would recommend reinstalling. I'm against doying it, but 2 years is a lot, if you have any servers (MySQL, PHP) it would be an issue, you'll have MAJOR changes to X, OpenRC and I'm not even talking about the kernel, udev, etc. I would back it up and reinstall, guess it would take less time and be way smoother. Just my 2 cents... I agree. I once tried something similar and after a couple of weeks of virtually endless frustration, I decided to do a fresh install of the latest version of Gentoo. I wholeheartedly agree that it would take far less time and be far smoother. To the OP: If you don't have a good way of backing up your important data, just Google RIPLinuX (not case sensitive). Actually I'll just give you the link to the site: http://www.tux.org/pub/people/kent-robotti/looplinux/rip/ Kent Robotti is the creator and maintainer of Rescue is Possible Linux. He has several versions, and that all contain DAR, and now also contain 32 and 64 bit versions of the kernel. If you can boot this system you are trying to update into Riplinux, then you can back up everything with DAR and reinstall without the worry of losing anything. Chris signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Resurrecting a Gentoo install
On Sat, 21 Jan 2012 06:57:32 -0800, Grant wrote: If your currently installed version of python reported by python -V is less than 2.6 then you must choose a version of portage that is compatible with it. If you have at least python 2.6 then use portage-2.1.10.41.tar.bz2. If you have python 2.4 or 2.5 then use portage-2.1.6.tar.bz2. I get: # python -V Python 2.5.2 and I'm already on portage-2.1.6.13 which is non-functional since it doesn't have high enough EAPI support for current ebuilds. I think I'm stuck between a python and portage upgrade. I can't update python with my current portage and I can't update portage with my current python. The blockages you posted relate to Python 2.7 and the latest portage. What happens if you install python:2.6, either through portage or a tarball. Try emerge -1a python:2.6 or put dev-lang/python-2.7 in package.mask. ... Thinking about it, judicious use of package.mask to limit portage to small incremental upgrades may be the best approach. -- Neil Bothwick How stupid are people? Send me to find out. signature.asc Description: PGP signature
Re: [gentoo-user] Resurrecting a Gentoo install
If your currently installed version of python reported by python -V is less than 2.6 then you must choose a version of portage that is compatible with it. If you have at least python 2.6 then use portage-2.1.10.41.tar.bz2. If you have python 2.4 or 2.5 then use portage-2.1.6.tar.bz2. I get: # python -V Python 2.5.2 and I'm already on portage-2.1.6.13 which is non-functional since it doesn't have high enough EAPI support for current ebuilds. I think I'm stuck between a python and portage upgrade. I can't update python with my current portage and I can't update portage with my current python. The blockages you posted relate to Python 2.7 and the latest portage. What happens if you install python:2.6, either through portage or a tarball. Try emerge -1a python:2.6 I get: # emerge -1a python:2.6 [snip] [ebuild NS ] dev-lang/python-2.6.7-r2 [2.5.2-r7] USE=gdbm ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -ipv6 -sqlite -tk -wininst [blocks B ] =dev-lang/python-2.6.6:2.6 (=dev-lang/python-2.6.6:2.6 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.6.7-r2) * Error: The above package list contains packages which cannot be * installed at the same time on the same system. ('ebuild', '/', 'dev-lang/python-2.6.7-r2', 'merge') pulled in by python:2.6 - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
On Fri, Jan 20, 2012 at 2:37 PM, Grant emailgr...@gmail.com wrote: I have an old Gentoo system that hasn't been updated or used at all in at least 2 years. It's remote but I have SSH access. I've updated portage but I thought I should check with you guys before I plow ahead with emerge -DuN world. It won't be used for anything until I bring it up to speed and someone can physically log in and issue commands a couple times per week so an outage isn't the end of the world. Any advice? - Grant Ugh...not a fun task. First step - eix-sync then emerge -fDuN @world and see if it will fetch what you need. If it does, great. If not then you have a first look into what sort of problems you'll be dealing with. Good luck, Mark
Re: [gentoo-user] Resurrecting a Gentoo install
On Fri, 20 Jan 2012 14:37:06 -0800, Grant wrote: I have an old Gentoo system that hasn't been updated or used at all in at least 2 years. It's remote but I have SSH access. I've updated portage but I thought I should check with you guys before I plow ahead with emerge -DuN world. It won't be used for anything until I bring it up to speed and someone can physically log in and issue commands a couple times per week so an outage isn't the end of the world. Any advice? Take small steps. emerge -pv @system first and be prepared to emerge packages a few at a time. -- Neil Bothwick Top Oxymorons Number 9: Political science signature.asc Description: PGP signature
Re: [gentoo-user] Resurrecting a Gentoo install
I have an old Gentoo system that hasn't been updated or used at all in at least 2 years. It's remote but I have SSH access. I've updated portage but I thought I should check with you guys before I plow ahead with emerge -DuN world. It won't be used for anything until I bring it up to speed and someone can physically log in and issue commands a couple times per week so an outage isn't the end of the world. Any advice? Take small steps. emerge -pv @system first and be prepared to emerge packages a few at a time. Weird, it looks like portage didn't update to the latest version. emerging it again seems to want to update it again. I get this: # emerge -pv portage [snip] [ebuild NS ] dev-lang/python-2.7.2-r3 [2.5.2-r7] 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.41 [2.1.6.13] USE=(ipc%*) -build -doc -epydoc -python2% -python3% (-selinux) (-less%*) LINGUAS=-pl 899 kB [blocks B ] dev-lang/python:2.7 (dev-lang/python:2.7 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.7.2-r3) I think I'll be able to resolve most stuff myself but this one is tricking me. I don't want to mess around unmerging python or portage. - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
On 1/20/2012 5:37 PM, Grant wrote: I have an old Gentoo system that hasn't been updated or used at all in at least 2 years. It's remote but I have SSH access. I've updated portage but I thought I should check with you guys before I plow ahead with emerge -DuN world. It won't be used for anything until I bring it up to speed and someone can physically log in and issue commands a couple times per week so an outage isn't the end of the world. Any advice? - Grant You will likely pull in the 'new' OpenRC ebuild during your update process (sys-apps/open-rc i believe). Watch out for this! If you merge it you must make sure all your configs are up to date in /etc or your server won't come back following a restart (etc-update, dispatch-conf, etc.). You'll want to move over any settings in /etc/conf.d/rc to /etc/rc.conf. Upgrade guide: http://www.gentoo.org/doc/en/openrc-migration.xml Good luck. -- EJ e...@ejane.org
Re: [gentoo-user] Resurrecting a Gentoo install
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21.01.2012 00:09, Grant wrote: I have an old Gentoo system that hasn't been updated or used at all in at least 2 years. It's remote but I have SSH access. I've updated portage but I thought I should check with you guys before I plow ahead with emerge -DuN world. It won't be used for anything until I bring it up to speed and someone can physically log in and issue commands a couple times per week so an outage isn't the end of the world. Any advice? Take small steps. emerge -pv @system first and be prepared to emerge packages a few at a time. Weird, it looks like portage didn't update to the latest version. emerging it again seems to want to update it again. I get this: # emerge -pv portage [snip] [ebuild NS ] dev-lang/python-2.7.2-r3 [2.5.2-r7] 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.41 [2.1.6.13] USE=(ipc%*) -build -doc -epydoc -python2% -python3% (-selinux) (-less%*) LINGUAS=-pl 899 kB [blocks B ] dev-lang/python:2.7 (dev-lang/python:2.7 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.7.2-r3) I think I'll be able to resolve most stuff myself but this one is tricking me. I don't want to mess around unmerging python or portage. - Grant You could do: emerge =dev-lang/python-2.6.7-r2 You should disable threads if it doesn't work (there is something related to it in the portage ebuild). After that, switch to python 2.6 via eselect and try to update portage. If I read the ebuilds correctly, that should work. Another possibility would be to install a 3.x version of python and switch portage to that (via the python3 useflag). I'd try the python3 approach first, since it could spare you a 2.6 install. Don't forget to run python-updater after updating everything or if you get strange (python related) errorrs in between... Good luck Hinnerk -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPGfkPAAoJEJwwOFaNFkYcr48H/iAVc/K6gOkGZ/wFewkoggWZ gKS5bRiuwWRRLBL3nRPraIlYvnfzqTTG/PLkYasFgcEeCpKE70mMcKqIvFFzt3Ab UVc5Xly8qaYUR4XUYNzz5ww9TAs6BrmYyJvxCSXdp+oiZx6RmeyuXuwFU6v04v1I QkWrVkOIOtq9YVFxgu096KiQeRzZ2m5iURgkipl8rBYNXSaKBVktuKlnS0loFUAZ rqNLs3qUuAsEmlua7KLV8LHWVfnBICuXwrgCssy+cBHJGeTUEQIyIc4lnI7Mwe2d 7GWuMTkxKfyWtChiW/hWxYv5c4lQFkP+5GIyQT64rJ7cjkufkPkkNZx7wQtszjs= =ASiv -END PGP SIGNATURE-
Re: [gentoo-user] Resurrecting a Gentoo install
On Fri, Jan 20, 2012 at 3:09 PM, Grant emailgr...@gmail.com wrote: I have an old Gentoo system that hasn't been updated or used at all in at least 2 years. It's remote but I have SSH access. I've updated portage but I thought I should check with you guys before I plow ahead with emerge -DuN world. It won't be used for anything until I bring it up to speed and someone can physically log in and issue commands a couple times per week so an outage isn't the end of the world. Any advice? Take small steps. emerge -pv @system first and be prepared to emerge packages a few at a time. Weird, it looks like portage didn't update to the latest version. emerging it again seems to want to update it again. I get this: # emerge -pv portage [snip] [ebuild NS ] dev-lang/python-2.7.2-r3 [2.5.2-r7] 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.41 [2.1.6.13] USE=(ipc%*) -build -doc -epydoc -python2% -python3% (-selinux) (-less%*) LINGUAS=-pl 899 kB [blocks B ] dev-lang/python:2.7 (dev-lang/python:2.7 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.7.2-r3) I think I'll be able to resolve most stuff myself but this one is tricking me. I don't want to mess around unmerging python or portage. - Grant OK, so the install is old and portage has dependencies, right? emerge -pvDuN portage will get you closer. However this is probably best covered using Neil's suggestion of emerge -pvDuN @system which would, if successful, update portage as well as everything else that's required to get the machine up and running. If that does work then don't forget all the eselect python gcc-config type stuff that you'll need to do to tell the system about the new environment. One little area you might want to be careful about here is grub. Best IMO if you do not update grub until you have the machine actually booting the updated environment, assuming we get that far. HTH, Mark
Re: [gentoo-user] Resurrecting a Gentoo install
Weird, it looks like portage didn't update to the latest version. emerging it again seems to want to update it again. I get this: # emerge -pv portage [snip] [ebuild NS ] dev-lang/python-2.7.2-r3 [2.5.2-r7] 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.41 [2.1.6.13] USE=(ipc%*) -build -doc -epydoc -python2% -python3% (-selinux) (-less%*) LINGUAS=-pl 899 kB [blocks B ] dev-lang/python:2.7 (dev-lang/python:2.7 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.7.2-r3) I think I'll be able to resolve most stuff myself but this one is tricking me. I don't want to mess around unmerging python or portage. - Grant You could do: emerge =dev-lang/python-2.6.7-r2 You should disable threads if it doesn't work (there is something related to it in the portage ebuild). After that, switch to python 2.6 via eselect and try to update portage. If I read the ebuilds correctly, that should work. I get: # emerge -av1 =dev-lang/python-2.6.7-r2 [snip] [ebuild NS ] dev-lang/python-2.6.7-r2 [2.5.2-r7] USE=gdbm ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -ipv6 -sqlite -tk -wininst 10,840 kB [blocks B ] =dev-lang/python-2.6.6:2.6 (=dev-lang/python-2.6.6:2.6 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.6.7-r2) Total: 6 packages (5 new, 1 in new slot), Size of downloads: 11,588 kB Conflict: 2 blocks (2 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.6.7-r2', 'merge') pulled in by =dev-lang/python-2.6.7-r2 Another possibility would be to install a 3.x version of python and switch portage to that (via the python3 useflag). I get: # emerge -av1 =dev-lang/python-3.1.4-r3 [snip] !!! All ebuilds that could satisfy =dev-lang/python-3.1.4-r3 have been masked. !!! One of the following masked packages is required to complete your request: - dev-lang/python-3.1.4-r3 (masked by: EAPI 3) The current version of portage supports EAPI '2'. You must upgrade to a newer version of portage before EAPI masked packages can be installed. - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
120120 Neil Bothwick wrote: On Fri, 20 Jan 2012 14:37:06 -0800, Grant wrote: I have an old Gentoo system that hasn't been updated or used at all in at least 2 years. It's remote but I have SSH access. Take small steps. emerge -pv @system first and be prepared to emerge packages a few at a time. That's always the best way to update a Gentoo system. I've never done a simple 'emerge -??? world' hoped for the best have never run off the rails since first installing Gentoo 2003. 'emerge -Dup world' lists all the pkgs Portage wants to update shows the order in which it plans to tackle them : you can use that to do a few pkgs at a time as you do them, check the output, warnings etc. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] Resurrecting a Gentoo install
OK, so the install is old and portage has dependencies, right? emerge -pvDuN portage will get you closer. However this is probably best covered using Neil's suggestion of emerge -pvDuN @system I can't even get started: # emerge -avDuN system [snip] !!! All ebuilds that could satisfy =sys-auth/pambase-20081028 have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) The current version of portage supports EAPI '2'. You must upgrade to a newer version of portage before EAPI masked packages can be installed. - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
On Friday 20 Jan 2012 23:53:32 Philip Webb wrote: 120120 Neil Bothwick wrote: On Fri, 20 Jan 2012 14:37:06 -0800, Grant wrote: I have an old Gentoo system that hasn't been updated or used at all in at least 2 years. It's remote but I have SSH access. Take small steps. emerge -pv @system first and be prepared to emerge packages a few at a time. That's always the best way to update a Gentoo system. I've never done a simple 'emerge -??? world' hoped for the best have never run off the rails since first installing Gentoo 2003. 'emerge -Dup world' lists all the pkgs Portage wants to update shows the order in which it plans to tackle them : you can use that to do a few pkgs at a time as you do them, check the output, warnings etc. Only to add use -1 instead of -u if you do not want these packages in your world file. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Resurrecting a Gentoo install
On 01/20/12 18:58, Grant wrote: OK, so the install is old and portage has dependencies, right? emerge -pvDuN portage will get you closer. However this is probably best covered using Neil's suggestion of emerge -pvDuN @system I can't even get started: Do you have some idea of what config files are important on the machine? You can always extract a stage3 at the root. That basically installs the latest @system for you, with the massive caveat that you won't have CONFIG_PROTECTion.
Re: [gentoo-user] Resurrecting a Gentoo install
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21.01.2012 00:52, Grant wrote: Weird, it looks like portage didn't update to the latest version. emerging it again seems to want to update it again. I get this: # emerge -pv portage [snip] [ebuild NS ] dev-lang/python-2.7.2-r3 [2.5.2-r7] 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.41 [2.1.6.13] USE=(ipc%*) -build -doc -epydoc -python2% -python3% (-selinux) (-less%*) LINGUAS=-pl 899 kB [blocks B ] dev-lang/python:2.7 (dev-lang/python:2.7 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.7.2-r3) I think I'll be able to resolve most stuff myself but this one is tricking me. I don't want to mess around unmerging python or portage. - Grant You could do: emerge =dev-lang/python-2.6.7-r2 You should disable threads if it doesn't work (there is something related to it in the portage ebuild). After that, switch to python 2.6 via eselect and try to update portage. If I read the ebuilds correctly, that should work. I get: # emerge -av1 =dev-lang/python-2.6.7-r2 [snip] [ebuild NS ] dev-lang/python-2.6.7-r2 [2.5.2-r7] USE=gdbm ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -ipv6 -sqlite -tk -wininst 10,840 kB [blocks B ] =dev-lang/python-2.6.6:2.6 (=dev-lang/python-2.6.6:2.6 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.6.7-r2) Total: 6 packages (5 new, 1 in new slot), Size of downloads: 11,588 kB Conflict: 2 blocks (2 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.6.7-r2', 'merge') pulled in by =dev-lang/python-2.6.7-r2 Another possibility would be to install a 3.x version of python and switch portage to that (via the python3 useflag). I get: # emerge -av1 =dev-lang/python-3.1.4-r3 [snip] !!! All ebuilds that could satisfy =dev-lang/python-3.1.4-r3 have been masked. !!! One of the following masked packages is required to complete your request: - dev-lang/python-3.1.4-r3 (masked by: EAPI 3) The current version of portage supports EAPI '2'. You must upgrade to a newer version of portage before EAPI masked packages can be installed. - Grant Could you try: emerge =python-2.6.6-r2 -v1 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPGgRQAAoJEJwwOFaNFkYcz2sIAMsA6Eww2zCgRKCH1ptGxnfU q7BYe8zvpvNYe2ejedFZH1U9X42mxTFTB3qsZ8ZILClLTu7gLaXbygTJhVeFmBU+ UPXrWtAM6mQSGgdjjavLGHGj0uTr7feNHO9K8t4qYeE1ZFMFznwQPbKKlHK0/Mn5 0Fp+M6pwCR7I5kr3Fv6LsGlBtKz7iuq/a9sCUd460OMTdZOw/ie4TOlcMuM/Td95 s/kIHjT19yprGSZiWzlAW9WJcP2hmHnHLw2gHVoYRqo0eFKYoOAMgfPYz12EV3uJ a1rSWD2yTMjfUX8lKw0edREbERpyImHDH4HZuVE6Va/9ZBdMPNDUxD/SWCwugdQ= =AVYG -END PGP SIGNATURE-
Re: [gentoo-user] Resurrecting a Gentoo install
You could do: emerge =dev-lang/python-2.6.7-r2 You should disable threads if it doesn't work (there is something related to it in the portage ebuild). After that, switch to python 2.6 via eselect and try to update portage. If I read the ebuilds correctly, that should work. I get: # emerge -av1 =dev-lang/python-2.6.7-r2 [snip] [ebuild NS ] dev-lang/python-2.6.7-r2 [2.5.2-r7] USE=gdbm ncurses readline ssl threads (wide-unicode) xml -berkdb -build -doc -examples -ipv6 -sqlite -tk -wininst 10,840 kB [blocks B ] =dev-lang/python-2.6.6:2.6 (=dev-lang/python-2.6.6:2.6 is blocking sys-apps/portage-2.1.6.13) [blocks B ] sys-apps/portage-2.1.9 (sys-apps/portage-2.1.9 is blocking dev-lang/python-2.6.7-r2) Total: 6 packages (5 new, 1 in new slot), Size of downloads: 11,588 kB Conflict: 2 blocks (2 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.6.7-r2', 'merge') pulled in by =dev-lang/python-2.6.7-r2 Another possibility would be to install a 3.x version of python and switch portage to that (via the python3 useflag). I get: # emerge -av1 =dev-lang/python-3.1.4-r3 [snip] !!! All ebuilds that could satisfy =dev-lang/python-3.1.4-r3 have been masked. !!! One of the following masked packages is required to complete your request: - dev-lang/python-3.1.4-r3 (masked by: EAPI 3) The current version of portage supports EAPI '2'. You must upgrade to a newer version of portage before EAPI masked packages can be installed. - Grant Could you try: emerge =python-2.6.6-r2 -v1 I get the same thing unfortunately. - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
On Fri, 20 Jan 2012 15:58:36 -0800, Grant wrote: # emerge -avDuN system [snip] !!! All ebuilds that could satisfy =sys-auth/pambase-20081028 have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) USE=-pam emerge @system will avoid that particular block, although it may only get you as far as the next one. -- Neil Bothwick C:\BELFRY is where I keep my .BAT files ^^^oo^^^ signature.asc Description: PGP signature
Re: [gentoo-user] Resurrecting a Gentoo install
# emerge -avDuN system [snip] !!! All ebuilds that could satisfy =sys-auth/pambase-20081028 have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) USE=-pam emerge @system will avoid that particular block, although it may only get you as far as the next one. I seem to get an error like this from whatever I try to emerge. Is untarring a stage3 my only option? - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
On 01/20/2012 09:42 PM, Grant wrote: # emerge -avDuN system [snip] !!! All ebuilds that could satisfy =sys-auth/pambase-20081028 have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) USE=-pam emerge @system will avoid that particular block, although it may only get you as far as the next one. I seem to get an error like this from whatever I try to emerge. Is untarring a stage3 my only option? - Grant You don't have to do the entire stage3 at once, http://tinderbox.dev.gentoo.org/ has precompiled packages for the major arches and profiles. You could try to replace just pambase, pam, python, etc. -- whatever's giving you trouble. This was not my first recommendation because I've managed to break e.g. `tar` and `cp` before in the attempt at which point you have two rescues to attempt.
Re: [gentoo-user] Resurrecting a Gentoo install
# emerge -avDuN system [snip] !!! All ebuilds that could satisfy =sys-auth/pambase-20081028 have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) USE=-pam emerge @system will avoid that particular block, although it may only get you as far as the next one. I seem to get an error like this from whatever I try to emerge. Is untarring a stage3 my only option? - Grant You don't have to do the entire stage3 at once, http://tinderbox.dev.gentoo.org/ has precompiled packages for the major arches and profiles. You could try to replace just pambase, pam, python, etc. -- whatever's giving you trouble. This was not my first recommendation because I've managed to break e.g. `tar` and `cp` before in the attempt at which point you have two rescues to attempt. The errors I'm getting seem to be complaining about emerging ebuilds with a higher EAPI number than my portage has. Should I just install the latest portage binary package? If so, how should I do that? - Grant
Re: [gentoo-user] Resurrecting a Gentoo install
Grant wrote: # emerge -avDuN system [snip] !!! All ebuilds that could satisfy =sys-auth/pambase-20081028 have been masked. !!! One of the following masked packages is required to complete your request: - sys-auth/pambase-20101024-r1 (masked by: EAPI 4) - sys-auth/pambase-20101024 (masked by: EAPI 3) USE=-pam emerge @system will avoid that particular block, although it may only get you as far as the next one. I seem to get an error like this from whatever I try to emerge. Is untarring a stage3 my only option? - Grant You don't have to do the entire stage3 at once, http://tinderbox.dev.gentoo.org/ has precompiled packages for the major arches and profiles. You could try to replace just pambase, pam, python, etc. -- whatever's giving you trouble. This was not my first recommendation because I've managed to break e.g. `tar` and `cp` before in the attempt at which point you have two rescues to attempt. The errors I'm getting seem to be complaining about emerging ebuilds with a higher EAPI number than my portage has. Should I just install the latest portage binary package? If so, how should I do that? - Grant Only because I had to do this once myself. http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml Hope that helps. Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words! Miss the compile output? Hint: EMERGE_DEFAULT_OPTS=--quiet-build=n