Have tried today every which way to get a collabora code repository to work so I can update my install (working fine with Nextcloud but Nextcloud office nags to update collabora) but always end up with ‘apt update’ failing and giving the old unsigned etc warnings (eg NO_PUBKEY D8915E456E7C440E). This is after completely clearing out any existing entries in either of the keyring dirs (etc and usr paths) and deleting any entries in sources. Seems to be a much reported issue, but no topics help me - as I am using the exact collabora current instructions for Linux, url as in title of post, I can’t see what else I can do? I checked the keyring file that gets created using the current instructions and it is indeed a completely key string to the one that’s being looked for. Any help much appreciated and apologies in advance for a rather ‘duplicated’ topic.
Hi, sorry for the trouble. I’ve just checked: the current release keyring and the CODE repository match. The repo is signed with 7EB1530818B7683284483B7BD8915E456E7C440E, which is the D8915E456E7C440E apt is asking for, and that’s the only key in the official keyring file. So apt is almost certainly reading a different key file, or a second Collabora source line, from the one you think it is. Could you run these and post the output?
gpg --show-keys /etc/apt/keyrings/collaboraonline-release-keyring.gpg
grep -rn -i collabora /etc/apt/sources.list /etc/apt/sources.list.d/
The first command should show 7EB1530818B7683284483B7BD8915E456E7C440E. If it shows anything else, that file is the wrong one. Check that the URL says release, not snapshot.
The second command should list exactly one source, and its Signed-By: should point at that same file. Delete any other Collabora lines it finds.
To start clean:
sudo rm -f /etc/apt/sources.list.d/collabora*
sudo mkdir -p /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/collaboraonline-release-keyring.gpg
https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
sudo tee /etc/apt/sources.list.d/collaboraonline.sources <<‘EOF’
Types: deb
URIs: Index of /repos/CollaboraOnline/CODE-deb
Suites: ./
Signed-By: /etc/apt/keyrings/collaboraonline-release-keyring.gpg
EOF
sudo apt update
If apt update still fails after that, please post the full output of the two commands above along with the exact error, and we’ll take it from there.
Thanks
Darshan
Hi and here’s what’s coming back from those - I had not done anything since the op.:
gpg --show-keys /etc/apt/keyrings/collaboraonline-release-keyring.gpg
gpg: can’t open ‘/etc/apt/keyrings/collaboraonline-release-keyring.gpg’: No such file or directory
grep -rn -i collabora /etc/apt/sources.list /etc/apt/sources.list.d/
xxxxx@xxxxx:~$ (no result returned)
So proceeding with the start clean process:
sudo rm -f /etc/apt/sources.list.d/collabora*
sudo mkdir -p /etc/apt/keyrings
No errors reported and terminal just goes to next line awaiting new input for both.
Checked and the /etc/apt/keyrings dir that was already there and still contains the one keyring (MariaDb)
Success getting collabora keyring - confirmed in right place
Tee command ‘hung’ so created file collaboraonline.sources with nano - pasted content in as below:
Types: deb
URIs: Index of /repos/CollaboraOnline/CODE-deb
Suites: ./
Signed-By: /etc/apt/keyrings/collaboraonline-release-keyring.gpg
Here goes sudo apt update - fingers crossed! ![]()
sudo apt update
E: Malformed entry 1 in sources file /etc/apt/sources.list.d/collaboraonline.sources (URI parse)
E: The list of sources could not be read
Pasting copied ‘link address’ into sources file for URIs… fixed! But…
Err:14 Index of /repos/CollaboraOnline/CODE-deb ./ InRelease
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY D8915E456E7C440E
Reading package lists… Done
W: GPG error: Index of /repos/CollaboraOnline/CODE-deb ./ InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY D8915E456E7C440E
E: The repository ‘Index of /repos/CollaboraOnline/CODE-deb ./ 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.
Good progress. The repo line is right now, so we’re down to the key file itself. apt is finding the file but not finding the key in it. Could you post the output of these?
ls -l /etc/apt/keyrings/collaboraonline-release-keyring.gpg
sha256sum /etc/apt/keyrings/collaboraonline-release-keyring.gpg
gpg --show-keys /etc/apt/keyrings/collaboraonline-release-keyring.gpg
cat /etc/apt/sources.list.d/collaboraonline.sources
lsb_release -a
What we expect to see:
- ls -l: about 1276 bytes, permissions -rw-r–r–
- sha256sum: b77f959916c0ec2072b72860d80f9c066910d9bddd2f69534b488f4b4d5ca4dd
- gpg --show-keys: 7EB1530818B7683284483B7BD8915E456E7C440E
If the permissions show -rw-------, apt can’t read the file. Fix it with:
sudo chmod 644 /etc/apt/keyrings/collaboraonline-release-keyring.gpg
If the checksum or the key differs, the download went wrong. Fetch it again with this exact command, all on one line:
sudo wget -O /etc/apt/keyrings/collaboraonline-release-keyring.gpg https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
Then run sudo apt update again.
Success! It was the permissions on the keyring file Darshan - it was set as 0640 (you probably had a suspicion about that) - perhaps the chmod could be embedded in the sudo wget -O /etc/apt/keyrings/collaboraonline-release-keyring.gpg
https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg string? I didn’t have any manual input when it was created.
Thanks very much - I now feel I should have noticed that the other keyring file in the dir (the mariadb one) was 644 - live and learn!
So - now I have 17 packages to update according to webmin - am I still good to decline the coolwsd overwrite so as to avoid having to redo the mods that I would now have to delve into my archives to remind myself of (something to do with certbot cetificate location and something to do with https security? Maybe??
) - thanks so much, great stuff.