Ppa-key problem with install on Linux Mint

Hi there! Unfortunately I cannot install KiCad 6 on Linux Mint. In trying to do so, I always run into an error with the ppa. Setting up the ppa:kicad/kicad-6.0-releases in Software Sources I got the following error text:

W:GPG error: http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 245D5502FAD7A805, E:The repository 'http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu focal InRelease' is not signed.

Trying to do it with the CLI I got:

michael@michael-ThinkPad-T460:~$ sudo add-apt-repository --yes ppa:kicad/kicad-6.0-releases
You are about to add the following PPA:
 Official KiCad 6.0 releases
 More info: https://launchpad.net/~kicad/+archive/ubuntu/kicad-6.0-releases
Executing: /tmp/apt-key-gpghome.bY5XZc1RMC/gpg.1.sh --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys FDA854F61C4D0D9572BB95E5245D5502FAD7A805
gpg: keyserver receive failed: General error

michael@michael-ThinkPad-T460:~$ sudo apt-get update
...
Err:9 http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 245D5502FAD7A805
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 245D5502FAD7A805
E: The repository 'http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Trying the nightly build gave the same error:

michael@michael-ThinkPad-T460:~$ sudo add-apt-repository ppa:kicad/kicad-dev-nightly
You are about to add the following PPA:
 KiCad nightly packages (master branch)

* Provides separation between stable and daily build packages
* Allows installation of KiCad stable and daily on the same machine
* This version can be unstable (dev branch of KiCad)

KiCad now needs boost >= 1.59. Xenial (16.04) is no longer compatible.
 More info: https://launchpad.net/~kicad/+archive/ubuntu/kicad-dev-nightly
Press Enter to continue or Ctrl+C to cancel

Executing: /tmp/apt-key-gpghome.Db2UjfFUDu/gpg.1.sh --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys FDA854F61C4D0D9572BB95E5245D5502FAD7A805
gpg: keyserver receive failed: General error

Obviously I cannot get the key. Why? Any help is appreciated!

Try manually installing the key.

gpg --keyserver keyserver.ubuntu.com --recv-key 245D5502FAD7A805

then sudo apt-get update again

Hi gmc, thanks for the help!

I did as you suggested. The gpg command seemed to work (see below), but the update gave the exact same result as before (see above).

michael@michael-ThinkPad-T460:~$ gpg --keyserver keyserver.ubuntu.com --recv-key 245D5502FAD7A805
gpg: key 245D5502FAD7A805: public key "Launchpad PPA for KiCad" imported
gpg: Total number processed: 1
gpg:               imported: 1

Just to be sure, I rebooted and tried again, but got eactly the same result. As well I tried to download the key as described in
https://launchpad.net/~kicad/+archive/ubuntu/kicad-6.0-releases
but again with no result.
Reinstalling KiCad 5.1.5 instead workes like a charm. I do not know where to bang my head! :pleading_face:

What version of Mint are you running.

Can you post result of
cat /etc/os-release

I use Mint: 20.2 Cinnamon

Downloaded from here:https://www.kicad.org/

You can find it in Help/ About Kicad.

Just copy and paste, or type the three lines:

sudo add-apt-repository --yes ppa:kicad/kicad-6.0-releases
sudo apt update
sudo apt install --install-recommends kicad

And sit back and wait for the download to complete then install… It just works!

Hi jmk: Thanks, but unfortunately it is the 1st line that doesn’t work.

Hi gmc, I got:
michael@michael-ThinkPad-T460:~$ cat /etc/os-release
NAME=“Linux Mint”
VERSION=“20 (Ulyana)”
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME=“Linux Mint 20”
VERSION_ID=“20”
HOME_URL=“h…ps://www.linuxmint.com/”
SUPPORT_URL=“h…ps://forums.linuxmint.com/”
BUG_REPORT_URL=“h…p://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/”
PRIVACY_POLICY_URL=“h…ps://www.linuxmint.com/”
VERSION_CODENAME=ulyana
UBUNTU_CODENAME=focal

It is not the newest, but its the one I like. :blush:

Sorry, I’m now on 20.3 Uma, but 6 installed perfectly on 20.2 Ulyana

Put in the whole line:
sudo add-apt-repository --yes ppa:kicad/kicad-6.0-releases

You then type in your password.

Then put in the next two lines, then the download starts.

Should be apt-add-repository

@gmc

I copied and pasted from the Kicad site to this forum. Are you sure GMC?

Thanks to both! I have tried both versions: with apt-add and with add-apt and got both times the same error result.

Any other ideas, please?

You did cut and paste this whole line from the kicad site then “enter”?
sudo add-apt-repository --yes ppa:kicad/kicad-6.0-releases

Actually seem both should work on Ubuntu

greg@greg-MS-7C56:~$ which add-apt-repository
/usr/bin/add-apt-repository

greg@greg-MS-7C56:~$ which apt-add-repository
/usr/bin/apt-add-repository

On the Ubuntu forms :slight_smile:

They’re the same command, someone just added the inverse because people kept mixing the command up and typing it wrong.

@Muragavino can you post the full error.

@gmc

Linux for the dyslexic? :slightly_smiling_face: :slightly_smiling_face: :slightly_smiling_face:

Here is the full error:
michael@michael-ThinkPad-T460:~$ sudo add-apt-repository --yes ppa:kicad/kicad-6.0-releases You are about to add the following PPA: Official KiCad 6.0 releases More info: https://launchpad.net/~kicad/+archive/ubuntu/kicad-6.0-releases Executing: /tmp/apt-key-gpghome.bpgfUKA7Qn/gpg.1.sh --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys FDA854F61C4D0D9572BB95E5245D5502FAD7A805 gpg: keyserver receive failed: General error

What baffles me is the last 3 lines from the sudo apt-get update:
E: The repository 'http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu focal InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

Why is it not signed?

I don’t think https is supported on that repo. Not sure why. I can browse to
http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu/

but not
https://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu/

Not sure why your Mint is not adding the key.

A very odd error:
keyserver receive failed: General error

Not sure if this will work but try adding the full key manually:

gpg --keyserver keyserver.ubuntu.com --recv-key FDA854F61C4D0D9572BB95E5245D5502FAD7A805

Someone on the mint forums had a similar issue with other packages:
https://forums.linuxmint.com/viewtopic.php?t=359098

and had to install the ca certs.
sudo apt install ca-certificates

Thanks a lot! That did the trick. Now I am installing.
Seems it worked, it has installed, but haven’t tried it yet. Seems as well it has overwritten the KiCad 5.1.5 installation.

Great stuff.

Yes, it will overwrite and upgrade 5.x to 6.0

If you want to run both you will need to use appimages

Thanks a lot again, it just seems to be fine, I even have all my own symbols and footprints available without any hassle - GREAT!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.