fedora 20 yum出错

需要利用linux做项目,所以在win10装了vmvare 以及 fedora,据说这个linux比较稳定。。

1、系统装好以后,需要先把terminal调处理,这才符合程序猿的习惯嘛,具体方法如下

  http://jingyan.baidu.com/article/cb5d61053598ed005d2fe05c.html

2、装个g++编译器,yum install gcc-c++ 如果出错如下

[root@idbk ~]# yum list
    已加载插件:langpacks, refresh-packagekit
    错误:Cannot retrieve metalink for repository: fedora/20/x86_64. Please verify its path and try again

  

这是因为国外网,要不你的网络设置不能访问国际网,要么速度太慢,导致这个错误,这时候就需要添加国内源,方式如下:

http://www.cnblogs.com/bo083/archive/2011/06/07/2152792.html

 

 主要就是修改 /etc/yum.repos.d/

  a fedora.repo     修改对应的三个baseurl,改成这样

  baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/$basearch/os/

     baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/$basearch/debug/

     baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/source/SRPMS/

  b fedora-update.repo

     baseurl=http://mirrors.sohu.com/fedora/updates/$releasever/$basearch/

     baseurl=http://mirrors.sohu.com/fedora/linux/updates/$releasever/$basearch/debug/

     baseurl=http://mirrors.sohu.com/fedora/linux/updates/$releasever/SRPMS/

posted @ 2015-11-30 22:15  *桔子*  阅读(299)  评论(0编辑  收藏  举报