vagrant provisioning开关字符编码

ata*_*ber 11 grub character-encoding vagrant

vagrant provision今天正在运行,但由于以下错误而失败:

Package configuration???????????????????????????? Configuring grub-pc ??????????????????????????????? 
The GRUB boot loader was previously installed to a disk that is no
?? longer present, or whose unique identifier has changed for some reason.   
?? It is important to make sure that the installed GRUB core image stays in  
?? sync with GRUB modules and grub.cfg. Please check again to make sure
?? that GRUB is written to the appropriate boot devices.
???? If you're unsure which drive is designated as boot drive by your BIOS,    
?? it is often a good idea to install GRUB to all of them.
???? Note: it is possible to install GRUB to partition boot records as well,  
?? and some appropriate partitions are offered here. However, this forces   
?? GRUB to use the blocklist mechanism, which makes it less reliable, and   
?? therefore is not recommended.
????<Ok>????????????????????????????????????????????????????????????????????????????????
Run Code Online (Sandbox Code Playgroud)

但是,令我惊讶的是,它开始以非常奇怪的编码打印堆栈跟踪...

STDERR: F????? ?? ???? ????????.??????°: ???????? ?????? ??? ????? ??????, ±????± ??!
???±: ????? ?????????± ±???-?? (--???°?±???):
 ?????????? ????????? ????-???????????? ?????? ???????? ????? ???? ?????? 255
E????? ???? ??????????? ????? ?????????±:
 ±???-??
E: S??-??????? /???/???/???± ???????? ?? ????? ???? (1)
---- E?? ?????? ?° ???-±?? ??±???? -? ----
R?? ???-±?? ??±???? -? ???????? 100


R??????? D??????????:
---------------------
# I? /???/???°/?????/?????????/??????-??°?????/???????/??°????.??

 49: ??????? "???-±??-??±????-?" ??
 50:   ??????? "???-±?? ??±???? -?" 
 51: ???


 C??????? R???????:
------------------
# D??????? ?? /???/???°/?????/?????????/??????-??°?????/???????/??°????.??:49:?? ?°???_°???'

???????("???-±??-??±????-?") ??
  ??????? 0
  ??????? "???-±?? ??±???? -?"
  ?????? "???"
  ??????_???? "??°????"
  ?????_????? 2
  ????????_???? "??????-??°?????"
  ?????? 5
  ??????? 0
???
Run Code Online (Sandbox Code Playgroud)

并且终端提示返回...以相同的编码!我的所有输入都转换为该编码(虽然大写字母像往常一样出现).

我的问题是:为什么Vagrant会更改终端窗口的编码,是否与GRUB错误有关?

我在Macbook Pro上.

小智 10

如果您正在使用apt-get upgrade/dist-upgrade,请尝试:

sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade