Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] ParseError: Profile contains unsupported EAPI '5':

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
34 posts
  • 1
  • 2
  • Next
Author
Message
Xywa
Veteran
Veteran
User avatar
Posts: 1631
Joined: Sat Jul 23, 2005 2:00 pm
Location: /mnt/Gentoo/Europe

[SOLVED] ParseError: Profile contains unsupported EAPI '5':

  • Quote

Post by Xywa » Sun Feb 10, 2013 10:19 am

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: Select all

# 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: Select all

# 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.
<mod="jmbsvicetto">Unstuck the topic</mod>
Last edited by Xywa on Thu Feb 14, 2013 7:16 am, edited 1 time in total.
Top
ronsu
n00b
n00b
Posts: 2
Joined: Sun Feb 10, 2013 11:52 am

  • Quote

Post by ronsu » Sun Feb 10, 2013 11:56 am

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(?).
Top
dilfridge
Developer
Developer
User avatar
Posts: 121
Joined: Sat Sep 18, 2010 11:38 am
Location: Regensburg, Germany
Contact:
Contact dilfridge
Website

  • Quote

Post by dilfridge » Sun Feb 10, 2013 2:17 pm

Just upgrade first your portage before you switch profile. Then all should be fine.
Top
dilfridge
Developer
Developer
User avatar
Posts: 121
Joined: Sat Sep 18, 2010 11:38 am
Location: Regensburg, Germany
Contact:
Contact dilfridge
Website

  • Quote

Post by dilfridge » Sun Feb 10, 2013 2:29 pm

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: Select all

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...
Top
robdd
Tux's lil' helper
Tux's lil' helper
Posts: 142
Joined: Sun Jan 02, 2005 12:55 am
Location: Sydney Australia

Thanks

  • Quote

Post by robdd » Thu Feb 14, 2013 12:45 am

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
Top
Xywa
Veteran
Veteran
User avatar
Posts: 1631
Joined: Sat Jul 23, 2005 2:00 pm
Location: /mnt/Gentoo/Europe

  • Quote

Post by Xywa » Thu Feb 14, 2013 7:17 am

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 8) :D 8) :D :P
Top
Vieri
l33t
l33t
Posts: 935
Joined: Sun Dec 18, 2005 12:26 pm

  • Quote

Post by Vieri » Fri Feb 22, 2013 9:33 am

Maybe it would be useful to add a warning line in the message:
!!! 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
Please upgrade to the following profile if possible
I'd prefer to read something like
Please emerge latest portage and then upgrade to the following profile if possible
.
Top
leandroecomp
n00b
n00b
User avatar
Posts: 4
Joined: Fri Jun 25, 2010 7:47 am
Location: Rio Grande - RS - Brazil

  • Quote

Post by leandroecomp » Mon Mar 25, 2013 5:17 pm

Code: Select all

eselect profile set 0
emerge -u portage
eselect profile set 1
It works for me! :D
Top
libertytrek
Apprentice
Apprentice
Posts: 258
Joined: Wed Jul 18, 2007 4:58 pm

  • Quote

Post by libertytrek » Mon Apr 15, 2013 9:52 pm

leandroecomp wrote:

Code: Select all

eselect profile set 0
emerge -u portage
eselect profile set 1
It works for me! :D
Me too, thanks!
Top
tox2ik
n00b
n00b
Posts: 15
Joined: Mon Jun 15, 2009 11:24 pm

Just get the new portage.

  • Quote

Post by tox2ik » Thu Apr 25, 2013 6:32 pm

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: Select all

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.


Top
libertytrek
Apprentice
Apprentice
Posts: 258
Joined: Wed Jul 18, 2007 4:58 pm

Re: Just get the new portage.

  • Quote

Post by libertytrek » Thu Apr 25, 2013 6:45 pm

Top-posting because what tox2ik wrote below makes no sense when:

Code: Select all

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: Select all

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.


Top
kalashnikov3dx
n00b
n00b
Posts: 4
Joined: Mon Feb 01, 2010 7:29 am

Re: Just get the new portage.

  • Quote

