久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

Linux系統yum安裝報錯Cannot find a valid baseurl for repo怎么辦

209次閱讀
沒有評論

共計 3910 個字符,預計需要花費 10 分鐘才能閱讀完成。

自動寫代碼機器人,免費開通

這篇文章主要為大家展示了“Linux 系統 yum 安裝報錯 Cannot find a valid baseurl for repo 怎么辦”,內容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓丸趣 TV 小編帶領大家一起研究并學習一下“Linux 系統 yum 安裝報錯 Cannot find a valid baseurl for repo 怎么辦”這篇文章吧。

yum install error
[root@localhost cmake-3.2.2]# yum install gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 arch=x86_64 repo=os error was
14: PYCURL ERROR 6 – Couldn t resolve host mirrorlist.centos.org
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
[root@localhost cmake-3.2.2]# yum install gcc-c++
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 arch=x86_64 repo=os error was
14: PYCURL ERROR 6 – Couldn t resolve host mirrorlist.centos.org
Error: Cannot find a valid baseurl for repo: base

解決方法如下(修改 dns 配置)

vi /etc/resolv.conf
在此文件最后加入:nameserver 114.114.114.114

再次安裝正常:
[root@localhost cmake-3.2.2]# yum install gcc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.btte.net
 * updates: mirrors.tuna.tsinghua.edu.cn
Setting up Install Process
Resolving Dependencies
— Running transaction check
— Package gcc.x86_64 0:4.4.7-17.el6 will be installed
— Processing Dependency: libgomp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64
— Processing Dependency: cpp = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64
— Processing Dependency: libgcc = 4.4.7-17.el6 for package: gcc-4.4.7-17.el6.x86_64
— Processing Dependency: cloog-ppl = 0.15 for package: gcc-4.4.7-17.el6.x86_64
— Running transaction check
— Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
— Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
— Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
— Package cpp.x86_64 0:4.4.7-17.el6 will be installed
— Processing Dependency: libmpfr.so.1()(64bit) for package: cpp-4.4.7-17.el6.x86_64
— Package libgcc.i686 0:4.4.7-4.el6 will be updated
— Package libgcc.x86_64 0:4.4.7-4.el6 will be updated
— Package libgcc.i686 0:4.4.7-17.el6 will be an update
— Package libgcc.x86_64 0:4.4.7-17.el6 will be an update
— Package libgomp.x86_64 0:4.4.7-4.el6 will be updated
— Package libgomp.x86_64 0:4.4.7-17.el6 will be an update
— Running transaction check
— Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
— Package ppl.x86_64 0:0.10.2-11.el6 will be installed
— Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================
 Package                           Arch                           Version                                  Repository                    Size
==============================================================================================================================================
Installing:
 gcc                               x86_64                         4.4.7-17.el6                             base                          10 M
Installing for dependencies:
 cloog-ppl                         x86_64                         0.15.7-1.2.el6                           base                          93 k
 cpp                               x86_64                         4.4.7-17.el6                             base                         3.7 M
 mpfr                              x86_64                         2.4.1-6.el6                              base                         157 k
 ppl                               x86_64                         0.10.2-11.el6                            base                         1.3 M
Updating for dependencies:
 libgcc                            i686                           4.4.7-17.el6                             base                         114 k
 libgcc                            x86_64                         4.4.7-17.el6                             base                         103 k
 libgomp                           x86_64                         4.4.7-17.el6                             base                         134 k

Transaction Summary
==============================================================================================================================================
Install       5 Package(s)
Upgrade       3 Package(s)

Total download size: 16 M
Is this ok [y/N]:

以上是“Linux 系統 yum 安裝報錯 Cannot find a valid baseurl for repo 怎么辦”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注丸趣 TV 行業資訊頻道!

向 AI 問一下細節

丸趣 TV 網 – 提供最優質的資源集合!

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-12-07發表,共計3910字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 城步| 泸州市| 晋江市| 公安县| 东港市| 潞西市| 衡南县| 万荣县| 兖州市| 乾安县| 红桥区| 丰镇市| 田林县| 曲沃县| 灌云县| 武功县| 金沙县| 莱阳市| 淅川县| 长沙县| 东乡县| 乌鲁木齐县| 剑川县| 丰县| 大方县| 出国| 张家口市| 固阳县| 松溪县| 隆化县| 张掖市| 蓬莱市| 上饶县| 合山市| 新绛县| 万州区| 游戏| 金坛市| 广宁县| 辽源市| 建湖县|