Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken Portage?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Googa
n00b
n00b


Joined: 08 Jan 2003
Posts: 16

PostPosted: Wed Oct 12, 2005 12:07 am    Post subject: Broken Portage? Reply with quote

When I try to use the 'emerge' command, I get the following results:

Code:

Sylvia / # emerge -up portage

These are the packages that I would merge, in order:

!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct?  Is your portage tree complete?

Sylvia / #


I'm at a loss here - I do see that the /etc/make.profile symlink is there... but I don't really know much about how to see if it's 'correct', or about how to check if my portage tree is complete. How do I proceed?

Thanks in advance...
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Wed Oct 12, 2005 1:06 am    Post subject: Reply with quote

To see where is it pointing do:
Code:

ls -l /etc/make.profile


Make sure that you write "make.profile" and not "make.profile/", because on the second way you will list the contents of the directory where it is pointing. If it is a link, see where it is pointing. It should be something like:

Code:

[ ~ ]-[0]: ls -l /etc/make.profile
lrwxrwxrwx  1 root root 48 oct  6 06:08 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.1

or maybe "../usr/portage/profiles/default-linux/amd64/2005.1" if you are using amd64 instead of x86.

If make.profile is indeed a link, make sure that the place where it is pointing exists (you can do that with 'ls' too).

If make.profile is not a link, then it is a file. Remove it and create the correct link with 'ls -s', for example, for x85 would be:

Code:

ln -s /usr/portage/profiles/default-linux/x86/2005.1 /etc/make.profile


Another possibility is that portage is empty or got messes for something. In that case "emerge sync" and then check the link again.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Googa
n00b
n00b


Joined: 08 Jan 2003
Posts: 16

PostPosted: Wed Oct 12, 2005 2:24 am    Post subject: Reply with quote

woohoo!

Thanks a lot... that make.profile was aimed at:

Code:

Sylvia x86 # ls -l /etc/make.profile
lrwxrwxrwx  1 root root 37 Jan  9  2003 /etc/make.profile -> /usr/portage/profiles/default-x86-1.4


I got a step further, and hit another error... it should be okay now, though.

Thanks!
Back to top
View user's profile Send private message
Mingus_Iamblichus
n00b
n00b


Joined: 19 Oct 2005
Posts: 4

PostPosted: Wed Oct 19, 2005 7:45 pm    Post subject: Problem with emerge sync Reply with quote

/* Yesterday's Problem

After a recent 'emerge sync', my ability to emerge anything else is hampered by the following message:

!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?

I am unfamiliar with working with these dir's and have no idea about symlink. I can see now that the command i should have typed is 'emerge --sync' and not 'emerge sync'. I am working with a DSL connection. Can anyone help.

*/

Then I was referred to this thread...I was wondering if you could help? I still can't emerge. The file (/etc/make.profile -> ../usr/portage/profiles/default-x86-1.4) points to a dir or file that doeasn't exist. So your advice has gotten me this far. But what do I do now that I know that this? How do I creat what it needs to point to?
_________________
~-Mingus Iamblichus
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Oct 19, 2005 8:01 pm    Post subject: Re: Problem with emerge sync Reply with quote

Mingus_Iamblichus wrote:
!!! ARCH is not set... Are you missing the /etc/make.profile symlink?

The file (/etc/make.profile -> ../usr/portage/profiles/default-x86-1.4) points to a dir or file that doeasn't exist.

You should run:
Code:
cd /etc
ln -snf ../usr/portage/profiles/default-linux/x86/2005.1 make.profile
emerge --sync
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Wed Oct 19, 2005 8:04 pm    Post subject: Reply with quote

I said in the above post, anyway here it is again: just do this:
Code:

rm /etc/make.profile
ln -s /usr/portage/profiles/default-linux/x86/2005.1 /etc/make.profile

This is for x86, if you own and amd64 just change x86 for amd64 in that command line. For other architectures the thing may be a bit different.

