I've set up a vagrant machine on my mac using the following commands -
vagrant init ubuntu/trusty64
vagrant up
Now I've sshed successfully into the machine using vagrant ssh
and trying to use sudo apt-get update
, which fails with the following error -
W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
I've tried cleaning my apt cache and removing the /var/lib/apt/lists
dir. I've also tried running the following command -
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
When I do the error changes to -
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources Hash Sum mismatch
And when I clean my cache the original error returns.
What can I do to resolve this?