我正在ubuntu vagrant vm
上构建ubuntu host
的配置脚本,12.10 64bit
安装以下软件包时:
sudo apt-get -y install php5-xsl graphviz php-pear unison
我收到警告:
dpkg-reconfigure: unable to re-open stdin: No file or directory
已经尝试过搜索但是结果却抛出了apt-get的所有其他错误,无法找出如何压制上面的警告。安装工作正常,但上面的警告导致了vagrant up stdout中的错误行。
任何人都知道可能是什么原因或如何抑制警告
答案是根据此>设置perl:locale
。一个>:
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
这解决了这个问题,但确实为vagrant up
配置增加了不必要的时间。