Error installing on ubuntu 22 - Certificate issuer is unknown

Hi all
im trying to install xwiki on a fresh ubuntu 22 server, but im getting certificate errors

im following the instructions here
https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationViaAPT/

and it all works OK till i get to the update part

Err:5 https://maven.xwiki.org stable/ InRelease
  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 92.222.135.198 443]
Fetched 754 kB in 9s (79.5 kB/s)
Reading package lists... Done
W: Failed to fetch https://maven.xwiki.org/stable/InRelease  Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 92.222.135.198 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.

Iv tried a few things online but nothing seems to have worked
re installing ca-certificates
changing the sources list to add trusted=yes

Does anyone know how to fix this problem?
Many thanks

You sure you executed the first line of Installation using Debian (.DEB) packages (XWiki.org) which put the certificate in /usr/share/keyrings/xwiki-keyring.gpg ?

Yup, followed the steps exactly
I can post a screenshot if it helps?

Do you have several XWiki related files in /etc/apt/sources.list.d/ ?

I just ran into the same issue, and replacing https://maven.xwiki.org by http://maven.xwiki.org in the /etc/apt/sources.list.d/xwiki-*.list helped.
I am not sure why; https was no problem with ubuntu/20.04

I have also run into this issue a few times on popos(based on ubuntu22.04) and applied the same fix

The problem with https://maven.xwiki.org certificate should now be resolved. Thanks for the report, and sorry for the late fix…

1 Like