I’m trying to update AUR based packages through pamac. My configuration is proxy exclusive, including DNS resolutions. Retrieving the packages DB’s etc seems to work through the proxy although the “Cloning build files” step seems to be willing to engage direct communications.
Is there a way to alter these behaviors? I’ve mangled with:
/etc/pamac.conf
/etc/pacman.conf
/etc/wgetrc
An output from a failing attempt at pamac, I’d be interested if one’s know how that “Cloning build files” process is actually launched and if there is anything under my control to possibly alter/modify it’s behaviors:
sudo pamac update --aur
Warning: Building packages as dynamic user
Warning: Setting build directory to /var/cache/pamac
Preparing...
Synchronizing package databases...
Refreshing AUR...
Checking xorgxrdp-git dependencies...
Checking python2 dependencies...
Resolving dependencies...
Checking inter-conflicts...
To build (2):
python2 2.7.18-6 (2.7.18-5) AUR
xorgxrdp-git 0.9.19-1 (0.2.18-1) AUR
Edit build files : [e]
Apply transaction ? [e/y/N] y
**Cloning python2 build files...**
Running as unit: run-u1677.service
fatal: unable to access 'https://aur.archlinux.org/python2.git/': Failed to connect to aur.archlinux.org port 443 after 129518 ms: Connection timed out
Finished with result: exit-code
Main processes terminated with: code=exited/status=128
Service runtime: 2min 9.546s
CPU time consumed: 29ms
Error: Failed to build python2
On a note here, pacman updates works all fine behind the proxy (sudo pacman -Syyuu).
Some programs, such as wget and (used by pacman) CURL, use environment variables of the form protocol_proxy to determine the proxy for a given protocol (e.g. HTTP, FTP, …).
Below is an example on how to set these variables in a shell:
Try removing “export” from the beginning of the lines in /etc/environment so it only contains KEY=VALUE lines.
The file /etc/environment is owned by PAM and supports lines having the “export” keyword to be compatible with bash syntax. But it does not look like it is supported by Systemd services (at least it is not mentioned in the documentation) and it looks like Pamac uses Systemd services for the AUR builds. See
Update:
Looks like $http_proxy syntax can’t be recognized. You could get more information/logs about the previous error when using terminal. (Such as pamac update)