Errors running "sudo dnf update -y" on a vanilla fedora/24-cloud-base vagrant box

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors running "sudo dnf update -y" on a vanilla fedora/24-cloud-base vagrant box

Gianfranco Cecconi
See here https://gist.github.com/giacecco/4bee169ebb6201f048484c51c3ea4a9d the errors I get on the console as I run a simple "sudo dnf update -y" using a provisioning script on a vanilla fedora/24-cloud-base vagrant box. I am sure this must be something trivial linked to the fact that it is a "cloud base" image. Can you suggest how to avoid the issue? Thanks.

Giacecco

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5ac783b7-a2c2-4eab-8fb6-d6f9073960f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Errors running "sudo dnf update -y" on a vanilla fedora/24-cloud-base vagrant box

Gianfranco Cecconi
Solved by adding these lines to the provisioning script:

echo "export LANG=en_US.UTF-8" >> .bashrc
echo "export LANGUAGE=en_US.UTF-8" >> .bashrc
echo "export LC_COLLATE=C" >> .bashrc
echo "export LC_CTYPE=en_US.UTF-8" >> .bashrc
source .bashrc

Note that other locales than en_US.UTF-8 do not work, probably because the cloud base image is not intended to support other than that. 

On Sunday, 4 June 2017 13:45:11 UTC+1, Gianfranco Cecconi wrote:
See here <a href="https://gist.github.com/giacecco/4bee169ebb6201f048484c51c3ea4a9d" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Fgiacecco%2F4bee169ebb6201f048484c51c3ea4a9d\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-OrJmJKfM_o-BhsbWwn4FMV53Fw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgist.github.com%2Fgiacecco%2F4bee169ebb6201f048484c51c3ea4a9d\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-OrJmJKfM_o-BhsbWwn4FMV53Fw&#39;;return true;">https://gist.github.com/giacecco/4bee169ebb6201f048484c51c3ea4a9d the errors I get on the console as I run a simple "sudo dnf update -y" using a provisioning script on a vanilla fedora/24-cloud-base vagrant box. I am sure this must be something trivial linked to the fact that it is a "cloud base" image. Can you suggest how to avoid the issue? Thanks.

Giacecco

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/8685a490-dca6-4c91-bff0-682668344708%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.