Post by kalashnikov3dx » Sat Apr 27, 2013 7:25 am

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: Select all

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.


Top
libertytrek
Apprentice
Apprentice
Posts: 258
Joined: Wed Jul 18, 2007 4:58 pm

Re: Just get the new portage.

  • Quote

Post by libertytrek » Sat Apr 27, 2013 3:50 pm

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?
Top
gary987
n00b
n00b
Posts: 15
Joined: Sat Oct 07, 2006 1:09 am

  • Quote

Post by gary987 » Wed May 08, 2013 12:44 am

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
Top
vrghost
n00b
n00b
Posts: 64
Joined: Fri Oct 03, 2003 1:05 pm
Location: London

  • Quote

Post by vrghost » Fri Apr 11, 2014 10:19 am

So, same story, my server was of the internet for about two months, then when I finally got back online, I got the following error when trying to run emerge

Code: Select all

ParseError: Profile contains unsupported EAPI '': '/usr/portage/profiles/default/linux/amd64/eapi'
(Mine did not have a EAPI number at all)
So after cursing, and considering starting over and rebuild I thought I would at least try to see if I could fool it
I basically took each file it complained about (above /usr/portage/profiles/default/linux/amd64/eapi) and put a 5 in there, was about five files
I then had an issue where it complained about Digest failed (basically portage files where all wrong, so I moved portage (/usr/portage to /usr/portage-old) recreated it and ran emerge --sync

Seems like that worked, portage just updated
Top
dbeach7
n00b
n00b
Posts: 1
Joined: Sun May 25, 2014 8:16 pm
Location: San Francisco

Still not working for me

  • Quote

Post by dbeach7 » Sun May 25, 2014 8:23 pm

I am trying to update a system that has not been touched for a very long time and I cannot emerge portage. I followed the instructions posted in the news:
1.) Do not panic.
2.) Download a portage snapshot from
http://dev.gentoo.org/~zerochaos/snapshots
3.) Unpack the snapshot to ~/tmp
4.) If you are not already, become root
5.) # rsync --recursive --links --safe-links --perms --times --force \
--whole-file --delete --stats --human-readable \
--exclude=/distfiles --exclude=/local --exclude=/packages \
--verbose --progress --omit-dir-times /tmp/portage /usr/portage
6.) # chown portage.portage -R /usr/portage
6.) If needed, set your profile to a modern one (typically named 13.0)
7.) # eselect profile list
8.) # eselect profile set <desired profile>
9.) emerge --update --oneshot portage
I continue to get the message "ParseError: Profile contains unsupported EAPI '5': '/usr/portage/profiles/default/linux/amd64/13.0/desktop/kde/eapi' ". I tried the suggestion to do

Code: Select all

eselect profile set 0
but that does not appear to have any effect at all, it still tries the previously set profile when I attempt to emerge anything. Anybody knows a way out of this box?
Top
tpeland
n00b
n00b
Posts: 2
Joined: Thu Jan 02, 2003 6:40 pm

solution

  • Quote

Post by tpeland » Mon Aug 18, 2014 11:01 am

I just used the following for a system that had not been upgraded for over 2 years.
I encountered the problem after running first "emerge --sync".

# first make sure you have a valid /etc/make.profile (look previous messages if you need help)

# then mark that you only need eapi level 3 no matter what profile you have
cd /usr/portage/profiles
find -name eapi | ( while read a ; do echo "3" >$a ; done)

# upgrade portage to version that understands eapi 5 and restore portage
emerge --update --oneshot portage
emerge --sync
Top
gentoorax
n00b
n00b
Posts: 2
Joined: Mon Nov 19, 2007 11:41 pm

  • Quote

Post by gentoorax » Sun Jan 04, 2015 12:10 pm

tpeland - this just came in very handy for me today and worked :)

glad you posted.
Top
jansordid
n00b
n00b
Posts: 1
Joined: Fri Jan 23, 2015 2:45 pm

  • Quote

Post by jansordid » Fri Jan 23, 2015 2:53 pm

Thanks, that helped @gentoorax.

