Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get emerge to work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
remedylane
n00b
n00b


Joined: 07 Dec 2005
Posts: 5

PostPosted: Wed Dec 07, 2005 9:51 am    Post subject: Can't get emerge to work Reply with quote

Hello,
I've not been using Gentoo for quite a long time. Today I decided to start using it again on my laptop.
I had this old installation (I installed it something like 6 months ago) and the first thing I tried to do was to update the portage tree in order to do an "emerge --update --deep world" after that.
So at first I did an emerge --sync. At 90% of "updating portage cache" it stopped with the following error:

Cannot resolve a virtual package name to an ebuild.
!!! This is a bug, please report it. (virtual/x11-6.8)

Moreover, when I try to emerge something, I get this:

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


As you may notice, I'm not exactly an expert.
Any suggestions?

Thanks in advance
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Wed Dec 07, 2005 9:58 am    Post subject: Reply with quote

Well, the second error says it fails 'cause the sync didn't finish so that's normal.

I have no idea what the first error means but you might want to check your filesystem. I had problems once 'cause I ran out of inodes!

try this
Code:
df -hi /usr/portage


Have you also tried another mirror to sync from?

Let me know if you need more help... I'll read a bit more and see if I find anything.
Ed.
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
remedylane
n00b
n00b


Joined: 07 Dec 2005
Posts: 5

PostPosted: Wed Dec 07, 2005 10:02 am    Post subject: Reply with quote

Hi Ed and thanks for your reply.
I ran that command, but I haven't run out of inodes:is

Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/hda4 1.2M 290K 841K 26% /


I ran the emerge --sync at least 3 times and I always get that error with the same library (virtual/x11-6.8).
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Wed Dec 07, 2005 10:13 am    Post subject: Reply with quote

Have you tried using another server to sync from?

Not too sure where you are from and it might be slow for you but it's just to test if it works.

Open /etc/make.conf and comment out your GENTOO_MIRRORS line and replace it with mine

... then run
Code:
# emerge --sync

again. If it fails, post the output of the following command:
Code:
# emerge --info

_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
UncleOwen
Veteran
Veteran


Joined: 27 Feb 2003
Posts: 1493
Location: Germany, Hamburg

PostPosted: Wed Dec 07, 2005 10:15 am    Post subject: Re: Can't get emerge to work Reply with quote

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


Where does that symlink point to?
Code:
ls -FGg /etc/make.profile
Back to top
View user's profile Send private message
remedylane
n00b
n00b


Joined: 07 Dec 2005
Posts: 5

PostPosted: Wed Dec 07, 2005 10:20 am    Post subject: Reply with quote

Unfortunately it fails again, even with your rsync server.
Here's my "emerge --info" output:

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 16 2005, 15:30:15)]
dev-lang/python: 2.3.4-r1
sys-apps/sandbox: [Not Present]
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.5, 1.9.4, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.4.21-r1
ACCEPT_KEYWORDS=""
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa avi bash-completion cdr cups divx4linux doc dvd dvdread gif gnome gtk gtk2 icq java lm_sensors mp3 mpeg msn png pnp samba usb xmms"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Wed Dec 07, 2005 10:27 am    Post subject: Reply with quote

My mistake.... misread your mail... you already got your packages so you can revert back to your old settings.

UncleOwen is right then, have a look at what you get when you run his ls. I get:

Code:

$ ls -FGg /etc/make.profile
lrwxrwxrwx  1 48 Aug 11 12:36 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.1/


Let us know ;)
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
remedylane
n00b
n00b


Joined: 07 Dec 2005
Posts: 5

PostPosted: Wed Dec 07, 2005 10:28 am    Post subject: Re: Can't get emerge to work Reply with quote

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


Where does that symlink point to?
Code:
ls -FGg /etc/make.profile


This is it:

Code:
lrwxrwxrwx  1 48 Feb 16  2005 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2004.3
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Wed Dec 07, 2005 12:14 pm    Post subject: Reply with quote

Code:
# rm /etc/make.profile
# ln -sn /usr/portage/profiles/default-linux/x86/2005.1 /etc/make.profile
# emerge --metadata
This should fix your problems. :)
Back to top
View user's profile Send private message
remedylane
n00b
n00b


Joined: 07 Dec 2005
Posts: 5

PostPosted: Wed Dec 07, 2005 12:59 pm    Post subject: Reply with quote

mark_alec wrote:
Code:
# rm /etc/make.profile
# ln -sn /usr/portage/profiles/default-linux/x86/2005.1 /etc/make.profile
# emerge --metadata
This should fix your problems. :)



Ok I did what you said.
The emerge --metadata still gives the same error on that package, BUT emerge now works again :)
I'll try to do the emerge --update --deep --world later.
Still don't know why it gives me that sync error...

Anyway, thanks a lot :)
Back to top
View user's profile Send private message
Sunnz
Guru
Guru


Joined: 18 Jun 2005
Posts: 370

PostPosted: Thu Dec 08, 2005 1:42 pm    Post subject: Reply with quote

