[SOLVED] public key is not available - Debian 10
marco
Status: Curious
Joined: 09 Jun 2020
Posts: 5
Reply Quote
Hi,

I wanted to give the Liquorix Kernel a try and I'm getting this error when trying to install it:

:: Code ::
Get:13 https://liquorix.net/debian buster InRelease [3.151 B]
Err:13 https://liquorix.net/debian buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AE4078033F8024D
Reading package lists... Done
W: GPG error: https://liquorix.net/debian buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AE4078033F8024D
E: The repository 'http://liquorix.net/debian buster 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.


Is there something wrong on my side? Do I have to activate backports or something?
In case it is not working as expected how can I undo all changes made by Liquorix installation command?

Thanks,
Marco
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 3974
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
There's no SSL issues with liquorix sid/unstable.

:: Code ::

Get:8 https://liquorix.net/debian unstable InRelease [3,165 B]
Get:11 https://liquorix.net/debian unstable/main amd64 Packages [4,448 B]


Maybe you need to update your SSL public key package?
Back to top
marco
Status: Curious
Joined: 09 Jun 2020
Posts: 5
Reply Quote
:: techAdmin wrote ::
There's no SSL issues with liquorix sid/unstable.

:: Code ::

Get:8 https://liquorix.net/debian unstable InRelease [3,165 B]
Get:11 https://liquorix.net/debian unstable/main amd64 Packages [4,448 B]


Maybe you need to update your SSL public key package?


Why unstable? I'm on Debian Buster (stable). Ok, I'll look into the SSL thing. Is this key certificate related to Liquorix or is it general?
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 816
Reply Quote
Did you use the installation script on the liquorix.net homepage? Here's the script if you missed it:
:: Code ::
codename="$(find /etc/apt -type f -name '*.list' | xargs grep -E '^deb' | awk '{print $3}' | grep -Eo '^[a-z]+' | sort | uniq -c | sort -n | tail -n1 | grep -Eo '[a-z]+$')" && sudo apt-get update && sudo apt-get install apt-transport-https && echo -e "deb http://liquorix.net/debian $codename main\ndeb-src http://liquorix.net/debian $codename main\n\n# Mirrors:\n#\n# Unit193 - France\n# deb http://mirror.unit193.net/liquorix $codename main\n# deb-src http://mirror.unit193.net/liquorix $codename main" | sudo tee /etc/apt/sources.list.d/liquorix.list && curl https://liquorix.net/linux-liquorix.pub | sudo apt-key add - && sudo apt-get update


Or if you just need the public key (which is the error you're getting), the snippet inside the install script is:
:: Code ::
curl https://liquorix.net/linux-liquorix.pub | sudo apt-key add -

Back to top
marco
Status: Curious
Joined: 09 Jun 2020
Posts: 5
Reply Quote
:: damentz wrote ::
Did you use the installation script on the liquorix.net homepage? Here's the script if you missed it:
:: Code ::
codename="$(find /etc/apt -type f -name '*.list' | xargs grep -E '^deb' | awk '{print $3}' | grep -Eo '^[a-z]+' | sort | uniq -c | sort -n | tail -n1 | grep -Eo '[a-z]+$')" && sudo apt-get update && sudo apt-get install apt-transport-https && echo -e "deb http://liquorix.net/debian $codename main\ndeb-src http://liquorix.net/debian $codename main\n\n# Mirrors:\n#\n# Unit193 - France\n# deb http://mirror.unit193.net/liquorix $codename main\n# deb-src http://mirror.unit193.net/liquorix $codename main" | sudo tee /etc/apt/sources.list.d/liquorix.list && curl https://liquorix.net/linux-liquorix.pub | sudo apt-key add - && sudo apt-get update


Or if you just need the public key (which is the error you're getting), the snippet inside the install script is:
:: Code ::
curl https://liquorix.net/linux-liquorix.pub | sudo apt-key add -


Yes, I used the script.
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 816
Reply Quote
Ok, I updated the Debian install script, here's the latest code that's also on the front page:
:: Code ::
codename="$(find /etc/apt -type f -name '*.list' | xargs grep -E '^deb' | awk '{print $3}' | grep -Eo '^[a-z]+' | sort | uniq -c | sort -n | tail -n1 | grep -Eo '[a-z]+$')" && sudo apt-get install apt-transport-https curl && echo -e "deb http://liquorix.net/debian $codename main\ndeb-src http://liquorix.net/debian $codename main\n\n# Mirrors:\n#\n# Unit193 - France\n# deb http://mirror.unit193.net/liquorix $codename main\n# deb-src http://mirror.unit193.net/liquorix $codename main" | sudo tee /etc/apt/sources.list.d/liquorix.list && curl 'https://liquorix.net/linux-liquorix.pub' | sudo apt-key add - && sudo apt-get update


The key is that Debian doesn't have curl installed by default, so you ran this script and it failed when it got to the code section to get the public key and import. After reinstalling curl, you now have the liquorix.net sources, but not the public key, which causes sudo apt-get update return an error.

The script now no longer executes sudo apt-get update early and also installs curl for when we need to import the key.
Back to top
marco
Status: Curious
Joined: 09 Jun 2020
Posts: 5
Reply Quote
:: damentz wrote ::
Ok, I updated the Debian install script, here's the latest code that's also on the front page:
:: Code ::
codename="$(find /etc/apt -type f -name '*.list' | xargs grep -E '^deb' | awk '{print $3}' | grep -Eo '^[a-z]+' | sort | uniq -c | sort -n | tail -n1 | grep -Eo '[a-z]+$')" && sudo apt-get install apt-transport-https curl && echo -e "deb http://liquorix.net/debian $codename main\ndeb-src http://liquorix.net/debian $codename main\n\n# Mirrors:\n#\n# Unit193 - France\n# deb http://mirror.unit193.net/liquorix $codename main\n# deb-src http://mirror.unit193.net/liquorix $codename main" | sudo tee /etc/apt/sources.list.d/liquorix.list && curl 'https://liquorix.net/linux-liquorix.pub' | sudo apt-key add - && sudo apt-get update


The key is that Debian doesn't have curl installed by default, so you ran this script and it failed when it got to the code section to get the public key and import. After reinstalling curl, you now have the liquorix.net sources, but not the public key, which causes sudo apt-get update return an error.

The script now no longer executes sudo apt-get update early and also installs curl for when we need to import the key.


Thanks. I'm pretty sure that I installed curl before executing the script. I'll give it another try then. Is there any chance to screw my system with this script?
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 816
Reply Quote
:: Quote ::
Thanks. I'm pretty sure that I installed curl before executing the script. I'll give it another try then. Is there any chance to screw my system with this script?


No, it only installs apt-transport-https and curl, add's the liquorix public key to apt, then writes out /etc/apt/sources.d/liquorix.list
Back to top
marco
Status: Curious
Joined: 09 Jun 2020
Posts: 5
Reply Quote
:: damentz wrote ::
:: Quote ::
Thanks. I'm pretty sure that I installed curl before executing the script. I'll give it another try then. Is there any chance to screw my system with this script?


No, it only installs apt-transport-https and curl, add's the liquorix public key to apt, then writes out /etc/apt/sources.d/liquorix.list


Thanks, worked perfectly now!
Back to top
Display posts from previous:   

All times are GMT - 8 Hours