I needed to execute:

Code: Select all

rm /usr/portage/metadata/timestamp.chk
this prior to the last

Code: Select all

emerge --sync
in addition i needed to set my python targets in make.conf to:

Code: Select all

PYTHON_TARGETS="python2_7"
PYTHON_SINGLE_TARGET="python2_7"
since my installed 3.* version did not suffice, and a newer one would not install.
Top
Drakanor
n00b
n00b
Posts: 22
Joined: Thu Apr 07, 2005 2:41 pm

  • Quote

Post by Drakanor » Tue Feb 03, 2015 2:54 pm

I have the same issue as dbeach7. None of the solutions mentioned above is working for me.

When I'm staying on EAPI 5, portage refuses to emerge anything. No matter what profile I'm setting it to. Manually linking to a none-13 profile doesn't change anything as well.

When manually setting EAPI to <5, emerge --sync completes, but I can't upgrade portage:

Code: Select all

# emerge --update --oneshot portage

Calculating dependencies... done!

!!! The following update has been skipped due to unsatisfied dependencies:

sys-apps/portage:0

!!! All ebuilds that could satisfy "dev-python/pyxattr[python_targets_python2_7]" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-python/pyxattr-9999::gentoo (masked by: EAPI 5)
- dev-python/pyxattr-0.5.3::gentoo (masked by: EAPI 5)
- dev-python/pyxattr-0.5.2::gentoo (masked by: EAPI 5)

The current version of portage supports EAPI '4'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.
(dependency required by "sys-apps/portage-2.2.8-r2[xattr,python_targets_python2_7]" [ebuild])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Now I'm completely stuck, looks like I can't upgrade a GenToo system which is that old (~2 years).
Top
subdriver
n00b
n00b
Posts: 29
Joined: Tue Mar 23, 2010 11:30 am

  • Quote

Post by subdriver » Sat Feb 21, 2015 12:17 pm

I'm in the same boat, running up a box that's been in storage for some time (built on 2.6.38, probably not updated much since).
I followed the advice in the 2014-03-12-profile-eapi-5 news, still getting the message regarding eapi 5. Tried the trick of setting the eapi to 3, it tries to emerge portage, but then returns the message 'fetch failed.....portage-2.2.8-r2" which makes me think it isn't sync'd. So, did emerge--sync whic appears to work, when I run emerge portage, I get the unsupported eapi value 5 error again. So go back to changing the value to 3, then running emerge --search portage and it's showing 2.2.8 as the latest version which I gather isn't the case, so I guess it isn't sync'd.
What next?
Top
subdriver
n00b
n00b
Posts: 29
Joined: Tue Mar 23, 2010 11:30 am

  • Quote

Post by subdriver » Sat Feb 21, 2015 12:27 pm

OK, so I checked the distfiles and 2.2.8-r2 IS the latest, which makes me wonder why someone had suggested getting 2.2.14 from a tarball and copying that into the portage tree. So, why can't I download 2.2.8-r2 I wonder?
Top
subdriver
n00b
n00b
Posts: 29
Joined: Tue Mar 23, 2010 11:30 am

  • Quote

Post by subdriver » Sat Feb 21, 2015 12:58 pm

OK, so I just realised that I can't FTP from here; we moved house last year and changed broadband services, the new service doesn't allow me to ftp, so I need to sort that out first (indeed, it may well be the problem).
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Feb 21, 2015 1:53 pm

subdriver,

emerge --sync uses rsync which expects to connect to TCP port 873.
web-sync uses port 80

Downloading tarballs uses a mix of ftp and http but you can choose http mirrors only, in your GENTOO_MIRRORS= list.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
subdriver
n00b
n00b
Posts: 29
Joined: Tue Mar 23, 2010 11:30 am

  • Quote

Post by subdriver » Sat Feb 21, 2015 5:17 pm

Thanks for that; I have found that it was a simple matter of setting up port-forwarding in the mode-router, so I've progressed sum. I've now hit another problem that I'm going to research on here before I ask for help.
Top
Post Reply

34 posts
  • 1
  • 2
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic