LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Yum with proxy (https://www.linuxquestions.org/questions/fedora-35/yum-with-proxy-946449/)

malcmcmul 05-23-2012 06:50 AM

Yum with proxy
 
After reading that the HTTP_PROXY variable is used by yum, I edited the variable to the proxy of choice (with port number) and yum still doesn't work. I then edited the yum.conf file with 'proxy=http://example.com:80' and still no luck.

Firefox works fine with it and I've checked the mirrors and files are there, however it keeps coming back with:


[ser@fed-full ~]$ sudo yum install make
Loaded plugins: refresh-packagekit
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mir...a-10&arch=i386 error was
[Errno 14] HTTP Error 404: Not Found
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
[ser@fed-full ~]$

DaveG 05-23-2012 06:25 PM

F10? Might be time for an upgrade...
If I remember correctly, I had problems with yum and proxy with Fedora some time ago. The "proxy=..." configuration option may be more recent.

You could try:
sudo http_proxy='http://whatever.com:8080' yum install make
i.e. explicit variable set, lower-case variable name.

If all else fails, check out the root environment for clues.
sudo env

--DaveG.

Blinker_Fluid 05-31-2012 10:48 AM

I also have a http_proxy line in my .bashrc
Code:

export http_proxy=http://user:password@IP_OF_PROXY:port
in the yum.conf I also have a proxy_username= and a proxy_password= line

Just a couple more suggestions in case there are usernames or passwords involved.


All times are GMT -5. The time now is 05:44 PM.