Author Topic: Zentyal 6.2 Commercial version - issue when doing an "sudo apt-update"  (Read 1105 times)

vcottet

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Hello,

When I do a sudo apt-update, i've got the following error:
E: Failed to fetch http://packages.zentyal.com/zentyal-qa/dists/6.2/InRelease  401  Unauthorized [IP: 3.121.107.3 80]
E: The repository 'http://packages.zentyal.com/zentyal-qa 6.2 InRelease' is no longer signed.

Any idea on how to resolve it ?

Kind regards,
V.
« Last Edit: July 15, 2022, 06:49:15 pm by vcottet »

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Hi,

Try to import the repository key, it changed a few weeks ago.

Code: [Select]
curl http://keys.zentyal.org/zentyal-6.2-packages.asc | sudo apt-key add -

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".

vcottet

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Yes i did that but here is the results of "apt-key list" (it seems expired since the 2022-05-27):

/etc/apt/trusted.gpg.d/zentyal-6.2-packages-com.asc
---------------------------------------------------
pub   rsa3072 2020-05-27 [SC] [expired: 2022-05-27]
      935D 5F02 D09D 8E65 99D5  2A01 799E 2919 24B3 C2E9
uid           [ expired] Zentyal Commercial Repository <blorente@zentyal.com>

/etc/apt/trusted.gpg.d/zentyal-qa.asc
-------------------------------------
pub   rsa2048 2012-09-07 [SC]
      FFFF 8A63 82DC 816C 277B  935E 8E92 29F7 E23F 4777
uid           [ unknown] Zentyal Release Team <release-team@zentyal.org>
sub   rsa2048 2012-09-07 [E]

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Hi,

Try to remove that expired key with 'sudo apt-key del 935D 5F02 D09D 8E65 99D5  2A01 799E 2919 24B3 C2E9' and then, download and import again the official key. Below you have the output I get regarding the repository key:

Code: [Select]
apt-key list | grep -i -B3 -A3 'zentyal commercial repository'

pub   rsa4096 2022-05-30 [SC]
      A370 80C1 6056 CFA5 1A46  D744 B944 52C6 CA4B 6C41
uid           [ unknown] Zentyal Commercial Repository <blorente@zentyal.com>
sub   rsa4096 2022-05-30 [E]
sub   rsa4096 2022-05-30 [S] [expires: 2026-05-29]

Hope it helps.

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".

vcottet

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Thanks for your help. I really appreciate that! unfortunately, even if I run the same command, I v'e got the following results (even if I have the commercial editon - perpetual licences 25 w) :

apt-key list | grep -i -B3 -A3 'zentyal'
Warning: apt-key output should not be parsed (stdout is not a terminal)

pub   rsa4096 2020-10-22 [SC]
      DFAC 0C01 657C E14F F733  87CD 19CB DC0A 4E38 9175
uid           [ unknown] Zentyal Community Repository <blorente@zentyal.com>
sub   rsa4096 2020-10-22 [E]
sub   rsa4096 2020-10-22 [S ]

pub   dsa1024 2011-10-03 [SC]
      658A 4D9F 8A8F 16B5 8BE6  2DD0 76CB 3C6D 0D64 EFEC
uid           [ unknown] Zentyal (Packages Archive) <it@zentyal.com>
sub   elg2048 2011-10-03 [E]

/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-archive.gpg

uid           [ unknown] Zabbix LLC <packager@zabbix.com>
sub   rsa2048 2016-07-15 [E]

/etc/apt/trusted.gpg.d/zentyal-qa.asc
-------------------------------------
pub   rsa2048 2012-09-07 [SC]
      FFFF 8A63 82DC 816C 277B  935E 8E92 29F7 E23F 4777
uid           [ unknown] Zentyal Release Team <release-team@zentyal.org>
sub   rsa2048 2012-09-07 [E]


and for the command :  sudo apt-get update

[sudo] password for valery:
Hit:1 http://ch.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ch.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:4 http://ch.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:6 https://download.mono-project.com/repo/ubuntu stable-bionic InRelease
Get:5 http://packages.zentyal.com/zentyal-qa 6.2 InRelease [7,484 B]
Hit:7 http://repo.zabbix.com/zabbix/5.0/ubuntu bionic InRelease
Hit:8 https://cpkg.datto.com/datto-deb/public/bionic bionic InRelease
Err:5 http://packages.zentyal.com/zentyal-qa 6.2 InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EF358ACFF842CD9E
Hit:9 https://packagecloud.io/ookla/speedtest-cli/ubuntu bionic InRelease
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: GPG error: http://packages.zentyal.com/zentyal-qa 6.2 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EF358ACFF842CD9E
E: The repository 'http://packages.zentyal.com/zentyal-qa 6.2 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: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
« Last Edit: July 21, 2022, 10:36:51 am by vcottet »

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Hi vcottet,

According to the output, you don't have any commercial key. after removing the expired key, did you import the new one?

Code: [Select]
curl http://keys.zentyal.org/zentyal-6.2-packages.asc | sudo apt-key add -
sudo apt update

In case it keeps failing, send me the result of the command:

Code: [Select]
sudo apt-key list

--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".

vcottet

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Zentyal 6.2 Commercial version - issue when doing an "sudo apt-update"
« Reply #6 on: August 09, 2022, 11:04:19 am »
Hi,

I was on vacation and was not able to answer you before. The command is still failing and here is the "sudo apt-key list" results as requested:

