| View previous topic :: View next topic |
| Author |
Message |
Xywa l33t


Joined: 23 Jul 2005 Posts: 734 Location: /mnt/Gentoo/
|
Posted: Sun Feb 10, 2013 10:19 am Post subject: [SOLVED] ParseError: Profile contains unsupported EAPI '5': |
|
|
I am trying to rescue my old emails (kde 4.10.0 case) so tought to use my older lapotp with stable kde. I have made emerge --sync so I recieved a message, after this:
| Code: | # emerge portage
!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:
default/linux/amd64/13.0/desktop/kde
|
After this I switch into this profile default/linux/amd64/13.0/desktop/kde, and... I cannot do anything.
Wht to do now?
| Code: | # emerge portage
!!! Unable to parse profile: '/etc/make.profile'
!!! ParseError: Profile contains unsupported EAPI '5': '/usr/portage/profiles/default/linux/amd64/13.0/eapi'
!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version.
|
Last edited by Xywa on Thu Feb 14, 2013 7:16 am; edited 1 time in total |
|
| Back to top |
|
 |
ronsu n00b

Joined: 10 Feb 2013 Posts: 2
|
Posted: Sun Feb 10, 2013 11:56 am Post subject: |
|
|
| I solved similar issue by setting profile to hardened -> emerged portage -> set the profile back to default. Dunno if it helps in your case and most likely this is not the correct way to solve this(?). |
|
| Back to top |
|
 |
dilfridge Developer


Joined: 18 Sep 2010 Posts: 29 Location: Regensburg, Germany
|
Posted: Sun Feb 10, 2013 2:17 pm Post subject: |
|
|
| Just upgrade first your portage before you switch profile. Then all should be fine. |
|
| Back to top |
|
 |
dilfridge Developer


Joined: 18 Sep 2010 Posts: 29 Location: Regensburg, Germany
|
Posted: Sun Feb 10, 2013 2:29 pm Post subject: |
|
|
| dilfridge wrote: | | Just upgrade first your portage before you switch profile. Then all should be fine. |
eselect does not offer the old profile anymore, so you cannot switch back from 13.0 to 10.0 using eselect. However, what you can do is change the /etc/make.profile or /etc/portage/make.profile symlink manually (check first which one is used in your installation, that depends on when you first installed your system; only one of these two should exist). For example, for the linux/amd64/13.0/desktop/kde profile:
| Code: |
pinacolada etc # ls -l make.profile
lrwxrwxrwx 1 root root 60 9. Feb 12:54 make.profile -> ../usr/portage/profiles/default/linux/amd64/13.0/desktop/kde
pinacolada etc # rm make.profile
pinacolada etc # ln -s ../usr/portage/profiles/default/linux/amd64/10.0/desktop/kde make.profile
pinacolada etc # ls -l make.profile
lrwxrwxrwx 1 root root 60 10. Feb 15:26 make.profile -> ../usr/portage/profiles/default/linux/amd64/10.0/desktop/kde
|
Then upgrade portage to current stable, and use eselect to switch to the 13.0 profile... |
|
| Back to top |
|
 |
robdd Tux's lil' helper

Joined: 02 Jan 2005 Posts: 131 Location: Sydney Australia
|
Posted: Thu Feb 14, 2013 12:45 am Post subject: Thanks |
|
|
| dilfridge wrote: | | Just upgrade first your portage before you switch profile. Then all should be fine. |
Thanks for that hint - I haven't updated my work Gentoo box here for months, and falling behind always means surprises when trying to get back up to date.  _________________ Rob Diamond
Gentoo Hack, hack, hacker
Sydney, Australia |
|
| Back to top |
|
 |
Xywa l33t


Joined: 23 Jul 2005 Posts: 734 Location: /mnt/Gentoo/
|
Posted: Thu Feb 14, 2013 7:17 am Post subject: |
|
|
| ronsu wrote: | | I solved similar issue by setting profile to hardened -> emerged portage -> set the profile back to default. Dunno if it helps in your case and most likely this is not the correct way to solve this(?). |
Many thanks for answers. This one solved mine problem  |
|
| Back to top |
|
 |
Vieri Apprentice

Joined: 18 Dec 2005 Posts: 267
|
Posted: Fri Feb 22, 2013 9:33 am Post subject: |
|
|
Maybe it would be useful to add a warning line in the message:
| Quote: | !!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:
|
Instead of | Quote: | | Please upgrade to the following profile if possible | I'd prefer to read something like | Quote: | | Please emerge latest portage and then upgrade to the following profile if possible | . |
|
| Back to top |
|
 |
leandroecomp n00b


Joined: 25 Jun 2010 Posts: 4 Location: Rio Grande - RS - Brazil
|
Posted: Mon Mar 25, 2013 5:17 pm Post subject: |
|
|
| Code: | eselect profile set 0
emerge -u portage
eselect profile set 1 |
It works for me!  |
|
| Back to top |
|
 |
libertytrek Apprentice

Joined: 18 Jul 2007 Posts: 244
|
Posted: Mon Apr 15, 2013 9:52 pm Post subject: |
|
|
| leandroecomp wrote: | | Code: | eselect profile set 0
emerge -u portage
eselect profile set 1 |
It works for me!  |
Me too, thanks! |
|
| Back to top |
|
 |
