View previous topic :: View next topic |
Author |
Message |
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Fri Feb 05, 2021 3:16 am Post subject: [SOLVED] how to setup proxy for emerge |
|
|
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 |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1730 Location: Germany
|
|
Back to top |
|
|
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Fri Feb 05, 2021 12:33 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22650
|
Posted: Fri Feb 05, 2021 6:06 pm Post subject: Re: how to setup proxy for emerge |
|
|
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 |
|
|
Lygah n00b
Joined: 29 Jan 2021 Posts: 16
|
Posted: Sat Feb 06, 2021 4:14 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5104 Location: Bavaria
|
Posted: Sat Feb 06, 2021 5:13 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5104 Location: Bavaria
|
Posted: Tue Feb 09, 2021 4:29 pm Post subject: |
|
|
smartding,
was my answer helpful ? If yes, please edit the headline of your first post and add [SOLVED] |
|
Back to top |
|
|
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Wed Feb 10, 2021 1:14 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5104 Location: Bavaria
|
Posted: Wed Feb 10, 2021 1:16 am Post subject: |
|
|
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 |
|
|
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Tue Mar 02, 2021 2:32 pm Post subject: |
|
|
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 |
|
|
|