<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[实践OK]CentOS 8 的 yum 安装组件出错 —— Cannot prepare internal mirrorlist: No URLs in mirrorlist]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Thu, 27 Oct 2022 11:08:33 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo<br/><br/><br/><br/>现象：<br/>CentOS Linux 8 - BaseOS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;73&nbsp;&nbsp;B/s &#124;&nbsp;&nbsp;38&nbsp;&nbsp;B&nbsp;&nbsp;&nbsp;&nbsp; 00:00&nbsp;&nbsp;&nbsp;&nbsp;<br/>错误：为 repo &#039;baseos&#039; 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist<br/><br/>原因：<br/>CentOS 8 于2021年底停止维护，CentOS 7 将于 2024 年 6 月底停止维护。<br/>如果业务过渡期仍需要使用 CentOS 8 中的一些安装包，建议切换至 CentOS-Vault 源。<br/><br/>解决办法：<br/><textarea name="code" class="php" rows="15" cols="100">
sudo sed -i -e &quot;s&#124;mirrorlist=&#124;#mirrorlist=&#124;g&quot; /etc/yum.repos.d/CentOS-*
sudo sed -i -e &quot;s&#124;#baseurl=http://mirror.centos.org&#124;baseurl=http://vault.centos.org&#124;g&quot; /etc/yum.repos.d/CentOS-*
</textarea><br/><br/><br/>来自：<a href="https://blog.csdn.net/Shockang/article/details/126335260" target="_blank">https://blog.csdn.net/Shockang/article/details/126335260</a><br/><br/><br/>出现新的问题：<br/>Module yaml error: Unexpected key in data: static_context [line 9 col 3]<br/>Module yaml error: Unexpected key in data: static_context [line 9 col 3]<br/>Module yaml error: Unexpected key in data: static_context [line 9 col 3]<br/><br/>解决办法：<br/>然后尝试 yum install git<br/>引发了新的错误<br/>Module yaml error: Unexpected key in data: static_context [line 9 col 3]<br/>Module yaml error: Unexpected key in data: static_context [line 9 col 3]<br/><br/>解决方法：<br/>修改 BaseOS.repo 文件的 baseurl 参数<br/><br/>[baseos]<br/>baseurl=htps://vault.centos.org/centos/$releasever/BaseOS/$basearch/os/<br/><br/>修改 AppStream.repo 文件的 baseurl 参数<br/><br/>[appstream]<br/>baseurl=htps://vault.centos.org/centos/$releasever/AppStream/$basearch/os/<br/><br/><br/>来自：<a href="https://blog.csdn.net/tfstone/article/details/124263456" target="_blank">https://blog.csdn.net/tfstone/article/details/124263456</a>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]CentOS 8 的 yum 安装组件出错 —— Cannot prepare internal mirrorlist: No URLs in mirrorlist]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>