Reputation: 3711
On Fedora 26 when I do sudo dnf update
I get the error
Error: Failed to synchronize cache for repo 'updates'
I configured both my system-wide proxy and the proxy in dnf.conf. Other connections such as the browser work with this proxy.
How can I fix this?
Upvotes: 1
Views: 1275
Reputation: 392
You may need to specify basic auth method in dnf.conf like this
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
proxy=http://proxy/example.com:8080
proxy_username=username
proxy_password=password
proxy_auth_method=basic
Upvotes: 0
Reputation: 432
su
vi /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
proxy=http://172.31.1.6:8080
proxy_username=chuttu
proxy_password=verma
dnf update -y
Upvotes: 1