I too have that error.

emerge seems to work now... but does that mean sync doesn't work? That is, would I be able to get the newest releases?
Back to top
View user's profile Send private message
lecleremi
n00b
n00b


Joined: 09 Dec 2005
Posts: 10
Location: Montréal

PostPosted: Fri Dec 09, 2005 4:13 am    Post subject: Reply with quote

hi.

I got exactly the same problem yesterday when I tried to install gentoo on a Compaq Laptop. I used a stage 3, 2005.0, downloaded 6 months ago. I got:

Cannot resolve a virtual package name to an ebuild.
!!! This is a bug, please report it. (virtual/x11-6.8 )

Then I used a stage 3, 2005.1-r1 and this problem disappeared. Don't know why. Emerge sync works just fine now.

bisou
_________________
R. Leclercq
interests: none.
Back to top
View user's profile Send private message
jmklaus
n00b
n00b


Joined: 09 Dec 2005
Posts: 1

PostPosted: Fri Dec 09, 2005 9:49 am    Post subject: emerge portage Reply with quote

Hi,

I had to emerge the newest portage version (2.0.51.22-r3). Now it works fine.
It even says something about virtual package and inconsistencies that may appear when using older versions and also about a dramatic speed-up (which seems to be true ;-))

Hope this helps!
Back to top
View user's profile Send private message
spitzwegerich
l33t
l33t


Joined: 04 Mar 2003
Posts: 697
Location: Lower Bavaria, Central Europe

PostPosted: Fri Dec 09, 2005 11:59 pm    Post subject: Reply with quote

I had the same problem. Updating portage fixed it for me, too.
_________________
"Work is the curse of the drinking classes."
-Oskar Wilde
Back to top
View user's profile Send private message
Sunnz
Guru
Guru


Joined: 18 Jun 2005
Posts: 370

PostPosted: Sat Dec 10, 2005 4:03 am    Post subject: Reply with quote

Ohh I have to manually download the tarball to update it? I thought that is what sync is suppose to do?
Back to top
View user's profile Send private message
johabba
n00b
n00b


Joined: 23 May 2004
Posts: 22

PostPosted: Sat Dec 10, 2005 6:52 pm    Post subject: Reply with quote

Having a very, very similar problem....

I've installed a new gentoo system on 12/9/05. I did a chroot install from Debian Sarge and exited the chroot to boot Gentoo on its own. Once I finished with the excellent Gentoo Handbook, I changed my USE flags and recompiled everything. I ran

Code:
# USE="-X" emerge -eva world


so I wouldn't have to do X just then. No problems.

This morning did a 'emerge sync' (with no --) and I started the upgrade of gcc from 3.3.5 to 3.4.4. When I try

Code:
emerge -eva system


I get the following (minus all the other packages on my system)

Code:

[blocks B     ] virtual/x11 (is blocking x11-base/xorg-x11-6.8.2-r6)
...
[ebuild  N    ] x11-base/xorg-x11-6.8.2-r6  -3dfx -3dnow +bitmap-fonts -cjk -debug -dlloader -dmx -doc -font-server -insecure-drivers -ipv6 -minimal -mmx +nls -nocxx +opengl +pam -sdk -sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 45,134 kB
[ebuild  N    ] virtual/x11-6.8  0 kB
...
!!! Error: The above package list contains packages which cannot be installed
!!!        on the same system.


My portage:

Code:
[ebuild   R   ] sys-apps/portage-2.0.51.22-r3  -build (-selinux) 0 kB


My profile:

Code:
lrwxrwxrwx  1 48 Dec 10 00:02 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.1/


I have re-re-re installed portage. No errors with 'emerge --sync', but if I try to emerge anything that needs X I get blockage.

Seems to be a bug about this, none of the stuff there helps me either.

Code:
http://bugs.gentoo.org/show_bug.cgi?id=114798


Funny thing is, I did an 'emerge sync' then upgraded gcc on another box the day gcc 3.4.4 was marked stable with no issues. Not really a Gentoo n00b. I've been using Gentoo for a couple of years now. This is the first time I haven't been able to find a fix to an issue in forums or /topic in #gentoo.


Please help.
_________________
So Fresh. So Clean. :cool:
Gentoo Linux 2.6.16-custom-r1
AMD Althon XP 3000+
256MB GeForce 7800 GS
2048MB pc3200 Cosair XMS DDR ram
320 GB - 3 ide133 HDD
12x DVD-/+RW
Back to top
View user's profile Send private message
Crenshaw
Guru
Guru


Joined: 23 Jun 2004
Posts: 474
Location: Poland

PostPosted: Sat Dec 10, 2005 7:18 pm    Post subject: Reply with quote

The same here.

johabba wrote:
Having a very, very similar problem....

I've installed a new gentoo system on 12/9/05. I did a chroot install from Debian Sarge and exited the chroot to boot Gentoo on its own. Once I finished with the excellent Gentoo Handbook, I changed my USE flags and recompiled everything. I ran

