2016-01-27 108 views
0

我執行vagrant up,但它失敗,這就是錯誤:流浪了錯誤

The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!

apt-get install -y linux-headers-`uname -r` dkms 

標準輸出的命令:

Reading package lists... 
Building dependency tree... 
Reading state information... 
The following extra packages will be installed: 
    fakeroot linux-headers-3.2.0-23 make patch 
Suggested packages: 
    make-doc diffutils-doc 
The following NEW packages will be installed: 
    dkms fakeroot linux-headers-3.2.0-23 linux-headers-3.2.0-23-generic make 
    patch 
0 upgraded, 6 newly installed, 0 to remove and 185 not upgraded. 
Need to get 272 kB/12.7 MB of archives. 
After this operation, 68.5 MB of additional disk space will be used. 
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main make amd64 3.81-8.1ubuntu1.1 [119 kB] 
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main patch amd64 2.6.1-3ubuntu0.1 [80.0 kB] 
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main patch amd64 2.6.1-3ubuntu0.1 [80.0 kB] 
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main dkms all 2.2.0.3-1ubuntu3.6 [73.3 kB] 
Fetched 271 kB in 1min 37s (2,791 B/s) 

在命令標準錯誤:

stdin: is not a tty 
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_3.81-8.1ubuntu1.1_amd64.deb Hash Sum mismatch 
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/patch/patch_2.6.1-3ubuntu0.1_amd64.deb Hash Sum mismatch 
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

任何人都可以幫助我解決這個問題嗎?

+0

你是如何運行從Vagrantfile該命令?殼牌供應商? –

+0

自我解釋_maybe運行apt-get update_並且在運行apt-get install -y linux-headers-''uname -r''dkms'之前 –

回答