Problem

The Error message “Cannot retrieve metalink for repository:fedora/20/x86_64. Please verify its path and try again” pop up when try to use the command “sudo yum update”.

Diagnose

I did this lab in RMIT network lab and the lab is sitting behind a proxy server. So I did change the network proxy server in order to browse the network by browser. Steps: activities->settings->network->Network Proxy. Maybe this setting only apply to the browser not the terminal yum command.

So I need to change the Proxy server for the yum configuration.

Solution

After some research, I need to change the /etc/yum.conf

The proxy setting must specify the proxy server as a complete URL, including the TCP port number. If your proxy server requires a username and password, specify these by adding proxy_username and proxy_password settings.

For example, if your network proxy server’s ip address is 192.168.0.1,and use port number 8080. Use these steps:

1, Open terminal, type cd /etc

2, Then sudo gedit yum.conf, to edit the yum.conf by gedit.

3. Add the line like this: proxy=http://192.168.0.1:8080, save it, all done!

 

In ubuntu

Created apt.conf file in /etc/apt/ sub-directory.

sudo vi /etc/apt/apt.conf

Added proxy and proxyport text line to /etc/apt/apt.conf file.

Acquire::http::Proxy “http://yourproxyaddressProxyport”;

Save apt.conf file and reboot.

In Kali

create a apt.conf in /etc/apt/apt.conf.d, then add:

Acquire::http::Proxy “http://yourproxyaddressProxyport”;

 

Fedora 13 can not update

edit the file /etc/yum.repos.d/ yum.repos.d and  /etc/yum.repos.d/fedora.repo

change all the https into http.

Reference:

https://docs.fedoraproject.org/en-US/Fedora_Core/5/html/Software_Management_Guide/sn-yum-proxy-server.html