2013-08-27 19 views
11

I vagrant provision heute lief und es schlug mit dem folgenden Fehler:vagrant Provisioning schaltet Zeichencodierung

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>│││└───────────────────────────────────────────────────────────────────────────┘ 

Aber dann, zu meiner Überraschung, es begann in einer sehr seltsamen Codierung einen Stack-Trace Drucke ...

STDERR: F▒␋┌␊␍ ├⎺ ⎺⎻␊┼ ├␊⎼└␋┼▒┌.␍␊␉␌⎺┼°: ┬␤␋⎻├▒␋┌ ⎺┤├⎻┤├ ├␤␊ ▒␉⎺┴␊ ␊⎼⎼⎺⎼⎽, ±␋┴␋┼± ┤⎻! 
␍⎻┐±: ␊⎼⎼⎺⎼ ⎻⎼⎺␌␊⎽⎽␋┼± ±⎼┤␉-⎻␌ (--␌⎺┼°␋±┤⎼␊): 
⎽┤␉⎻⎼⎺␌␊⎽⎽ ␋┼⎽├▒┌┌␊␍ ⎻⎺⎽├-␋┼⎽├▒┌┌▒├␋⎺┼ ⎽␌⎼␋⎻├ ⎼␊├┤⎼┼␊␍ ␊⎼⎼⎺⎼ ␊│␋├ ⎽├▒├┤⎽ 255 
E⎼⎼⎺⎼⎽ ┬␊⎼␊ ␊┼␌⎺┤┼├␊⎼␊␍ ┬␤␋┌␊ ⎻⎼⎺␌␊⎽⎽␋┼±: 
±⎼┤␉-⎻␌ 
E: S┤␉-⎻⎼⎺␌␊⎽⎽ /┤⎽⎼/␉␋┼/␍⎻┐± ⎼␊├┤⎼┼␊␍ ▒┼ ␊⎼⎼⎺⎼ ␌⎺␍␊ (1) 
---- E┼␍ ⎺┤├⎻┤├ ⎺° ▒⎻├-±␊├ ┤⎻±⎼▒␍␊ -≤ ---- 
R▒┼ ▒⎻├-±␊├ ┤⎻±⎼▒␍␊ -≤ ⎼␊├┤⎼┼␊␍ 100 


R␊⎽⎺┤⎼␌␊ D␊␌┌▒⎼▒├␋⎺┼: 
--------------------- 
# I┼ /┴▒⎼/␌␤␊°/␌▒␌␤␊/␌⎺⎺┐␉⎺⎺┐⎽/␌⎺└└⎺┼-⎽⎺°├┬▒⎼␊/⎼␊␌␋⎻␊⎽/␍␊°▒┤┌├.⎼␉ 

49: ␊│␊␌┤├␊ "▒⎻├-±␊├-┤⎻±⎼▒␍␊-≤" ␍⎺ 
50: ␌⎺└└▒┼␍ "▒⎻├-±␊├ ┤⎻±⎼▒␍␊ -≤" 
51: ␊┼␍ 


C⎺└⎻␋┌␊␍ R␊⎽⎺┤⎼␌␊: 
------------------ 
# D␊␌┌▒⎼␊␍ ␋┼ /┴▒⎼/␌␤␊°/␌▒␌␤␊/␌⎺⎺┐␉⎺⎺┐⎽/␌⎺└└⎺┼-⎽⎺°├┬▒⎼␊/⎼␊␌␋⎻␊⎽/␍␊°▒┤┌├.⎼␉:49:␋┼ ◆°⎼⎺└_°␋┌␊' 

␊│␊␌┤├␊("▒⎻├-±␊├-┤⎻±⎼▒␍␊-≤") ␍⎺ 
    ⎼␊├┤⎼┼⎽ 0 
    ␌⎺└└▒┼␍ "▒⎻├-±␊├ ┤⎻±⎼▒␍␊ -≤" 
    ▒␌├␋⎺┼ "⎼┤┼" 
    ⎼␊␌␋⎻␊_┼▒└␊ "␍␊°▒┤┌├" 
    ⎼␊├⎼≤_␍␊┌▒≤ 2 
    ␌⎺⎺┐␉⎺⎺┐_┼▒└␊ "␌⎺└└⎺┼-⎽⎺°├┬▒⎼␊" 
    ␉▒␌┐┤⎻ 5 
    ⎼␊├⎼␋␊⎽ 0 
␊┼␍ 

Und die Terminal-Eingabeaufforderung zurückgegeben ... in der gleichen Codierung! Alle meine Eingaben wurden in diese Codierung konvertiert (Großbuchstaben erschienen jedoch wie üblich).

Meine Frage ist: Warum ändert Vagrant die Codierung meines Terminalfensters, und hat es etwas mit dem GRUB-Fehler zu tun?

Ich bin auf einem Macbook Pro.

+0

Dies kam vor Ihrer Frage an anderer Stelle im StackExchange-Netzwerk: http://askubuntu.com/questions/325872/ubuntu-unattended-apt-get-upgrade-grub-install-dialog – opyate

+0

Haben Sie jemals eine Ursache festgestellt für dieses Verhalten? –

Antwort

10

Wenn Sie apt-get verwenden Upgrade/dist-upgrade, versuchen Sie es:

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

+1

http://askubuntu.com/questions/146921/how-do-iapt-get-y-dist-upgrade-without-a-grub-config-prompt – dre

+0

Ich bekomme dies während der Ausführung innerhalb einer Qemu Chroot für Raspbian . Aliased wie @ Tieferx die Antwort unten und alles ist gut. –

2

ich eine Funktion für sie schrieb. Kopieren Sie einfach in Ihre Bereitstellung Skript einfügen:

function aptget { 
    # to prevent encoding problem 
    sudo DEBIAN_FRONTEND=noninteractive apt-get -y \ 
    -o Dpkg::Options::="--force-confdef" \ 
    -o Dpkg::Options::="--force-confold" \ 
    [email protected] 
} 

aptget update 
aptget upgrade 

Hinweis: ich dies als Kommentar zu @ gustavohenrique Antwort geschrieben hatte, aber es hat nicht ein gutes Format als Kommentar hatte. Also, ich habe dies als Antwort gepostet, obwohl es eine doppelte Antwort ist. Es ist mehr eine Ergänzung. Entschuldigung für die Störung.