2016-09-09 45 views
0

無法上升流浪我試圖安裝Portia Scrawlhub在Ubuntu版本16中使用vagrant。 當我在終端中給「sudo vagrant up」時出現以下錯誤。 有人可以幫助我在這方面。由於無效的OpenPGP在Ubuntu 16

==> 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. 
+0

你是在代理還是某種防火牆後運行它?問題似乎是你的流浪者無法連接到keyserver.ubuntu.com – ffledgling

+0

即時通訊使用辦公網絡,但並非所有的網站都在這裏被阻止。 –

+0

能夠通過瀏覽器連接到鏈接keyserver.ubuntu.com。 –

回答

1

日誌表明Vagrant工作得很好。當Vagrant試圖啓動虛擬機並運行它所要求的命令時,它會失敗。失敗是因爲OP無法訪問端口11371上的keyserver.ubuntu.com,該端口似乎在網絡上被阻止。

正確的修復方法是更改​​網絡防火牆/訪問規則以允許訪問密鑰服務器或至少keyserver.ubuntu.com:11371

周圍的工作將試圖修改流浪文件,以便下面的命令:

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.comhkp://keyserver.ubuntu.com:80。 [1]

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

+0

在流氓文件下屬性我應該包括這個? –

相關問題