Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] emerge can't fetch packages ARM
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
hincor2100
n00b
n00b


Joined: 01 Mar 2014
Posts: 7

PostPosted: Sat Mar 01, 2014 11:48 am    Post subject: [Solved] emerge can't fetch packages ARM Reply with quote

Im trying to emerge any package with emerge ( for example "slang" a dependency of "mc" or "vim" with deps).
I fetched vim with deps on my remote computer and then pushed them to my tablet to try adb over network. Once the packages were in place I ran emerge -av vim and it sucessfully compiled it and it ran. So I'm sure there are no compilling isuess.
Problem is emerge can't fetch the package slang or any other :
Code:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-libs/slang-2.2.4  USE="pcre readline zlib -cjk -png -static-libs" 1,394 kB
[ebuild  N     ] app-misc/mc-4.8.11  USE="edit nls slang xdg -X -gpm -mclib -samba -sftp -spell {-test}" 2,160 kB

Total: 2 packages (2 new), Size of downloads: 3,554 kB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) sys-libs/slang-2.2.4
 * Fetching files in the background. To view fetch progress, run
 * `tail -f /var/log/emerge-fetch.log` in another terminal.
>>> Downloading 'ftp://ftp.vectranet.pl/gentoo/distfiles/slang-2.2.4.tar.bz2'
--2014-03-01 13:19:58--  ftp://ftp.vectranet.pl/gentoo/distfiles/slang-2.2.4.tar.bz2
           => /usr/portage/distfiles/slang-2.2.4.tar.bz2
Resolving ftp.vectranet.pl... failed: Name or service not known.
wget: unable to resolve host address ftp.vectranet.pl
>>> Downloading 'ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.2/slang-2.2.4.tar.bz2'
--2014-03-01 13:19:58--  ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.2/slang-2.2.4.tar.bz2
           => /usr/portage/distfiles/slang-2.2.4.tar.bz2
Resolving ftp.fu-berlin.de... failed: Name or service not known.
wget: unable to resolve host address ftp.fu-berlin.de
>>> Downloading 'ftp://ftp.ntua.gr/pub/lang/slang/slang/v2.2/slang-2.2.4.tar.bz2'
--2014-03-01 13:19:58--  ftp://ftp.ntua.gr/pub/lang/slang/slang/v2.2/slang-2.2.4.tar.bz2
           => /usr/portage/distfiles/slang-2.2.4.tar.bz2
Resolving ftp.ntua.gr... failed: Name or service not known.
wget: unable to resolve host address ftp.ntua.gr
>>> Downloading 'ftp://space.mit.edu/pub/davis/slang/v2.2/slang-2.2.4.tar.bz2'
--2014-03-01 13:19:58--  ftp://space.mit.edu/pub/davis/slang/v2.2/slang-2.2.4.tar.bz2
           => /usr/portage/distfiles/slang-2.2.4.tar.bz2
Resolving space.mit.edu... failed: Name or service not known.
wget: unable to resolve host address space.mit.edu
!!! Couldn't download 'slang-2.2.4.tar.bz2'. Aborting.
 * Fetch failed for 'sys-libs/slang-2.2.4', Log file:
 *  '/var/tmp/portage/sys-libs/slang-2.2.4/temp/build.log'
>>> Failed to emerge sys-libs/slang-2.2.4, Log file:
>>>  '/var/tmp/portage/sys-libs/slang-2.2.4/temp/build.log'
 * Messages for package sys-libs/slang-2.2.4:
 * Fetch failed for 'sys-libs/slang-2.2.4', Log file:
 *  '/var/tmp/portage/sys-libs/slang-2.2.4/temp/build.log'


I have internet access :
Code:
localhost root # ping -c 3 gentoo.org
PING gentoo.org (89.16.167.134) 56(84) bytes of data.
64 bytes from www.gentoo.org (89.16.167.134): icmp_seq=1 ttl=55 time=96.4 ms
64 bytes from www.gentoo.org (89.16.167.134): icmp_seq=2 ttl=55 time=49.7 ms
64 bytes from www.gentoo.org (89.16.167.134): icmp_seq=3 ttl=55 time=136 ms

--- gentoo.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2007ms
rtt min/avg/max/mdev = 49.713/94.218/136.475/35.456 msP


And then I tried to fetch it myself cause maybe wget isn't the problem and it wasn't ! :
Code:
root@android:~rootlocalhost root # wget ftp://ftp.vectranet.pl/gentoo/distfiles/slang-2.2.4.tar.bz2
--2014-03-01 13:40:29--  ftp://ftp.vectranet.pl/gentoo/distfiles/slang-2.2.4.tar.bz2
           => slang-2.2.4.tar.bz2.1
Resolving ftp.vectranet.pl... 88.156.222.90
Connecting to ftp.vectranet.pl|88.156.222.90|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /gentoo/distfiles ... done.
==> SIZE slang-2.2.4.tar.bz2 ... 1427363
==> PASV ... done.    ==> RETR slang-2.2.4.tar.bz2 ... done.
Length: 1427363 (1.4M) (unauthoritative)

