Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 飘忽不定的错误_Ubuntu_Vagrant_Virtualbox - Fatal编程技术网

Ubuntu 飘忽不定的错误

Ubuntu 飘忽不定的错误,ubuntu,vagrant,virtualbox,Ubuntu,Vagrant,Virtualbox,我执行了vagrant up,但失败了,错误如下: 以下SSH命令以非零退出状态响应。 Vagrant认为这意味着命令失败 命令中的Stdout: 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 S

我执行了
vagrant up
,但失败了,错误如下:

以下SSH命令以非零退出状态响应。 Vagrant认为这意味着命令失败

命令中的Stdout:

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?
命令中的Stderr:

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?

有人能帮我解决这个问题吗?

你是如何从你的文件中运行这个命令的?Shell provisioner?不言而喻,在运行
apt-get-install-y linux headers-`uname-r``dkms
之前,可能会运行apt-get-update,在vagrant中使用debian/buster64时也会遇到同样的问题,完全没有设置,只有Vagrantfile。您如何从Vagrantfile运行该命令?Shell provisioner?不言自明,在运行
apt-get-install-y linux headers-`uname-r``dkms之前,可能会运行apt-get-update,在使用debian/buster64的vagrant中遇到同样的问题,根本没有设置,只需使用Vagrantfile即可。