Erro ao usar o emerge com pacotes que não estão no cache [RESOLVIDO]

1. Erro ao usar o emerge com pacotes que não estão no cache [RESOLVIDO]

niquelnausea
niquelnausea

(usa Arch Linux)

Enviado em 23/10/2017 - 03:18h

na "briga" para fazer o libinput funcionar, o emerge parou de funcionar. o erro parece ser para baixar os pacotes (para pacotes compilados recentemente, funciona normalmente), ainda não entendo muito bem as configurações e funcionamento do gentoo. como resultado obtenho o seguinte:

# emerge app-editors/nano

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] app-editors/nano-2.7.5

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-editors/nano-2.7.5::gentoo
>>> Failed to emerge app-editors/nano-2.7.5, Log file:
>>> '/var/log/portage/app-editors:nano-2.7.5:20171023-050817.log'
>>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.49, 0.57, 0.53
>>> Downloading 'http://distfiles.gentoo.org/distfiles/nano-2.7.5.tar.gz'
--2017-10-23 03:08:17-- http://distfiles.gentoo.org/distfiles/nano-2.7.5.tar.gz
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
>>> Downloading 'https://www.nano-editor.org/dist/v2.7/nano-2.7.5.tar.gz'
--2017-10-23 03:08:17-- https://www.nano-editor.org/dist/v2.7/nano-2.7.5.tar.gz
Resolving www.nano-editor.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘www.nano-editor.org’
!!! Couldn't download 'nano-2.7.5.tar.gz'. Aborting.
* Fetch failed for 'app-editors/nano-2.7.5', Log file:
* '/var/log/portage/app-editors:nano-2.7.5:20171023-050817.log'

* Messages for package app-editors/nano-2.7.5:

* Fetch failed for 'app-editors/nano-2.7.5', Log file:
* '/var/log/portage/app-editors:nano-2.7.5:20171023-050817.log'
*
* The following package has failed to build, install, or execute postinst:
*
* (app-editors/nano-2.7.5:0/0::gentoo, ebuild scheduled for merge), Log file:
* '/var/log/portage/app-editors:nano-2.7.5:20171023-050817.log'
*


log var/log/portage/app-editors:nano-2.7.5:20171023-050817.log

>>> Downloading 'http://distfiles.gentoo.org/distfiles/nano-2.7.5.tar.gz'
--2017-10-23 03:08:17-- http://distfiles.gentoo.org/distfiles/nano-2.7.5.tar.gz
Resolving distfiles.gentoo.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘distfiles.gentoo.org’
>>> Downloading 'https://www.nano-editor.org/dist/v2.7/nano-2.7.5.tar.gz'
--2017-10-23 03:08:17-- https://www.nano-editor.org/dist/v2.7/nano-2.7.5.tar.gz
Resolving www.nano-editor.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘www.nano-editor.org’
!!! Couldn't download 'nano-2.7.5.tar.gz'. Aborting.
^[[31;01m * ^[[39;49;00mFetch failed for 'app-editors/nano-2.7.5', Log file:
^[[31;01m * ^[[39;49;00m '/var/log/portage/app-editors:nano-2.7.5:20171023-050817.log'


configurações de rede (acho que são essas) /etc/portage/repos.conf/gentoo.conf

[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes


e o make.conf

###======================================================================================================
## INFO: https://wiki.gentoo.org/wiki//etc/portage/make.conf
## INFO: https://en.gentoo-wiki.com/wiki/Safe_LDFLAGS
## INFO: https://wiki.gentoo.org/wiki/GCC_optimization
## INFO: https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/Advanced#Per-package_environment_variables
###======================================================================================================

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -fomit-frame-pointer -O2 -pipe"
CXXFLAGS="${CFLAGS}"
#CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" #avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3
CPU_FLAGS_X86="avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

MAKEOPTS="-j5 -l5"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=5 --ask --jobs=2 --load-average=2 --autounmask-write=y --with-bdeps=y --quiet-build=y --keep-going=y"
FEATURES="ccache parallel-fetch parallel-install collision-protect sandbox" #clean-logs #fail-clean #buildpkg" #getbinpkg"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="2G"
AUTOCLEAN="yes"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
PORTAGE_TMPDIR=/var/tmp
PORTAGE_NICENESS=10
PORT_LOGDIR=/var/log/portage
PAX_MARKINGS="none"
AUTOCLEAN="yes"

#GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/"
#rsync://gentoo.c3sl.ufpr.br/gentoo/
#http://gentoo.c3sl.ufpr.br/
#rsync://rsync.br.gentoo.org/
#rsync://rsync.gentoo.org/"

###======================================================================================================
## INFO: https://wiki.gentoo.org/wiki/CPU_FLAGS_X86
## INFO: http://forums.funtoo.org/topic/383-cpu-flags/
## INFO: euse -i USE
###======================================================================================================

#CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3"
DEFAULT="bindist nls perl python -bluetooth -doc -eds -gnome -joystick -kde -midi networkmanager -phonon pulseaudio -qt3 -qt3support -qt5 -systemd udev -upower wifi wps"
USE="${CPU_FLAGS_X86} ${DEFAULT}"
XFCE_PLUGINS="brightness clock trash"

###======================================================================================================
## Hardware.
###======================================================================================================

#ALSA_CARDS="nvidia"
INPUT_DEVICES="evdev keyboard mouse libinput"
VIDEO_CARDS="intel"

###======================================================================================================
## Linguas.
## INFO: https://wiki.gentoo.org/wiki/Localization/Guide#L10N
## INFO: https://wiki.gentoo.org/wiki/Localization/Guide#LINGUAS
###======================================================================================================

L10N="pt_BR.UTF-8 pt_BR.ISO8859-1 pt_BR"
LINGUAS="pt_BR.UTF-8 pt_BR.ISO8859-1 pt_BR"
###============================================== FIM ===================================================



  


2. MELHOR RESPOSTA

Luiz Santos
luiztux

(usa Gentoo)

Enviado em 23/10/2017 - 08:38h

Quem sabe isto possa te ajudar: https://forums.gentoo.org/viewtopic-p-3718173.html#3718173

Se teu /etc/resolv.conf estiver ok e mesmo assim não funcionar, tenta isto no make.conf:

FEATURES="-userfetch" 


Se o userfetch funcionar, checa as permissões do arquivo resolv.conf...pois deveria funcionar sem a modificação acima.

EDIT: em dúvida sobre o que fazer com o resolv.conf, faça isto:

 chmod a+r /etc/resolv.conf 


-----------------------------------''----------------------------------

Larry, The Cow, uses Gentoo GNU/Linux

^__^
(oo)
(__)

"If it moves, compile it."



3. Re: Erro ao usar o emerge com pacotes que não estão no cache [RESOLVIDO]

niquelnausea
niquelnausea

(usa Arch Linux)

Enviado em 24/10/2017 - 20:11h

muito obrigado pela ajuda!
chmod a+r /etc/resolv.conf 


o problema realmente era as permissões do resolv.conf, o conteúdo estava correto.
# Generated by resolvconf
nameserver 8.8.8.8
nameserver 8.8.4.4


libinput funcionando, emerge também, vamos voltar a compilar!






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts