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

59 评论

  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!

  13. Hello there! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my website to rank for some targeted keywords
    but I’m not seeing very good success. If you know of any please share.
    Thank you! You can read similar article here: Bij nl

  14. Everything is very open with a precise description of the issues. It was truly informative. Your website is useful. Many thanks for sharing!

  15. Oh my goodness! Awesome article dude! Thank you, However I am experiencing problems with your RSS. I don’t know why I cannot subscribe to it. Is there anyone else having the same RSS problems? Anyone that knows the answer will you kindly respond? Thanx!

  16. Hi there, I believe your site may be having internet browser compatibility problems. When I take a look at your website in Safari, it looks fine but when opening in IE, it has some overlapping issues. I simply wanted to provide you with a quick heads up! Besides that, fantastic blog.

  17. Hi, There’s no doubt that your web site might be having internet browser compatibility problems. Whenever I take a look at your web site in Safari, it looks fine however when opening in I.E., it has some overlapping issues. I merely wanted to give you a quick heads up! Other than that, excellent blog.

  18. Aw, this was an exceptionally nice post. Finding the time and actual effort to produce a superb article… but what can I say… I put things off a lot and don’t seem to get anything done.

  19. I absolutely love your site.. Very nice colors & theme. Did you build this site yourself? Please reply back as I’m planning to create my very own blog and would like to learn where you got this from or just what the theme is named. Cheers.

  20. I absolutely love your website.. Great colors & theme. Did you build this web site yourself? Please reply back as I’m trying to create my own personal website and would love to know where you got this from or what the theme is called. Many thanks.

  21. I’m amazed, I have to admit. Rarely do I encounter a blog that’s both educative and amusing, and without a doubt, you have hit the nail on the head. The problem is something that too few folks are speaking intelligently about. I’m very happy I came across this in my search for something regarding this.

  22. Nice post. I learn something totally new and challenging on websites I stumbleupon on a daily basis. It’s always useful to read articles from other authors and practice a little something from other sites.

  23. Oh my goodness! Amazing article dude! Thank you so much, However I am encountering troubles with your RSS. I don’t understand why I cannot join it. Is there anybody having similar RSS issues? Anybody who knows the solution will you kindly respond? Thanks.

  24. You’re so cool! I do not believe I’ve truly read through something like that before. So good to find someone with some unique thoughts on this subject. Seriously.. thank you for starting this up. This site is something that’s needed on the web, someone with a little originality.

留下评论

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