Gpg: no valid OpenPGP data found

Hello,
I am installing Opennebula using https://docs.opennebula.org/5.4/deployment/opennebula_installation/frontend_installation.html. While running the command

wget -q -O- http://downloads.opennebula.org/repo/repo.key | apt-key add -

I got “gpg: no valid OpenPGP data found” error. I used the link https://stackoverflow.com/questions/21338721/gpg-no-valid-openpgp-data-found and performed following steps:

  1. open http://downloads.opennebula.org/repo/repo.key in browser
  2. save key in downloads
  3. move to cd /Downloads/ as root@nehaagrawal-HP-Compaq-8100-Elite-CMT-PC:/home/nehaagrawal/Downloads#
  4. Run apt-key add repo.key
    OK is produced as output.

But when I run apt-get update command, I got
Err:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Temporary failure resolving 'in.archive.ubuntu.com
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Temporary failure resolving 'security.ubuntu.com
Err:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease
Temporary failure resolving 'in.archive.ubuntu.com
Err:4 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
Temporary failure resolving 'in.archive.ubuntu.com
Err:5 https://downloads.opennebula.org/repo/5.4/Ubuntu/16.04 stable InRelease
Could not resolve host: downloads.opennebula.org
Reading package lists… Done
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'in.archive.ubuntu.com
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'in.archive.ubuntu.com
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'in.archive.ubuntu.com
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'security.ubuntu.com
W: Failed to fetch https://downloads.opennebula.org/repo/5.4/Ubuntu/16.04/dists/stable/InRelease Could not resolve host: downloads.opennebula.org
W: Some index files failed to download. They have been ignored, or old ones used instead.

Please help me in this regard.

sorry after step 4 I issued below commands

root@nehaagrawal-HP-Compaq-8100-Elite-CMT-PC:/home/nehaagrawal# echo “deb https://downloads.opennebula.org/repo/5.4/Ubuntu/16.04 stable opennebula” > /etc/apt/sources.list.d/opennebula.list
root@nehaagrawal-HP-Compaq-8100-Elite-CMT-PC:/home/nehaagrawal# apt-get update

Diagnose network connectivity problems, the first answer at https://askubuntu.com/questions/91543/apt-get-update-fails-to-fetch-files-temporary-failure-resolving-error has a reasonable explanation. Good to see you on xenial. Since you are on a clean system, have you verified https://help.ubuntu.com/community/KVM/Installation (don’t install anything, just verify)?

Thank you marcindulak,
The problem has been resolved.

No need to thank, instead, when you figure out a reason and a solution to a problem please report them back on the forum. Internet is filled with politeness and promises, but that really matters is reliable information.

I have only replaced Export to Acquire in the terminal proxy setting and when I issued apt-get update all was went fine

Hello Marcindulak,
When I issued below command
root@nehaagrawal-HP-Compaq-8100-Elite-CMT-PC:/home/nehaagrawal# /usr/share/one/install_gems
I got following error
ERROR: Could not find a valid gem ‘bundler’ (>= 0), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/specs.4.8.gz)
/usr/share/one/install_gems:413:in install_bundler_gem': undefined methodnew’ for #<IO:> (NoMethodError)
from /usr/share/one/install_gems:592:in `’

Do I manually install all packages or there is any alternative for this problem?

Network problems continue?

wget https://rubygems.org/specs.4.8.gz

successfully installed front-end…