You are not logged in.

#1 2023-12-18 10:35:28

aliazz
Member
Registered: 2021-01-09
Posts: 5

I don't know how yay uses a proxy

When attempting to install a package via yay, an error message indicates a failure to connect to my proxy. I wish to disable the proxy settings, but I'm uncertain about the procedure. The proxy address doesn't export into my environment variables. While I recall configuring the proxy for Yay previously, the exact method escapes my memory.

❯ yay -S consolas-font
AUR Explicit (1): consolas-font-1.2-2
:: (0/1) Downloaded PKGBUILD: consolas-font
 -> error fetching consolas-font: Cloning into 'consolas-font'...
fatal: unable to access 'https://aur.archlinux.org/consolas-font.git/': Failed to connect to 127.0.0.1 port 9050 after 0 ms: Couldn't connect to server 
	 context: exit status 128

Last edited by aliazz (2023-12-18 10:46:13)

Offline

#2 2023-12-28 08:14:56

GreenNeedle
Member
Registered: 2023-12-28
Posts: 1

Re: I don't know how yay uses a proxy

I had a simillar issue when running yay -Syu I was getting the error: proxyconnect tcp: dial tcp 127.0.0.1:8080: connect: connection refused
Check to make sure the four environment variables are empty: http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
you can check by running:

echo $http_proxy

If any one of them says 127.0.0.1:9050 then you found your issue, you can use the command

unset http_proxy

in order to remove it, disabling the proxy settings. Do this for each four environment variables.
Lastly, if the problem is fixed but comes back when you open a new terminal, look through your ~/.bashrc file to see if there's any configuration that sets your proxy settings and comment them out/delete them.

Last edited by GreenNeedle (2023-12-28 08:19:52)

Offline

Board footer

Powered by FluxBB