What we do here is to remove the link, and then recreate it pointing to a right folder. Make sure that, after that, the link is ok.
Code:

ls -l /etc/make.profile


If it is ok, then make sure also that you upgrade, at least, the system packages with a "emerge -uDva system".
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Mingus_Iamblichus
n00b
n00b


Joined: 19 Oct 2005
Posts: 4

PostPosted: Wed Oct 19, 2005 8:26 pm    Post subject: concerning the rm Reply with quote

you recommend 'rm /etc/make.profile'

should that be rmdir and should i back it up?
_________________
~-Mingus Iamblichus
Back to top
View user's profile Send private message
Mingus_Iamblichus
n00b
n00b


Joined: 19 Oct 2005
Posts: 4

PostPosted: Wed Oct 19, 2005 8:30 pm    Post subject: emerge problems Reply with quote

Ok I followed your advice, Master. but then I got this message:

!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)

any thoughts?
_________________
~-Mingus Iamblichus
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Wed Oct 19, 2005 9:11 pm    Post subject: Re: emerge problems Reply with quote

Mingus_Iamblichus wrote:
you recommend 'rm /etc/make.profile'
should that be rmdir and should i back it up?

No. /etc/make.profile is not a directory, is a symlink to a directory. In case you dont know, symlinks are kind of like the Windows direct links. In this case it is a link to a directory under /usr/portage/profiles, which contains a lot of dirs with the different profile for all the architectures in which Gentoo can run on.
If you delete the symlink with "rm /etc/make.profile" the link goes off, and you can recreate a new one, but no real content is erased in your hd. It is like deleting a shortcut icon in the windows desktop: the real thing remains untouched.

Mingus_Iamblichus wrote:

!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)

Probably your portage is corrupt or some files are missing. The best you can do before trying anything else is do a "emerge sync" to download the current portage. Then the thing should go smooth. To do so better do what the error message suggests:
Code:

rm -Rf /usr/portage/profiles && emerge sync

_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Mingus_Iamblichus
n00b
n00b


Joined: 19 Oct 2005
Posts: 4

PostPosted: Thu Oct 20, 2005 8:55 pm    Post subject: new discovery - bad mirror 4 emerge sync Reply with quote

I think it may be a bad mirror site that emerge sync is going to...know any good mirrors and how do i set it?
_________________
~-Mingus Iamblichus
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Sat Oct 29, 2005 4:04 pm    Post subject: Reply with quote

any solution yet? I have the exact same problem and I can't get it fixed with
Code:

rm -Rf /usr/portage/profiles && emerge sync

updateting portage or system won't work either because it gives the same error
Code:

!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)

_________________
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sat Oct 29, 2005 4:50 pm    Post subject: Reply with quote

Again, it is not enough to just remove and re-sync the profiles, you need to fix the link. Remove /etc/make.profile and relink aconrdingly. Look above for more info.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9236
Location: beyond the rim

PostPosted: Sat Oct 29, 2005 4:55 pm    Post subject: Reply with quote

You need a not-so-ancient portage version first (see https://forums.gentoo.org/viewtopic-t-220503.html)
Back to top
View user's profile Send private message
mariourk
l33t
l33t


Joined: 11 Jul 2003
Posts: 807
Location: Urk, Netherlands

PostPosted: Sat Oct 29, 2005 9:54 pm    Post subject: Reply with quote

I followed the instructions I found in
Code:

/usr/portage/sys-apps/portage/files/README.RESCUE

and this fixed the whole thing. :D
_________________
If there is one thing to learn from history, it's that we usualy don't learn anything from it, at all.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Oct 31, 2005 3:58 pm    Post subject: Reply with quote

Genone wrote:
You need a not-so-ancient portage version first (see https://forums.gentoo.org/viewtopic-t-220503.html)

Moved from Portage & Programming to Duplicate Threads.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
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