So that later they don't say that I like to spend work, yesterday I settled in Yogurt to later install Plank, the project dock ElementaryOS, but before it got to this, a problem presented itself to me.
It turns out that when adding the repositories AUR de archlinux.fr and run:
$ sudo pacman -Syu
I could not update because I could not find the server. The point is that I am below quite a few proxy servers and sudo by default does not use connection variables for them. How to solve this?
The first thing is to add to the file .bashrc the global variables of proxies:
export http_proxy = "http: // my_proxy_server: 3128" export https_proxy = "http: // my_proxy_server: 3128" export ftp_proxy = "http: // my_proxy_server: 3128"
Once the variables have been added, we close the file and execute:
$ . .bashrc
In this way the variables and options of that file are loaded. Now what we have left is to add to the file / Etc / sudoers following:
Defaults env_keep + = "http_proxy" Defaults env_keep + = "https_proxy" Defaults env_keep + = "ftp_proxy"
Ready. We save the file and we can now use proxies with sudo.