# Keyserver failure

**URL:** <https://forum.ubiquityrobotics.com/t/keyserver-failure/1096>\
**Category:** General Questions\
**Created:** [December 4, 2023, 2:51pm UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096 "2023-12-04T14:51:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricoMeger](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@EricoMeger](https://forum.ubiquityrobotics.com/u/EricoMeger)\
**Post date:** [December 4, 2023, 2:51pm UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096/1 "2023-12-04T14:51:06Z")

</div>

I’am trying to add ubiquity repo on a ubuntu 20.04 (non-ubiquity image) following the documentation: [noetic\_packages\_repositories](https://learn.ubiquityrobotics.com/noetic_package_repositories)

but adding keyserver wont work:

```auto
Executing: /tmp/apt-key-gpghome.zBSETbPUSW/gpg.1.sh --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C3032ED8
gpg: keyserver receive failed: Server indicated a failure

```

Is it a problem on my side? Thanks in advance

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [December 12, 2023, 8:33am UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096/2 "2023-12-12T08:33:35Z")

</div>

Please type the exact thing you typed when you got this error.

On brief inspection just now, the webpage you refer to may be out of date **because I see ‘focal’ in the command line**. So knowing more on what you were typing is valuable here for this question.

Sometimes this changes so I’ll ask others what the line is these days then try to correct the web page. We normally have this setup on our own images already so this can hit persons using non ubiquity robotics images.

---

<div class="post-metadata">

**Author:** ![EricoMeger](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@EricoMeger](https://forum.ubiquityrobotics.com/u/EricoMeger)\
**Post date:** [December 12, 2023, 11:19am UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096/3 "2023-12-12T11:19:25Z")

</div>

sorry for the lack of information,

I’am trying to add the ubiquity repo for an ubuntu 20.04, as I wanted to install pifi on my raspberry pi and installing it through source isn’t working (pifi doesn’t open AP nor connect to wifi).

Following the [pifi repository](https://github.com/rohbotics/pifi) I followed the link [package\_repositories](https://learn.ubiquityrobotics.com/noetic_package_repositories) so I could try and install it from the debs.

Running the commands as seen in the documentation:

```auto
sudo sh -c 'echo "deb https://packages.ubiquityrobotics.com/ubuntu/ubiquity focal main" > /etc/apt/sources.list.d/ubiquity-latest.list'

```

Works fine, but when I try to add the signing key to the trusted list, using the command:

```auto
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C3032ED8

```

After a while, it returns the keyserver failure:  
`gpg: keyserver receive failed: Server indicated a failure`

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [December 13, 2023, 7:49am UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096/4 "2023-12-13T07:49:23Z")

</div>

Ok thank you. So you said ‘focal’ in the command. I tried this simply using ‘noetic’ however I got the same error you saw.

I have passed this on to others who are more aware of the packages. No response yet.

I seem to remember something like this happening in the past but I did not make a note. My top suspect is the key has changed OR has expired. Thanks for your reporting this issue.

---

<div class="post-metadata">

**Author:** ![EricoMeger](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/e/51bf81/32.png) [@EricoMeger](https://forum.ubiquityrobotics.com/u/EricoMeger)\
**Post date:** [December 13, 2023, 11:25am UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096/5 "2023-12-13T11:25:20Z")

</div>

Thanks for the response. Can I ask you to let me know when it starts working again? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![rakase](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/r/58956e/32.png) [@rakase](https://forum.ubiquityrobotics.com/u/rakase)\
**Post date:** [January 24, 2024, 4:03pm UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096/6 "2024-01-24T16:03:04Z")

</div>

I’am having the same problem, did you get a response back?

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [February 4, 2024, 1:10am UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096/7 "2024-02-04T01:10:48Z")

</div>

I looked again at this but again, am not an apt guru. On our image there is one difference that may account for the issues. Note the URI ends in ubiquity-testing and so the command line would not have been right. The file I will show now is /etc/apt/sources.list.d/ubiquity-latest.sources

ubuntu@ubiquityrobot:~$ more /etc/apt/sources.list.d/ubiquity-latest.sources  
Types: deb  
URIs: [https://packages.ubiquityrobotics.com/ubuntu/ubiquity-testing](https://packages.ubiquityrobotics.com/ubuntu/ubiquity-testing)  
Suites: focal  
Components: main pi  
Signed-By: /usr/share/keyrings/ubiquity-archive-keyring.gpg

So ‘maybe’ the line should be like this instead:  
sudo sh -c ‘echo “deb [https://packages.ubiquityrobotics.com/ubuntu/ubiquity-testing](https://packages.ubiquityrobotics.com/ubuntu/ubiquity-testing) focal main” \> /etc/apt/sources.list.d/ubiquity-latest.list’

As far as the keyserver key if the one shown is not valid any longer I don’t know what the proper hex --recv-key value would be.

I don’t want to do this because my image works fine and maybe this test is best done on your end where you want the ubiquity-latest.sources to look like what I have above THEN try and cross fingers while doing the sudo apt-key line

Let us know if this works please.

When I do a ‘sudo apt update’ I get this and note the ubiquity-testing shows in this:

ubuntu@ubiquityrobot:~$ vie /etc/apt/sources.list  
ubuntu@ubiquityrobot:~$ sudo apt update  
[sudo] password for ubuntu:  
Hit:1 [http://packages.ros.org/ros/ubuntu](http://packages.ros.org/ros/ubuntu) focal InRelease  
Hit:2 [https://packages.ubiquityrobotics.com/ubuntu/ubiquity-testing](https://packages.ubiquityrobotics.com/ubuntu/ubiquity-testing) focal InRelease  
Hit:3 [http://ports.ubuntu.com](http://ports.ubuntu.com) focal InRelease  
Hit:4 [http://ports.ubuntu.com](http://ports.ubuntu.com) focal-updates InRelease  
Hit:5 [http://ports.ubuntu.com](http://ports.ubuntu.com) focal-security InRelease  
Hit:6 [http://ports.ubuntu.com](http://ports.ubuntu.com) focal-backports InRelease  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
331 packages can be upgraded. Run ‘apt list --upgradable’ to see them.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [February 4, 2024, 10:28am UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096/8 "2024-02-04T10:28:36Z")

</div>

And more digging (again, im no expert but trying to help). Our images have this all setup so this is purely to try to help in this non-supported situation.

Refer to this page which is generic [https://ubuntu.com/server/docs/third-party-apt-repositories](https://ubuntu.com/server/docs/third-party-apt-repositories)

Center of this page is third party repo support and it explains some things I have discussed like the images we have today have file /etc/apt/sources.list.d/ubiquity-latest.sources as I have pasted above and it references a ‘Signed-By’ line with a path to /usr/share/keyrings/ubiquity-archive-keyring.gpg

In your case that file will not be present so you need that file on your system in /usr/share/keyrings/ubiquity-archive-keyring.gpg and this is where I am stuck now. I have this file so will try to attach, this may be valuable to solve this issue you are having in not using our images where this is already setup.

ARRRRRGGGG! I cannot upload this file and cannot find an extension to trick the stupid upload rules. So to get this ‘darn’ (note the PC language used although in person it was more explicit.

So send me an email at [support@ubiquityrobotics.com](mailto:support@ubiquityrobotics.com) and say in subject ATTENTION Mark and we do it that way. ARRRRGGGG!

---

<div class="post-metadata">

**Author:** ![hyba28](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/hyba28/32/683_2.png) [@hyba28](https://forum.ubiquityrobotics.com/u/hyba28)\
**Post date:** [March 5, 2024, 8:46am UTC](https://forum.ubiquityrobotics.com/t/keyserver-failure/1096/9 "2024-03-05T08:46:49Z")

</div>

Hey, I have the same failure… can you send me this too? [hyba28@gmail.com](mailto:hyba28@gmail.com) my email
