Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] how to setup proxy for emerge
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
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Fri Feb 05, 2021 3:16 am    Post subject: [SOLVED] how to setup proxy for emerge Reply with quote

I am trying to install intel microcode by emerging the "sys-firmware/intel-microcode" package, but emerge isn't able to download some resource from raw.githubusercontent.com.
Below is the log message:
Code:
erifying ebuild manifests
 
>>> Running pre-merge checks for sys-firmware/intel-microcode-20201112_p20201116-r1
 * Assuming you do not have a separate /boot partition.
 
>>> Emerging (1 of 1) sys-firmware/intel-microcode-20201112_p20201116-r1::gentoo
 * microcode-20201112.tar.gz BLAKE2B SHA512 size ;-) ...
>>> Downloading 'https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/raw/437f382b1be4412b9d03e2bbdcda46d83d581242/intel-ucode/06-4
--2021-02-05 10:49:27--  https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/raw/437f382b1be4412b9d03e2bbdcda46d83d581242/intel-uc
Resolving github.com... 13.229.188.59
Connecting to github.com|13.229.188.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/intel/Intel-Linux-Processor-Microcode-Data-Files/437f382b1be4412b9d03e2bbdcda46d83d581242/intel-ucode/
--2021-02-05 10:49:28--  https://raw.githubusercontent.com/intel/Intel-Linux-Processor-Microcode-Data-Files/437f382b1be4412b9d03e2bbdcda46d83d5812
Resolving raw.githubusercontent.com... 0.0.0.0, ::
Connecting to raw.githubusercontent.com|0.0.0.0|:443... failed: Connection refused.
Connecting to raw.githubusercontent.com|::|:443... failed: Connection refused.
!!! Couldn't download 'intel-ucode-sig_0x406e3-rev_0xd6.bin'. Aborting.
 * Fetch failed for 'sys-firmware/intel-microcode-20201112_p20201116-r1', Log file:
 *  '/var/tmp/portage/sys-firmware/intel-microcode-20201112_p20201116-r1/temp/build.log'
 
>>> Failed to emerge sys-firmware/intel-microcode-20201112_p20201116-r1, Log file:
 
>>>  '/var/tmp/portage/sys-firmware/intel-microcode-20201112_p20201116-r1/temp/build.log'
 
 * Messages for package sys-firmware/intel-microcode-20201112_p20201116-r1:
 
 * Fetch failed for 'sys-firmware/intel-microcode-20201112_p20201116-r1', Log file:
 *  '/var/tmp/portage/sys-firmware/intel-microcode-20201112_p20201116-r1/temp/build.log'


How do I direct emerge to use a local proxy? I've tried exporting http_proxy and https_proxy before issuing the emerge command, but that didn't work.


Last edited by smartding on Tue Mar 02, 2021 2:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1730
Location: Germany

PostPosted: Fri Feb 05, 2021 10:10 am    Post subject: Reply with quote

do you have a proxy set up?

The messages shows a successfull connection with a location response, so a connection is there and it works.
Can you post the complete message, since it looks like the lines are cut of.
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Fri Feb 05, 2021 12:33 pm    Post subject: Reply with quote

Banana wrote:
do you have a proxy set up?

The messages shows a successfull connection with a location response, so a connection is there and it works.
Can you post the complete message, since it looks like the lines are cut of.


Actually, the log shows I was able to connect to github.com, it redirects me to raw.githubusercontent.com, then I couldn't establish a connection (Connection refused).

I somehow managed to install the microcode, so I can't reproduce the error log.

But I still haven't figured out how to make emerge use a local proxy server, any idea?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22650

PostPosted: Fri Feb 05, 2021 6:06 pm    Post subject: Re: how to setup proxy for emerge Reply with quote

smartding wrote:
Code:
Resolving raw.githubusercontent.com... 0.0.0.0, ::
Connecting to raw.githubusercontent.com|0.0.0.0|:443... failed: Connection refused.
Connecting to raw.githubusercontent.com|::|:443... failed: Connection refused.
This looks wrong. Are you intentionally doing weird things with DNS to break programs that do not use your proxy?
Back to top
View user's profile Send private message
Lygah
n00b
n00b


Joined: 29 Jan 2021
Posts: 16

PostPosted: Sat Feb 06, 2021 4:14 pm    Post subject: Reply with quote

You can try proxychains, i have a socks5 proxy running on my machine, after configured , just add proxychains before the command, for example, if you want "emerge --sync" use proxy, just run "proxychains emerge --sync".
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5104
Location: Bavaria

PostPosted: Sat Feb 06, 2021 5:13 pm    Post subject: Reply with quote

smartding wrote:
But I still haven't figured out how to make emerge use a local proxy server, any idea?

You must differentiate between an "emerge --sync" (this uses TCP port 873 = rsync) and an "emerge sys-firmware/intel-microcode-20201112_p20201116-r1" this uses "wget" and here you have two choices:
1.) Set your proxy in /etc/wgetrc, or
2.) Set your proxy as environment variable (for all programms) in a file like 99myproxy:
Code:
 /etc/env.d # more 99myproxy
export http_proxy="http://127.0.0.1:8118"
export https_proxy="http://127.0.0.1:8118"

wget is intelligent enough and uses this variables (of course you must do an env-update)
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5104
Location: Bavaria

PostPosted: Tue Feb 09, 2021 4:29 pm    Post subject: Reply with quote

smartding,

was my answer helpful ? If yes, please edit the headline of your first post and add [SOLVED]
Back to top
View user's profile Send private message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Wed Feb 10, 2021 1:14 am    Post subject: Reply with quote

pietinger wrote:
smartding,

was my answer helpful ? If yes, please edit the headline of your first post and add [SOLVED]


I've installed the firmware in a manual way, so I'll have to wait for the next firmware update to try your method.

But I did try exporting http_proxy/https_proxy before running the emerge command, that didn't work.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5104
Location: Bavaria

PostPosted: Wed Feb 10, 2021 1:16 am    Post subject: Reply with quote

smartding wrote:
But I did try exporting http_proxy/https_proxy before running the emerge command, that didn't work.

Which proxy do you have ? And where ? (local - on another machine) Maybe the config of your proxy can help us to see more clear ...
Back to top
View user's profile Send private message
smartding
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2021
Posts: 129

PostPosted: Tue Mar 02, 2021 2:32 pm    Post subject: Reply with quote

pietinger wrote:
smartding wrote:
But I did try exporting http_proxy/https_proxy before running the emerge command, that didn't work.

Which proxy do you have ? And where ? (local - on another machine) Maybe the config of your proxy can help us to see more clear ...


setting the proxy servers in /etc/wgetrc does work, thanks.
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