Page 1 of 1

YUM proxy auth not work in CentOS 8

Posted: 2020/07/30 09:14:19
by crocjirka
Hello guys, i had small problem, we have proxy on our network, in COS 7 i fill /etc/yum.conf

proxy=http://proxyadress:3128
proxy_username=proxyuser
proxy_password=proxyprw

on centos 7 works great,

in centos 8 show me error 407

[root@prg11man3p10x02 ~]# yum install update
CentOS-8 - AppStream 1.8 kB/s | 2.1 kB 00:01
Errors during downloading metadata for repository 'AppStream':
- Status code: 407 for http://mirror.wdc1.us.leaseweb.net/cent ... repomd.xml (IP: 194.99.196.139)
- Status code: 407 for http://mirror.it.ubc.ca/centos/8.2.2004 ... repomd.xml (IP: 194.99.196.139)
- Status code: 407 for http://mirror.intergrid.com.au/centos/8 ... repomd.xml (IP: 194.99.196.139)
- Status code: 407 for http://ftp.lysator.liu.se/pub/CentOS/8. ... repomd.xml (IP: 194.99.196.139)
- Status code: 407 for http://mirror.vodien.com/centos/8.2.200 ... repomd.xml (IP: 194.99.196.139)
- Status code: 407 for http://centos.schlundtech.de/8.2.2004/A ... repomd.xml (IP: 194.99.196.139)
- Status code: 407 for http://mirror.hostduplex.com/centos/8.2 ... repomd.xml (IP: 194.99.196.139)
- Status code: 407 for http://pkg.adfinis-sygroup.ch/centos/8. ... repomd.xml (IP: 194.99.196.139)
- Status code: 407 for http://mirror.centos.iad1.serverforge.o ... repomd.xml (IP: 194.99.196.139)
- Status code: 407 for http://mirror.ufscar.br/centos/8.2.2004 ... repomd.xml (IP: 194.99.196.139)
Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried


i try also /etc/enviroments... same situation... can anybody please help me? :) thank you.

Re: YUM proxy auth not work in CentOS 8

Posted: 2020/08/04 09:18:18
by crocjirka
nobody knows? :(

Re: YUM proxy auth not work in CentOS 8

Posted: 2020/08/05 11:32:34
by BShT
the conf is correct, 407 means auth required

look at squid log, your username and password

try to "realm\username"