sudo apt-key list
/etc/apt/trusted.gpg
--------------------
pub   rsa4096 2015-06-12 [SC]
      70DE D76D CD1F A875 B97C  C75B 370C 85D7 09D2 6407
uid           [ unknown] Datto, Inc (Datto Software Packages) <swpackages@datto.com>
sub   rsa4096 2015-06-12 [E]

pub   rsa4096 2015-02-17 [SC]
      8756 C4F7 65C9 AC3C B6B8  5D62 379C E192 D401 AB61
uid           [ unknown] Bintray (by JFrog) <bintray@bintray.com>
sub   rsa4096 2015-02-17 [E]

pub   rsa4096 2021-03-31 [SCEA]
      C525 F88F CF3A 7E56 CE2C  F591 31EB 3981 E723 ACAA
uid           [ unknown] https://packagecloud.io/ookla/speedtest-cli (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>
sub   rsa4096 2021-03-31 [SEA]

pub   rsa2048 2014-08-04 [SC]
      3FA7 E032 8081 BFF6 A14D  A29A A6A1 9B38 D3D8 31EF
uid           [ unknown] Xamarin Public Jenkins (auto-signing) <releng@xamarin.com>
sub   rsa2048 2014-08-04 [E]

pub   rsa4096 2020-10-22 [SC]
      DFAC 0C01 657C E14F F733  87CD 19CB DC0A 4E38 9175
uid           [ unknown] Zentyal Community Repository <blorente@zentyal.com>
sub   rsa4096 2020-10-22 [E]
sub   rsa4096 2020-10-22

pub   dsa1024 2011-10-03 [SC]
      658A 4D9F 8A8F 16B5 8BE6  2DD0 76CB 3C6D 0D64 EFEC
uid           [ unknown] Zentyal (Packages Archive) <it@zentyal.com>
sub   elg2048 2011-10-03 [E]

/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-archive.gpg
------------------------------------------------------
pub   rsa4096 2012-05-11 [SC]
      790B C727 7767 219C 42C8  6F93 3B4F E6AC C0B2 1F32
uid           [ unknown] Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>

/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
------------------------------------------------------
pub   rsa4096 2012-05-11 [SC]
      8439 38DF 228D 22F7 B374  2BC0 D94A A3F0 EFE2 1092
uid           [ unknown] Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>

/etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
------------------------------------------------------
pub   rsa4096 2018-09-17 [SC]
      F6EC B376 2474 EDA9 D21B  7022 8719 20D1 991B C93C
uid           [ unknown] Ubuntu Archive Automatic Signing Key (2018) <ftpmaster@ubuntu.com>

/etc/apt/trusted.gpg.d/zabbix-official-repo.gpg
-----------------------------------------------
pub   dsa1024 2012-10-28 [SC]
      FBAB D5FB 2025 5ECA B22E  E194 D13D 58E4 79EA 5ED4
uid           [ unknown] Zabbix SIA <packager@zabbix.com>
sub   elg1024 2012-10-28 [E]

pub   rsa2048 2016-07-15 [SC]
      A184 8F53 52D0 22B9 471D  83D0 082A B56B A14F E591
uid           [ unknown] Zabbix LLC <packager@zabbix.com>
sub   rsa2048 2016-07-15 [E]

/etc/apt/trusted.gpg.d/zentyal-qa.asc
-------------------------------------
pub   rsa2048 2012-09-07 [SC]
      FFFF 8A63 82DC 816C 277B  935E 8E92 29F7 E23F 4777
uid           [ unknown] Zentyal Release Team <release-team@zentyal.org>
sub   rsa2048 2012-09-07 [E]


and the "sudo apt update" command results:

Hit:1 http://ch.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ch.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://ch.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:6 https://download.mono-project.com/repo/ubuntu stable-bionic InRelease
Get:5 http://packages.zentyal.com/zentyal-qa 6.2 InRelease [7,484 B]
Hit:7 http://repo.zabbix.com/zabbix/5.0/ubuntu bionic InRelease
Hit:8 https://cpkg.datto.com/datto-deb/public/bionic bionic InRelease
Err:5 http://packages.zentyal.com/zentyal-qa 6.2 InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EF358ACFF842CD9E
Hit:9 https://packagecloud.io/ookla/speedtest-cli/ubuntu bionic InRelease
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: GPG error: http://packages.zentyal.com/zentyal-qa 6.2 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EF358ACFF842CD9E
E: The repository 'http://packages.zentyal.com/zentyal-qa 6.2 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: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mono-official-stable.list:1 and /etc/apt/sources.list.d/mono-stable.list:1
« Last Edit: August 09, 2022, 11:06:44 am by vcottet »

turalyon

  • Zen Warrior
  • ***
  • Posts: 197
  • Karma: +15/-0
    • View Profile
Re: Zentyal 6.2 Commercial version - issue when doing an "sudo apt-update"
« Reply #7 on: August 09, 2022, 11:21:57 am »
It is confirmed. The expired key is no longer in your Zentyal server, but either the new one.

You need to run the following command and make sure it did not show any error, if it gives you any kind of error, post the trace. If everything was okay apparently, check again the available repository keys and try to fetch the repository packages.

Code: [Select]
curl http://keys.zentyal.org/zentyal-6.2-packages.asc | sudo apt-key add -

sudo apt update

If it keeps not working you will need to contact Zentyal (sales@zentyal.com) and explain your current situation.
--

“This world is ours, and by the Holy Light we will keep it safe, now and forever".