由于Ubuntu 16中的OpenPGP无效,无法启动流浪者

时间:2016-09-09 11:17:00

标签: vagrant ubuntu-16.04 portia

我正在尝试使用Ubuntu版本16中的vagrant安装Portia Scrawlhub。 当我给" sudo vagrant up"在终端我得到以下错误。 在这方面,有人可以帮助我。

==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default: 
    default: Guest Additions Version: 4.3.36
    default: VirtualBox Version: 5.0
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => /home/nn/Downloads/portia-master
==> default: Running provisioner: shell...
    default: Running: /tmp/vagrant-shell20160909-3538-1mj5bwh.sh
==> default: stdin: is not a tty
==> default: APP_ROOT=/vagrant
==> default: Executing command: install_deps
==> default: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.3yWEJelTfE --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys ABF5BD827BD9BF62
==> default: gpg: 
==> default: requesting key 7BD9BF62 from hkp server keyserver.ubuntu.com
==> default: ?: 
==> default: keyserver.ubuntu.com: Connection refused
==> default: gpgkeys: HTTP fetch error 7: couldn't connect: Connection refused
==> default: gpg: 
==> default: no valid OpenPGP data found.
==> default: gpg: 
==> default: Total number processed: 0
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

1 个答案:

答案 0 :(得分:1)

日志表明Vagrant工作正常。当Vagrant尝试启动VM并运行它被要求的命令时,它就会失败。失败是因为OP无法访问端口keyserver.ubuntu.com上的11371,这似乎在网络上被阻止。

正确的解决方法是更改​​网络防火墙/访问规则以允许访问密钥服务器,或至少keyserver.ubuntu.com:11371

解决方法是尝试修改Vagrant文​​件,以便执行以下命令:

gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.3yWEJelTfE --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys ABF5BD827BD9BF62

更改为

gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.3yWEJelTfE --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ABF5BD827BD9BF62

请注意,--keyserver标记的参数已从keyserver.ubuntu.com更改为hkp://keyserver.ubuntu.com:80。 [1]

[1]使用https://ubuntuforums.org/showthread.php?t=1101366&p=10043037#post10043037作为参考。