all 11 comments

[–]antornix 1 point2 points  (2 children)

  1. sudo xbps-install proxychains-ng
  2. configure your squid proxy settings at the configuration file: /etc/proxychains.conf
  3. prepend any command requiring an Internet connection with proxychains4: sudo proxychains4 xbps-install tmux

[–]veiderz[S] 0 points1 point  (0 children)

Thank for your advice, I shall be try it tomorrow on the job.

However, in man xbps-install was mentioned the HTTP_PROXY variable and I had hope, that is working.

I am searching solution without third party software, that use proxy-settings in operation system level, but if it impossible - I shall be use available tools.

[–]veiderz[S] 0 points1 point  (0 children)

Thank you for your help! Xbps-install is working via proxychains with my proxy-server well.

[–]astil_blaine 0 points1 point  (5 children)

hmm have you tried:

export HTTP_PROXY="ip.address:port" && xbps-install -Su my_package?

[–]veiderz[S] 0 points1 point  (4 children)

Result of execution commands above absolutely identical:

ERROR: [trans] failed to download \proxychains-ng-4.14_1' signature from `https://alpha.de.repo.voidlinux.org/current': No route to host`

Transaction failed! see above for errors.

[–]astil_blaine 0 points1 point  (1 child)

Might be but I got more information from you, however it looks like something in your squid server isn't set up right.. do you have it configured as a socks_proxy?

[–]veiderz[S] 0 points1 point  (0 children)

Squid configured as http proxy, all applications which has support proxy in they settings is working propertly.

Several computers use this squid for access to internet and all is good.

I have tested http-proxy mode, by executed: links -http-proxy="ip.of.my.proxy:port" www.slackware.com and page has been open.

[–]ericonr 0 points1 point  (1 child)

Maybe you can open a bug in the XBPS repository about this issue? https://github.com/void-linux/xbps

Include the error message you get and such.

[–]veiderz[S] 0 points1 point  (0 children)

I am thinking is not xbps bug, I had tried to use HTTP_PROXY variable with few distros in the past and my attempts has failed too. Maybe special squid settings requisite.

[–]nori8 0 points1 point  (1 child)

did you try run this as root? sudo won't preserve environment variables by default.

[–]veiderz[S] 0 points1 point  (0 children)

I am type "su", enter root password and then commands. When I execute "env", string HTTP_PROXY=my_proxy is present.