Code:
# USE="-X" emerge -eva world


so I wouldn't have to do X just then. No problems.

This morning did a 'emerge sync' (with no --) and I started the upgrade of gcc from 3.3.5 to 3.4.4. When I try

Code:
emerge -eva system


I get the following (minus all the other packages on my system)

Code:

[blocks B     ] virtual/x11 (is blocking x11-base/xorg-x11-6.8.2-r6)
...
[ebuild  N    ] x11-base/xorg-x11-6.8.2-r6  -3dfx -3dnow +bitmap-fonts -cjk -debug -dlloader -dmx -doc -font-server -insecure-drivers -ipv6 -minimal -mmx +nls -nocxx +opengl +pam -sdk -sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 45,134 kB
[ebuild  N    ] virtual/x11-6.8  0 kB
...
!!! Error: The above package list contains packages which cannot be installed
!!!        on the same system.


My portage:

Code:
[ebuild   R   ] sys-apps/portage-2.0.51.22-r3  -build (-selinux) 0 kB


My profile:

Code:
lrwxrwxrwx  1 48 Dec 10 00:02 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.1/


I have re-re-re installed portage. No errors with 'emerge --sync', but if I try to emerge anything that needs X I get blockage.

Seems to be a bug about this, none of the stuff there helps me either.

Code:
http://bugs.gentoo.org/show_bug.cgi?id=114798


Funny thing is, I did an 'emerge sync' then upgraded gcc on another box the day gcc 3.4.4 was marked stable with no issues. Not really a Gentoo n00b. I've been using Gentoo for a couple of years now. This is the first time I haven't been able to find a fix to an issue in forums or /topic in #gentoo.


Please help.
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sat Dec 10, 2005 8:49 pm    Post subject: Reply with quote

johabba wrote:

My portage:
Code:
[ebuild   R   ] sys-apps/portage-2.0.51.22-r3  -build (-selinux) 0 kB


I have re-re-re installed portage. No errors with 'emerge --sync', but if I try to emerge anything that needs X I get blockage.

Seems to be a bug about this, none of the stuff there helps me either.

Code:
http://bugs.gentoo.org/show_bug.cgi?id=114798



jstubbs seems to know what's going on. CC yourself on that bug and post that you're hitting this bug with portage-2.0.51.22-r3; he may be able to give you a fix.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
johabba
n00b
n00b


Joined: 23 May 2004
Posts: 22

PostPosted: Sat Dec 10, 2005 11:32 pm    Post subject: Reply with quote

ecatmur wrote:


jstubbs seems to know what's going on. CC yourself on that bug and post that you're hitting this bug with portage-2.0.51.22-r3; he may be able to give you a fix.



Cool. I updated the bug and I think I may have worked around the underlying problem. This is in no way a fix.

I finished the gcc upgrade by running

Code:
USE="-X" emerge -eav system
USE="-X" emerge -eav world


After that I emerged xorg-x11 by itself and portage didn't complain. I'm currently emerging gdm, aterm, fluxbox, and mozilla-firefox-bin. Portage didn't complain about blockage there either. I'm guessing because now the virtual X package is being fulfilled by xorg-x11.

I suspect an 'emerge -e world' or an update to xorg-x11 would bring back the error. I'll find out and report back once my current emerge is done.

EDIT
I ran 'emerge -epv' and no blockage error from portage. I still don't think it's a fix, but I can start using my system again...
_________________
So Fresh. So Clean. :cool:
Gentoo Linux 2.6.16-custom-r1
AMD Althon XP 3000+
256MB GeForce 7800 GS
2048MB pc3200 Cosair XMS DDR ram
320 GB - 3 ide133 HDD
12x DVD-/+RW
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Sun Dec 11, 2005 11:17 am    Post subject: Reply with quote

OK. It seems there was a problem with the ebuild; the fix http://www.gentoo.org/cgi-bin/viewcvs.cgi/x11-base/xorg-x11/xorg-x11-6.8.2-r6.ebuild?r1=1.6&r2=1.7 got committed 20051210 21:34 UTC, so it should have hit most mirrors by now.
_________________
No more cruft
dep: Revdeps that work
Using command-line ACCEPT_KEYWORDS?
Back to top
View user's profile Send private message
sprite
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2003
Posts: 143
Location: Camarillo, California (USA)

PostPosted: Wed Feb 01, 2006 11:34 pm    Post subject: Reply with quote

mark_alec wrote:
Code:
# rm /etc/make.profile
# ln -sn /usr/portage/profiles/default-linux/x86/2005.1 /etc/make.profile
# emerge --metadata
This should fix your problems. :)


i was having this problem too, the above fixed it. Thanks.
_________________
System 0 - Dual Athlon MP 2400+ - 2.6.10-cko3 - gcc 3.3.5 - nptl - x86
System 1 - Dual Opteron 246 - 2.6.10-cko3 - gcc 3.4.3 - nptl - amd64 and never look back..
xfce 4.2.2 across the board..
------------
www.spritefiend.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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