2013-08-27 16 views
11

を切り替え、それが次のエラーで失敗しました:浮浪者プロビジョニングは、私は今日<code>vagrant provision</code>を実行していた文字エンコーディング

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

しかし、その後、私の驚きに、それは非常に奇妙な符号化でスタックトレースを印刷し始めた...

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


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

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


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

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

ターミナルプロンプトが返されました...同じエンコーディングで!すべての入力はそのエンコーディングに変換されました(大文字は通常どおりに表示されます)。

質問:私のターミナルウィンドウのエンコーディングを変えるのはなぜですか?それはGRUBエラーと関係していますか?

私はMacBook Proを使用しています。

+0

これは、他の場所StackExchangeネットワーク上のあなたの質問の前に来た:http://askubuntu.com/questions/325872/ubuntu-unattended-apt-get-upgrade-grub-install-dialog – opyate

+0

あなたは根本的な原因を特定しましたこの行動のために? –

答えて

10

あなたはapt-getをアップグレード/のdist-upgradeを使用している場合は、それを試してみてください。

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-i-apt-get-y-dist-upgrade-without-a-grub-config-prompt – dre

+0

私はraspbianのqemu chrootで実行中にこれを取得します。下の@deeperxの答えのようなエイリアスで、すべてがうまくいきます。 –

2

私はそれのための関数を書きました。ちょうどあなたの規定のスクリプトに貼り付けコピー:

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 

注:私は、@ gustavohenriqueの答えにコメントとして投稿していたが、それはコメントとして良い形式を持っていませんでした。だから、重複した答えですが、私はこれを答えとして掲示しました。これは補完的なものです。中断して申し訳ありません。

関連する問題