barq
barq

Reputation: 3711

Fedora 26 dnf update not working behind proxy

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

Answers (2)

Salehi
Salehi

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

NILESH KUMAR P.HD
NILESH KUMAR P.HD

Reputation: 432

Login to superuser

su

Edit configuration file

vi /etc/dnf/dnf.conf

Add your values

[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
proxy=http://172.31.1.6:8080
proxy_username=chuttu
proxy_password=verma

Now update

dnf update -y

Upvotes: 1

Related Questions