View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sat Jun 01, 2013 8:37 pm Post subject: problems when updating portage(tinygentoo) |
|
|
I'm up to the part where I need to upgrade portage, I'm following the wiki entry: http://www.gentoo-wiki.info/TinyGentoo
I'm stuck at this bit
localhost / # emerge -uv portage
These are the packages that would be merged, in order:
Calculating dependencies -
!!! All ebuilds that could satisfy ">=dev-libs/libffi-3.0.11" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-libs/libffi-3.0.13 (masked by: EAPI 5, invalid: SLOT is undefined)
- dev-libs/libffi-3.0.12 (masked by: EAPI 5, invalid: SLOT is undefined)
- dev-libs/libffi-3.0.11 (masked by: EAPI 4, invalid: SLOT is undefined)
The current version of portage supports EAPI '1'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.
For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "dev-lang/python-2.5.4-r5" [ebuild])
I tried the workout in the wiki:
quickpkg --include-config=y portage
and copied the tarball into the chroot environment, and extracted, now I get:
emerge -au portage
File "/usr/bin/emerge", line 52
except PermissionDenied as e:
^
SyntaxError: invalid syntax
thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Sat Jun 01, 2013 10:47 pm Post subject: |
|
|
blakdeath,
You need both a newer portage and a newer python to support the newer portage.
Thats a bit chicken and egg because portage is written in python.
There are some old portage versions left in the tree for things like this. You need to update portage to the limit of yhat supported by yuor python, then update python, then update portage again. You may need to do this several times.
As you have got a portage thats too new for your python, you need to update python the same way as you did for portage.
You will also need eselect-python, as there is now python-2 and python-3. Get the newest python-2 and then select it as your system python.
This python update will break a lot of things that use python. Be sure to run python-updater to fix them. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sun Jun 02, 2013 5:11 pm Post subject: |
|
|
well I tried using quikpkg to update python< i had 2.4, I installed both 2.7 & 3.2, and I keep getting the same error, and since portage isn't working I cannot update any package of any sort |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Sun Jun 02, 2013 5:40 pm Post subject: |
|
|
blakdeath,
What about eselect python ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sun Jun 02, 2013 5:53 pm Post subject: |
|
|
bash: eselect: command not found |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Sun Jun 02, 2013 6:22 pm Post subject: |
|
|
blakdeath,
Thats a problem then. You either need eselect with its python module to set up your python to work or you need to make symlinks by hand.
eselect has been around for a long time but the python module was created when python-2 and python-3 needed to be installed side by side.
From my system.
Code: | $ ls /usr/bin/pyt* -l
lrwxrwxrwx 1 root root 14 Jan 30 09:41 /usr/bin/python -> python-wrapper
-rwxr-xr-x 1 root root 217 Jan 30 09:41 /usr/bin/python-config
lrwxrwxrwx 1 root root 16 Apr 20 12:22 /usr/bin/python-config-2.6 -> python2.6-config
lrwxrwxrwx 1 root root 16 Jun 1 20:15 /usr/bin/python-config-2.7 -> python2.7-config
lrwxrwxrwx 1 root root 16 Apr 20 12:06 /usr/bin/python-config-3.1 -> python3.1-config
lrwxrwxrwx 1 root root 16 Jun 1 20:17 /usr/bin/python-config-3.2 -> python3.2-config
lrwxrwxrwx 1 root root 16 May 24 18:15 /usr/bin/python-config-3.3 -> python3.3-config
-rwxr-xr-x 1 root root 1397 May 23 18:09 /usr/bin/python-exec
-rwxr-xr-x 1 root root 10360 May 23 18:09 /usr/bin/python-exec-c
-rwxr-xr-x 1 root root 10384 Feb 3 13:53 /usr/bin/python-wrapper
lrwxrwxrwx 1 root root 9 Feb 2 22:51 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 6144 Mar 23 21:55 /usr/bin/python2.6
-rwxr-xr-x 1 root root 1200 Mar 23 21:54 /usr/bin/python2.6-config
-rwxr-xr-x 1 root root 6144 Jun 1 20:15 /usr/bin/python2.7
-rwxr-xr-x 1 root root 1450 Jun 1 20:15 /usr/bin/python2.7-config
lrwxrwxrwx 1 root root 9 Jan 30 09:41 /usr/bin/python3 -> python3.2
-rwxr-xr-x 1 root root 10312 Mar 23 18:58 /usr/bin/python3.1
-rwxr-xr-x 1 root root 1177 Mar 23 18:57 /usr/bin/python3.1-config
-rwxr-xr-x 1 root root 10304 Jun 1 20:17 /usr/bin/python3.2
-rwxr-xr-x 1 root root 1659 Jun 1 20:16 /usr/bin/python3.2-config
-rwxr-xr-x 1 root root 10304 May 23 18:20 /usr/bin/python3.3
-rwxr-xr-x 1 root root 1753 May 23 18:20 /usr/bin/python3.3-config |
I guess you don't have python-wrapper either ?
Pointing /usr/bin/python to /usr/bin/python2.7 may get you going. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sun Jun 02, 2013 6:39 pm Post subject: |
|
|
here's my directory after linking python to python 2.7
localhost bin # ls python* -l
lrwxrwxrwx 1 root root 9 Apr 25 2008 python -> python2.4
lrwxrwxrwx 1 root root 17 Apr 25 2008 python-config -> python-config-2.4
-rwxr-xr-x 1 root root 1624 Mar 17 2008 python-config-2.4
lrwxrwxrwx 1 root root 16 Jun 2 17:08 python-config-2.7 -> python2.7-config
lrwxrwxrwx 1 root root 16 Jun 2 17:07 python-config-3.2 -> python3.2-config
lrwxrwxrwx 1 root root 9 Apr 25 2008 python2 -> python2.4
-rwxr-xr-x 1 root root 5140 Mar 17 2008 python2.4
-rwxr-xr-x 1 root root 10584 Apr 1 21:41 python2.7
-rwxr-xr-x 1 root root 1400 Apr 1 21:41 python2.7-config
-rwxr-xr-x 1 root root 12784 Apr 23 22:04 python3.2
-rwxr-xr-x 1 root root 1601 Apr 23 22:03 python3.2-config
now I get :
bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54216 Location: 56N 3W
|
Posted: Sun Jun 02, 2013 11:39 pm Post subject: |
|
|
blakdeath
Code: | lrwxrwxrwx 1 root root 9 Apr 25 2008 python -> python2.4 | shows that the link is to 2.4 _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Mon Jun 03, 2013 7:12 am Post subject: |
|
|
sorry that was the old one;
here's the new result:
lrwxrwxrwx 1 root root 9 Jun 3 07:11 python -> python2.7
lrwxrwxrwx 1 root root 17 Apr 25 2008 python-config -> python-config-2.4
-rwxr-xr-x 1 root root 1624 Mar 17 2008 python-config-2.4
lrwxrwxrwx 1 root root 16 Jun 2 17:08 python-config-2.7 -> python2.7-config
lrwxrwxrwx 1 root root 16 Jun 2 17:07 python-config-3.2 -> python3.2-config
lrwxrwxrwx 1 root root 9 Apr 25 2008 python2 -> python2.4
-rwxr-xr-x 1 root root 5140 Mar 17 2008 python2.4
-rwxr-xr-x 1 root root 10584 Apr 1 21:41 python2.7
-rwxr-xr-x 1 root root 1400 Apr 1 21:41 python2.7-config
-rwxr-xr-x 1 root root 12784 Apr 23 22:04 python3.2
-rwxr-xr-x 1 root root 1601 Apr 23 22:03 python3.2-config
emerge -au portage
bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: No such file or directory
is the new result |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Thu Jun 06, 2013 12:08 pm Post subject: |
|
|
help anyone? |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Sat Jun 08, 2013 5:26 pm Post subject: |
|
|
I tried the process all over
I'm getting the same result
any help on updating python? |
|
Back to top |
|
|
|