apt update failing public key not available error

pjaxom

New Member
Apr 2, 2024
3
0
1
hello,
I am testing proxmox Datacenter manager in our internal network and getting this error when trying to apt update.
I have verified the public key and also downloaded it manually and placed in /etc/apt/trusted.gpg.d.
proxmox-release-bookworm.gpg has the correct public key.
I am using non enterprise version and planning to switch to enterprise after testing.

I was able to get PDM working in home lab bdut not at work internal network. At this point I think the proxmox self signed cert is being blocked internally or something but I am not sure.
Any advise ?

PDM shell:

1747416549781.png

PVE shell:

1747416683998.png
 
Please don't share text as a picture. Use a code block. Did you run this as per docs?
Bash:
wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
 
Last edited:
Please don't share text as a picture. Use a code block. Did you run this as per docs?
Bash:
wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
Bash:
Connecting to enterprise.proxmox.com (enterprise.proxmox.com)|66.70.154.82|:443... connected.
ERROR: The certificate of 'enterprise.proxmox.com' is not trusted.
ERROR: The certificate of 'enterprise.proxmox.com' doesn't have a known issuer.

Yes, I had ran this and followed the installation procedure in the docs.
 
Please don't full quote. My message is right above yours. Did you run apt update before? What does it say?
 
Code:
apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Get:4 http://download.proxmox.com/debian/pve bookworm InRelease [2768 B]
Get:5 http://download.proxmox.com/debian/pdm bookworm InRelease [1951 B]
Err:4 http://download.proxmox.com/debian/pve bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1140AF8F639E0C39
Err:5 http://download.proxmox.com/debian/pdm bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1140AF8F639E0C39
Reading package lists... Done
W: GPG error: http://download.proxmox.com/debian/pve bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1140AF8F639E0C39
E: The repository 'http://download.proxmox.com/debian/pve bookworm 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.
W: GPG error: http://download.proxmox.com/debian/pdm bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1140AF8F639E0C39
E: The repository 'http://download.proxmox.com/debian/pdm bookworm 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.
 
Sorry I kind of overlooked the errors from the wget call. Since it fails to download the key it's no wonder it complains. Give this a try and see if it works then.
 
Last edited: