View previous topic :: View next topic |
Author |
Message |
LotSX n00b
Joined: 25 Mar 2015 Posts: 14
|
Posted: Sat Mar 28, 2015 9:52 am Post subject: dont understand emerge errors |
|
|
Hi, so I'm using Funtoo but I figured its Portage shouldn't be too different from Gentoo's. This is my first installation and I've only just finished getting the desktop environment to work and installing a couple of programs.
Solved:
Quote: | Whenever I try to emerge without running su, this happens:
Quote: | ray@livecd ~ $ emerge --sync
emerge: portage group access is required
*** WARNING *** For security reasons, only system administrators should be
*** WARNING *** allowed in the portage group. Untrusted users or processes
*** WARNING *** can potentially exploit the portage group for attacks such as
*** WARNING *** local privilege escalation.
ray@livecd ~ $ sudo emerge --sync
Password:
Sorry, user ray is not allowed to execute '/usr/bin/emerge --sync' as root on livecd. |
If I run su, emerge works perfectly fine. How can I fix this? |
My other problem is that I'm currently not well understanding the error outputs that emerge is giving me. Here is an example:
Quote: | livecd ray # emerge -auDN @world
These are the packages that would be merged, in order:
Calculating dependencies |
!!! Problem resolving dependencies for media-video/vlc from @selected
... done!
!!! The ebuild selected to satisfy "media-video/vlc" has unmet requirements.
- media-video/vlc-2.2.0::gentoo USE="X a52 alsa avcodec avformat bluray cdda dbus dts dvbpsi dvd encode faad ffmpeg flac gcrypt gnome ieee1394 jpeg libass libnotify matroska mp3 mpeg mtp ncurses ogg opengl png postproc pulseaudio qt4 qt5 sdl svg swscale taglib theora truetype twolame udev v4l vorbis vpx x264 x265 xcb xml -aalib (-altivec) -atmo (-audioqueue) -avahi -bidi -cddb -chromaprint -dc1394 -debug -directfb (-directx) -dvb (-dxva2) -fdk -fluidsynth -fontconfig -gme -gnutls -growl -httpd -jack -kate -kde (-libav) -libcaca -libsamplerate -libtar -libtiger -linsys -lirc -live -lua (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-media-library) -modplug -musepack (-neon) -omxil -opencv -optimisememory -opus -oss -projectm (-rdp) -rtsp -run-as-root -samba -schroedinger -sdl-image -sftp -shout -sid -skins -speex -test -tremor -upnp -vaapi -vcdx -vdpau -vlm -vnc -wma-fixed -xv -zvbi" CPU_FLAGS_X86="mmx sse"
The following REQUIRED_USE flag constraints are unsatisfied:
qt4? ( !qt5 ) qt5? ( !qt4 )
The above constraints are a subset of the following complete expression:
aalib? ( X ) bidi? ( truetype ) cddb? ( cdda ) dvb? ( dvbpsi ) dxva2? ( avcodec ) ffmpeg? ( avcodec avformat swscale ) fontconfig? ( truetype ) gnutls? ( gcrypt ) httpd? ( lua ) libcaca? ( X ) libtar? ( skins ) libtiger? ( kate ) qt4? ( X !qt5 ) qt5? ( X !qt4 ) sdl? ( X ) skins? ( truetype X exactly-one-of ( qt4 qt5 ) ) vaapi? ( avcodec X ) vlm? ( encode ) xv? ( xcb )
(dependency required by "@selected" [set])
(dependency required by "@world" [argument]) |
Is this asking me to add all of those USE flags to my make.conf?
Lastly, I was wondering why it's still calling it livecd in my terminal when I've stopped using the CD.
Last edited by LotSX on Sat Mar 28, 2015 7:57 pm; edited 3 times in total |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sat Mar 28, 2015 11:35 am Post subject: |
|
|
You have to emerge packages as root because only root can write to the entire filesystem to add the package.
Either log in as root with "su -" and the root password, or use "sudo su" and your user password if your system
is set up that way.
It looks as if you need to set the qt4 or qt5 flag somewhere, at least to emerge vlc.
Will |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sat Mar 28, 2015 12:17 pm Post subject: |
|
|
Moved from Portage & Programming to Unsupported Software.
Funtoo is not offically supported. That does not mean that this thread will not get support.
It avoids Gentoo uses following a thread that may not work for 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 |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Sat Mar 28, 2015 1:40 pm Post subject: |
|
|
Using su and sudo to run commands with root user privileges can have different results, as you can see in the examples below. Most Ubuntu users only know about the sudo command, as su is disabled by default in Ubuntu. In other distributions I use su to become the root user when performing administrative tasks, in order to avoid any unforeseen problems due to the path and environment.
Path and home directory of your user account
Look at the path and default (home) directory when I am logged in under my own user name (fitzcarraldo):
fitzcarraldo@meshedgedx ~ $ echo $SHELL
/bin/bash
fitzcarraldo@meshedgedx ~ $ whoami
fitzcarraldo
fitzcarraldo@meshedgedx ~ $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3:/usr/games/bin
fitzcarraldo@meshedgedx ~ $ cd ~
fitzcarraldo@meshedgedx ~ $ pwd
/home/fitzcarraldo
fitzcarraldo@meshedgedx ~ $
Path and home directory when you use sudo
Now let's see what the path and default (home) directory are when I use the sudo command:
fitzcarraldo@meshedgedx ~ $ echo $SHELL
/bin/bash
fitzcarraldo@meshedgedx ~ $ sudo -s whoami
Password:
root
fitzcarraldo@meshedgedx ~ $ sudo -s echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3:/usr/games/bin
fitzcarraldo@meshedgedx ~ $ sudo -s cd ~
fitzcarraldo@meshedgedx ~ $ sudo -s pwd
/home/fitzcarraldo
fitzcarraldo@meshedgedx ~ $
fitzcarraldo@meshedgedx ~ $ sudo -s
Password:
meshedgedx fitzcarraldo # echo $SHELL
/bin/bash
meshedgedx fitzcarraldo # whoami
root
meshedgedx fitzcarraldo # echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin
meshedgedx fitzcarraldo # cd ~
meshedgedx ~ # pwd
/root
meshedgedx ~ # exit
exit
fitzcarraldo@meshedgedx ~ $
N.B. The sudo man page tells you that the -s (shell) option runs the shell specified by the SHELL environment variable if it is set or the shell as specified in /etc/passwd (the password database). If a command is specified, it is passed to the shell for execution. Otherwise, an interactive shell is executed.
Path and home directory of the root user
Now let's see what the path and default (home) directory are when I am the root user:
fitzcarraldo@meshedgedx ~ $ su
Password:
meshedgedx fitzcarraldo # echo $SHELL
/bin/bash
meshedgedx fitzcarraldo # whoami
root
meshedgedx fitzcarraldo # echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin
meshedgedx fitzcarraldo # cd ~
meshedgedx ~ # pwd
/root
meshedgedx ~ # exit
exit
fitzcarraldo@meshedgedx ~ $
Summary
As you can see above, the path and default directory are not the same if you use the sudo and su commands. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sat Mar 28, 2015 5:30 pm Post subject: |
|
|
cwr wrote: | You have to emerge packages as root because only root can write to the entire filesystem to add the package.
Either log in as root with "su -" and the root password, or use "sudo su" and your user password if your system
is set up that way. |
make that: ..or use sudo su - |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
LotSX n00b
Joined: 25 Mar 2015 Posts: 14
|
Posted: Sat Mar 28, 2015 8:02 pm Post subject: |
|
|
cwr wrote: |
It looks as if you need to set the qt4 or qt5 flag somewhere, at least to emerge vlc.
Will |
When I add those as USE flags in my make.conf: https://bpaste.net/show/cad14903d72b
I get the same error:
Quote: | livecd ray # emerge -auDN @world
These are the packages that would be merged, in order:
Calculating dependencies |
!!! Problem resolving dependencies for media-video/vlc from @selected
... done!
!!! The ebuild selected to satisfy "media-video/vlc" has unmet requirements.
- media-video/vlc-2.2.0::gentoo USE="X a52 alsa avcodec avformat bluray cdda dbus dts dvbpsi dvd encode faad ffmpeg flac fontconfig gcrypt gnome ieee1394 jpeg libass libnotify matroska mp3 mpeg mtp ncurses ogg opengl png postproc pulseaudio qt4 qt5 sdl svg swscale taglib theora truetype twolame udev v4l vorbis vpx x264 x265 xcb xml -aalib (-altivec) -atmo (-audioqueue) -avahi -bidi -cddb -chromaprint -dc1394 -debug -directfb (-directx) -dvb (-dxva2) -fdk -fluidsynth -gme -gnutls -growl -httpd -jack -kate -kde (-libav) -libcaca -libsamplerate -libtar -libtiger -linsys -lirc -live -lua (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-media-library) -modplug -musepack (-neon) -omxil -opencv -optimisememory -opus -oss -projectm (-rdp) -rtsp -run-as-root -samba -schroedinger -sdl-image -sftp -shout -sid -skins -speex -test -tremor -upnp -vaapi -vcdx -vdpau -vlm -vnc -wma-fixed -xv -zvbi" CPU_FLAGS_X86="mmx sse"
The following REQUIRED_USE flag constraints are unsatisfied:
qt4? ( !qt5 ) qt5? ( !qt4 )
The above constraints are a subset of the following complete expression:
aalib? ( X ) bidi? ( truetype ) cddb? ( cdda ) dvb? ( dvbpsi ) dxva2? ( avcodec ) ffmpeg? ( avcodec avformat swscale ) fontconfig? ( truetype ) gnutls? ( gcrypt ) httpd? ( lua ) libcaca? ( X ) libtar? ( skins ) libtiger? ( kate ) qt4? ( X !qt5 ) qt5? ( X !qt4 ) sdl? ( X ) skins? ( truetype X exactly-one-of ( qt4 qt5 ) ) vaapi? ( avcodec X ) vlm? ( encode ) xv? ( xcb )
(dependency required by "@selected" [set])
(dependency required by "@world" [argument]) |
|
|
Back to top |
|
|
ct85711 Veteran
Joined: 27 Sep 2005 Posts: 1791
|
Posted: Sat Mar 28, 2015 9:48 pm Post subject: |
|
|
The message was saying you can not have both qt4 and qt5 enabled.
The '!' mark is saying NOT.
So for this statement qt4? ( !qt5 ) Is saying: If qt4 is set then qt5 can NOT be set. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Sat Mar 28, 2015 9:56 pm Post subject: |
|
|
LotSX,
The error also says
Code: | exactly-one-of ( qt4 qt5 ) ) |
Posting the entire output of Code: | emerge -pvuDN @world | will help us to help you.
wgetpaste is your friend. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
LotSX n00b
Joined: 25 Mar 2015 Posts: 14
|
Posted: Mon Mar 30, 2015 5:35 pm Post subject: |
|
|
Thanks, removing the USE flags until there was only one solved the problem.
I'm still having trouble understanding the error outputs from my emerge, though. I ran emerge -uavDN @world | wgetpaste and this is the output: https://bpaste.net/show/d93786ef9ee6 . From the looks of it, I think there's a conflict between two patches of xorg-server. How can I solve that?
EDIT: This part did not get into the bpaste for some reason:
Quote: | !!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:
x11-base/xorg-server:0
(x11-base/xorg-server-1.16.4-r1::gentoo, ebuild scheduled for merge) pulled in by
<x11-base/xorg-server-1.17.99:0/1.16.1= required by (x11-drivers/nvidia-drivers-349.12::gentoo, installed)
x11-base/xorg-server:0/1.16.1= required by (x11-drivers/xf86-video-intel-2.99.917::gentoo, installed)
x11-base/xorg-server:0/1.16.1= required by (x11-drivers/xf86-input-keyboard-1.8.0::gentoo, installed)
x11-base/xorg-server:0/1.16.1= required by (x11-drivers/xf86-input-mouse-1.9.1::gentoo, installed)
x11-base/xorg-server:0/1.16.1= required by (x11-drivers/xf86-video-modesetting-0.9.0::gentoo, installed)
(x11-base/xorg-server-1.17.1-r1::gentoo, ebuild scheduled for merge) pulled in by
(no parents that aren't satisfied by other packages in this slot)
It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously. If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.
For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook. |
|
|
Back to top |
|
|
|