tox2ik n00b

Joined: 15 Jun 2009 Posts: 8
|
Posted: Thu Apr 25, 2013 6:32 pm Post subject: Just get the new portage. |
|
|
A recent portage will be included in the current stage3 tarball. Chroot into it, use quickpkg to tar it up and extract on the host where you have the error. I was about to curse (at myself, for ignoring the hardened profile warnings from last year) while trying to upgrade a host that's been offline for some 7 months, but then I remembered that portage is all python, so It shouldn't matter if I get it from some other place (box 3 ft. away with same CHOST, in my case).
| Code: |
genja etc # emerge -u portage
!!! Unable to parse profile: '/etc/make.profile'
!!! ParseError: Profile contains unsupported EAPI '5': '/usr/portage/profiles/eapi-5-files/eapi'
!!! If you have just changed your profile configuration, you should revert
!!! back to the previous configuration. Due to your current profile being
!!! invalid, allowed actions are limited to --help, --info, --sync, and
!!! --version.
genja etc # cd /
genja / # tar xf root/portage-2.1.11.31.tbz2
bzip2: (stdin): trailing garbage after EOF ignored
genja / # emerge portage
FEATURES variable contains unknown value(s): fixpackages
* IMPORTANT: 14 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
|
|
|
| Back to top |
|
 |
libertytrek Apprentice

Joined: 18 Jul 2007 Posts: 244
|
Posted: Thu Apr 25, 2013 6:45 pm Post subject: Re: Just get the new portage. |
|
|
Top-posting because what tox2ik wrote below makes no sense when:
| Code: | eselect profile set 0
emerge -u portage
eselect profile set 1 |
Is so simple...
Thanks leandroecomp![/code]
| tox2ik wrote: | A recent portage will be included in the current stage3 tarball. Chroot into it, use quickpkg to tar it up and extract on the host where you have the error. I was about to curse (at myself, for ignoring the hardened profile warnings from last year) while trying to upgrade a host that's been offline for some 7 months, but then I remembered that portage is all python, so It shouldn't matter if I get it from some other place (box 3 ft. away with same CHOST, in my case).
| Code: |
genja etc # emerge -u portage
!!! Unable to parse profile: '/etc/make.profile'
!!! ParseError: Profile contains unsupported EAPI '5': '/usr/portage/profiles/eapi-5-files/eapi'
!!! If you have just changed your profile configuration, you should revert
!!! back to the previous configuration. Due to your current profile being
!!! invalid, allowed actions are limited to --help, --info, --sync, and
!!! --version.
genja etc # cd /
genja / # tar xf root/portage-2.1.11.31.tbz2
bzip2: (stdin): trailing garbage after EOF ignored
genja / # emerge portage
FEATURES variable contains unknown value(s): fixpackages
* IMPORTANT: 14 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
|
|
|
|
| Back to top |
|
 |
kalashnikov3dx n00b

Joined: 01 Feb 2010 Posts: 4
|
Posted: Sat Apr 27, 2013 7:25 am Post subject: Re: Just get the new portage. |
|
|
This worked for me as well.
The solution from libertytrek wouldn't work for me since any profile I selected gave me the same error. I just used quickpkg on portage from another machine, sent it to the broken machine and worked perfectly.
Thanks!
| tox2ik wrote: | A recent portage will be included in the current stage3 tarball. Chroot into it, use quickpkg to tar it up and extract on the host where you have the error. I was about to curse (at myself, for ignoring the hardened profile warnings from last year) while trying to upgrade a host that's been offline for some 7 months, but then I remembered that portage is all python, so It shouldn't matter if I get it from some other place (box 3 ft. away with same CHOST, in my case).
| Code: |
genja etc # emerge -u portage
!!! Unable to parse profile: '/etc/make.profile'
!!! ParseError: Profile contains unsupported EAPI '5': '/usr/portage/profiles/eapi-5-files/eapi'
!!! If you have just changed your profile configuration, you should revert
!!! back to the previous configuration. Due to your current profile being
!!! invalid, allowed actions are limited to --help, --info, --sync, and
!!! --version.
genja etc # cd /
genja / # tar xf root/portage-2.1.11.31.tbz2
bzip2: (stdin): trailing garbage after EOF ignored
genja / # emerge portage
FEATURES variable contains unknown value(s): fixpackages
* IMPORTANT: 14 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
|
|
|
|
| Back to top |
|
 |
libertytrek Apprentice

Joined: 18 Jul 2007 Posts: 244
|
Posted: Sat Apr 27, 2013 3:50 pm Post subject: Re: Just get the new portage. |
|
|
| kalashnikov3dx wrote: | This worked for me as well.
The solution from libertytrek wouldn't work for me since any profile I selected gave me the same error. |
? You're saying
eselect profile set 0 <- that is a ZERO, a non-existent profile
didn't work? |
|
| Back to top |
|
 |
gary987 n00b

Joined: 07 Oct 2006 Posts: 11
|
Posted: Wed May 08, 2013 12:44 am Post subject: |
|
|
eselecting profile 0 borked here too..
I just changed both EAPI file contents to 4. and it seem happy to upgrade portage. Planning to put them back to 5 after emerge is done.
Cheers
Gary |
|
| Back to top |
|
 |
|