Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Emerging anything fails from chroot env of livecd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
TheMachinesTeacher
n00b
n00b


Joined: 09 Sep 2017
Posts: 48
Location: Somewhere over there

PostPosted: Wed Sep 27, 2017 6:11 pm    Post subject: [Solved] Emerging anything fails from chroot env of livecd Reply with quote

So I cannot emerge vim, nor can I update my @world set with new use. I was trying to install gentoo with a kde-plasma desktop, so my profile was
Code:
default/linux/amd64/13.0/desktop/plasma

but that gave errors about a makefile not having permission in /var/tmp. I figured I was just trying to install too many things at once without having the dependencies so I changed my profile to
Code:
default/linux/amd64/13.0/desktop


So here is emerge --info
Code:

Portage 2.3.6 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r4, 4.5.2-aufs-r1 x86_64)
=================================================================
System uname: Linux-4.5.2-aufs-r1-x86_64-Intel-R-_Xeon-R-_CPU_E5-1620_v2_@_3.70GHz-with-gentoo-2.3
KiB Mem:    32895248 total,  28418408 free
KiB Swap:     524284 total,    524284 free
Timestamp of repository gentoo: Wed, 27 Sep 2017 17:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl seccomp session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 sse3 ssse3 sse4 sse4a sse4_1" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


and emerge -pqv '=sys-apps/net-tools-1.60_p20161110235919::gentoo' because that one is failing, in addition to others so I do not think this issue has to do with only net-tools:
Code:

[ebuild     U ] sys-apps/net-tools-1.60_p20161110235919 [1.60_p20160215155418] USE="arp hostname ipv6 nls -nis -plipconfig (-selinux) -slattach -static"


I believe my CPU_FLAGS_X86 reflects that I am using a Intel Xeon E5-1620V2, but a second pair of eyes is appreciated.


Last edited by TheMachinesTeacher on Sat Sep 30, 2017 6:35 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Sep 27, 2017 6:15 pm    Post subject: Reply with quote

May I ask why are you trying to emerge anything from chroot? Install the base system, reboot into your Gentoo, start emerging.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
TheMachinesTeacher
n00b
n00b


Joined: 09 Sep 2017
Posts: 48
Location: Somewhere over there

PostPosted: Wed Sep 27, 2017 6:17 pm    Post subject: Reply with quote

Isn't updating the @world part of the install process? According to the amd64 handbook it is. I was trying to install vim because I dislike nano. I was successful in doing so on a previous install on another machine, so I doubt this is the problem.

Also I would have to install grub(or something else) to setup a bootloader for gentoo, so I believe emerging some things from the livecd is necessary.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Sep 27, 2017 6:28 pm    Post subject: Reply with quote

I routinely emerge emacs at that point for exactly the same reason you emerge vim. It works just fine. Exact command issued and precise resultant output, please.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30888
Location: here

PostPosted: Wed Sep 27, 2017 6:43 pm    Post subject: Reply with quote

John R. Graham wrote:
I routinely emerge emacs at that point for exactly the same reason you emerge vim. It works just fine. Exact command issued and precise resultant output, please.

Use wgetpaste (or a pastebin service) for post build.log of package that fails because forum truncates messages that are too long
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Wed Sep 27, 2017 7:01 pm    Post subject: Reply with quote

TheMachinesTeacher,

I hate vim and emacs equally :) but I emerge things in the chroot before I reboot.
However, you have to take care that the kernel and glibc provided by the boot media are new enough to support your running system (in the chroot) and the packages you want to emerge.

An error log on a pastebin site would be very useful.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Sep 27, 2017 7:17 pm    Post subject: Reply with quote

BTW, the error about /var/tmp not writable can be bogus. In case the root filesystem wasn't mounted properly everything goes into RAM, and the real reason may be it is out of space. Just guessing, I'm not there watching over shoulder. I still recommend to reboot as early as possible into your own Gentoo. I emerge vim myself in chroot, and NFS tools - I have portage on NFS.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21602

PostPosted: Thu Sep 28, 2017 12:51 am    Post subject: Re: Emerging anything fails from chroot env of livecd Reply with quote

TheMachinesTeacher wrote:
So I cannot emerge vim, nor can I update my @world set with new use. I was trying to install gentoo with a kde-plasma desktop, so my profile was
Code:
default/linux/amd64/13.0/desktop/plasma
but that gave errors about a makefile not having permission in /var/tmp. I figured I was just trying to install too many things at once without having the dependencies so I changed my profile to
Code:
default/linux/amd64/13.0/desktop
If Portage starts a build, and the build fails, that cannot be the fault of insufficient dependencies installed by you. If the build failed due to missing dependencies and you are not overriding Portage's internal dependency resolution, then the ebuild is incorrect and needs more dependencies listed. However, from your vague description of the error, this does not sound like a package dependency problem.
Back to top
View user's profile Send private message
TheMachinesTeacher
n00b
n00b


Joined: 09 Sep 2017
Posts: 48
Location: Somewhere over there

PostPosted: Thu Sep 28, 2017 9:53 pm    Post subject: Reply with quote

Well something strange has happened. I went home yesterday, and when I cam back the partition that I was installing on is completely blank. Everything is missing. I must have done something wrong and that is what led to the earlier errors. Possibly I didn't mount the file system and just tried to install in the livecd. Very strange though as I doubt I would have done that.

Anyway, clearly I have made some mistakes I need to work out, and I will post again if the problem comes up again. Sorry for this.
Back to top
View user's profile Send private message
TheMachinesTeacher
n00b
n00b


Joined: 09 Sep 2017
Posts: 48
Location: Somewhere over there

PostPosted: Fri Sep 29, 2017 4:57 pm    Post subject: Reply with quote

I am having no problems no, so I think I didn't mount the file system and was trying to install gentoo on the livecd. My mistake. I am sorry to have wasted your time.

I really appreciate how quickly you all responded and your willingness to help me. Thank you very much.

How do I mark this as closed, or solved?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Sep 29, 2017 5:18 pm    Post subject: Reply with quote

Edit your first post. Add "[Solved]" as a prefix to the subject line. :)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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