100%[==============================================================================>] 1,427,363   2.16MB/s   in 0.6s

2014-03-01 13:40:30 (2.16 MB/s) - slang-2.2.4.tar.bz2.1 saved [1427363]


And emerge --sync worked as well!

So it feels like it could be my portage that is playing around here, but still pretty sure is specific on arm or something cause on my computers nothing like this happens. If you need something tell me how to do it and I will, probably.

emerge --info :
Code:
root@android:~rootlocalhost root # emerge --info
Portage 2.2.7 (default/linux/arm/13.0/armv7a, gcc-4.7.3, glibc-2.17, 3.4.0 armv7l)
=================================================================
System uname: Linux-3.4.0-armv7l-ARMv7_Processor_rev_0_-v7l-with-gentoo-2.2
KiB Mem:     1790292 total,    135028 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 26 Feb 2014 13:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-softfp-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
CHOST="armv7a-softfp-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
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"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo/"
LANG="en_US.utf8"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync1.fi.gentoo.org/gentoo-portage"
USE="acl arm berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline session ssl tcpd unicode zlib" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


AN IMPORTANT NOTE: I'm using a armv7a bassed gentoo chroot on external sdcard partition on android tablet with android kernel, sysfs, devfs, procfs. All rbinded like in the handbook. Planning on getting VNC server on it.


Last edited by hincor2100 on Thu Mar 20, 2014 2:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9168

PostPosted: Sat Mar 01, 2014 3:19 pm    Post subject: Reply with quote

Can you use wget to a domain name successfully as a non-root user? What is the output of ls -l /etc/resolv.conf? Typically, users who report this problem have some sort of permissions issue that prevents non-root users from doing name resolution. Portage uses a non-root user to download files, so it is affected even though root runs the emerge command.
Back to top
View user's profile Send private message
hincor2100
n00b
n00b


Joined: 01 Mar 2014
Posts: 7

PostPosted: Sat Mar 01, 2014 4:10 pm    Post subject: Reply with quote

yep as you yourself saw i was running as root in previus posts box and once i switched to a regular user internet dissapeared. Couldn't ping or wget.
The results of ls -l :
Code:

hincor@localhost:~hincor@localhost ~ $ ls -l /etc/resolv.conf
-rw------- 1 root root 38 Feb 28 11:42 /etc/resolv.conf

On my computer i saw -rw-r--r--. Blindly switching premissions didn't help.

NOTE : the resolv.conf file belonged to android
Back to top
View user's profile Send private message
hincor2100
n00b
n00b


Joined: 01 Mar 2014
Posts: 7

PostPosted: Thu Mar 20, 2014 2:00 pm    Post subject: Reply with quote

So came back to try to get this to work. While i was wondering about things to do i tried http://linuxonandroid.org and their images had internet! So i stole their /root/init.sh script and found the solution.
Add these groups :
Code:
groupadd -g 3001 android_bt
groupadd -g 3002 android_bt-net
groupadd -g 3003 android_inet
groupadd -g 3004 android_net-raw
chmod a+r /etc/resolv.conf

And add these groups to users :
Code:
usermod -a -G android_bt,android_bt-net,android_inet,android_net-raw portage
# to let portage use internet
usermod -a -G android_bt,android_bt-net,android_inet,android_net-raw <username>
# to let your user use internet or other services like in the portage example


Shared for other people who need this.


Last edited by hincor2100 on Fri Mar 21, 2014 8:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9168

PostPosted: Fri Mar 21, 2014 1:18 am    Post subject: Reply with quote

hincor2100 wrote:
Code:
groupadd -g 3001 android_bt
groupadd -g 3002 android_bt-net
groupadd -g 3003 android_inet
groupadd -g 3004 android_net-raw
chmod a+rw /etc/resolv.conf
That might be appropriate on Android, but it is terrible advice to use on a regular system. You should never make /etc/resolv.conf world writable. The correct permissions are 644.
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 3042
Location: The Peanut Gallery

PostPosted: Fri Mar 21, 2014 2:02 am    Post subject: Reply with quote

iow: remove the w from chmod a+rw:
Code:
chmod a+r /etc/resolv.conf
You can edit your post to do that.

What system are you running Gentoo on? (simple curiosity.)
Back to top
View user's profile Send private message
hincor2100
n00b
n00b


Joined: 01 Mar 2014
Posts: 7

PostPosted: Fri Mar 21, 2014 8:05 pm    Post subject: Reply with quote

About that chmod a+rw. Ups didn't notice that. Fixed.

Quote:
What system are you running Gentoo on? (simple curiosity.)

As it was already said in the first post. ARM-based tablet with Android OS. Gentoo chrooted.
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 3042
Location: The Peanut Gallery

PostPosted: Mon Mar 24, 2014 6:18 am    Post subject: Reply with quote

Ah sorry missed it.

I'm sure others would be interested in how you got that going; perhaps a wiki post?
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