我使用以下命令在我的Mac上设置了一个流浪汉机器 -
vagrant init ubuntu/trusty64
vagrant up
现在我使用vagrant ssh
成功地使用sudo apt-get update
并尝试使用W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
,但失败并出现以下错误 -
/var/lib/apt/lists
我尝试清理apt缓存并删除sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
目录。我也试过运行以下命令 -
http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources Hash Sum mismatch
当我将错误更改为 - 时 W:无法获取{{1}}
当我清理缓存时,原始错误会返回。
我该怎么做才能解决这个问题?
答案 0 :(得分:2)
您拥有哪个版本的基本框(ubuntu/trust64
)?当我按照你采取的步骤时,我会收到一点警告:
==> default: A newer version of the box 'ubuntu/trusty64' is available! You currently
==> default: have version '20151119.0.0'. The latest is version '20160323.0.0'. Run
==> default: `vagrant box update` to update.
您是否尝试过vagrant box update
?
我按照您的步骤操作,并且能够在此框中没有任何错误地发送sudo apt-get update
。