docker安装centos解决Failed to set locale, defaulting to C.UTF-8

1.解决centos报错Failed to set locale, defaulting to C.UTF-8问题

1.在容器中执行以下命令

echo "export LC_ALL=en_US.UTF-8"  >>  /etc/profile
echo "export LC_CTYPE=en_US.UTF-8"  >>  /etc/profile
source /etc/profile

2.解决centos报错Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist问题

cd /etc/yum.repos.d/
 
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
 
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
 
yum update -y
sanradar
sanradar
文章: 104

31 评论

  1. You really make it seem so easy with your presentation however I find this topic to be really one thing
    which I believe I’d by no means understand. It kind of feels too complicated and
    extremely extensive for me. I’m looking ahead for your next submit, I’ll attempt
    to get the dangle of it! Escape room

  2. This is a really good tip especially to those new to the blogosphere. Simple but very precise information… Many thanks for sharing this one. A must read post.

  3. I seriously love your site.. Excellent colors & theme. Did you create this site yourself? Please reply back as I’m trying to create my own personal website and want to know where you got this from or what the theme is called. Appreciate it.

  4. An impressive share! I’ve just forwarded this onto a coworker who was conducting a little research on this. And he actually bought me breakfast because I discovered it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanks for spending the time to discuss this matter here on your site.

  5. I would like to thank you for the efforts you’ve put in writing this blog. I am hoping to check out the same high-grade blog posts from you in the future as well. In truth, your creative writing abilities has encouraged me to get my own, personal site now 😉

  6. Excellent site you’ve got here.. It’s difficult to find high-quality writing like yours these days. I seriously appreciate people like you! Take care!!

  7. An impressive share! I have just forwarded this onto a colleague who had been conducting a little research on this. And he in fact ordered me lunch simply because I stumbled upon it for him… lol. So allow me to reword this…. Thanks for the meal!! But yeah, thanx for spending some time to talk about this matter here on your site.

  8. I have to thank you for the efforts you’ve put in writing this blog. I’m hoping to see the same high-grade content by you in the future as well. In truth, your creative writing abilities has motivated me to get my own website now 😉

  9. I blog often and I really appreciate your information. Your article has really peaked my interest. I will take a note of your site and keep checking for new details about once a week. I opted in for your RSS feed as well.

  10. Greetings! Very useful advice within this article! It’s the little changes that will make the most significant changes. Many thanks for sharing!

  11. After going over a few of the blog posts on your site, I truly appreciate your way of blogging. I book-marked it to my bookmark website list and will be checking back soon. Take a look at my web site too and tell me what you think.

  12. Hi there! I could have sworn I’ve been to this web site before but after going through many of the posts I realized it’s new to me. Regardless, I’m definitely pleased I found it and I’ll be bookmarking it and checking back frequently!

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注