# Installing ONLYOFFICE Docs for Debian getting error on Ubuntu 24.04

**URL:** https://community.onlyoffice.com/t/installing-onlyoffice-docs-for-debian-getting-error-on-ubuntu-24-04/15086
**Category:** Docs
**Tags:** linux, bug
**Created:** [26 June 2025 20:36 UTC](https://community.onlyoffice.com/t/installing-onlyoffice-docs-for-debian-getting-error-on-ubuntu-24-04/15086 "2025-06-26T20:36:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![srpsadid](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@srpsadid](https://community.onlyoffice.com/u/srpsadid)
#### Post date: [26 June 2025 20:36 UTC](https://community.onlyoffice.com/t/installing-onlyoffice-docs-for-debian-getting-error-on-ubuntu-24-04/15086/1 "2025-06-26T20:36:50Z")

</div>

Setting up GPG key for OnlyOffice…  
gpg: keyring ‘/tmp/onlyoffice.gpg’ created  
gpg: /root/.gnupg/trustdb.gpg: trustdb created  
gpg: key 8320CA65CB2DE8E5: public key “Ascensio System Limited (ONLYOFFICE) [support@onlyoffice.com](mailto:support@onlyoffice.com)” imported  
gpg: Total number processed: 1  
gpg: imported: 1  
Adding OnlyOffice repository…  
deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] [https://download.onlyoffice.com/repo/debian](https://download.onlyoffice.com/repo/debian) squeeze main  
Updating package lists…  
Hit:1 [Index of /ubuntu](http://archive.ubuntu.com/ubuntu) noble InRelease  
Hit:2 [Index of /ubuntu](http://security.ubuntu.com/ubuntu) noble-security InRelease  
Hit:3 [Index of /ubuntu](http://archive.ubuntu.com/ubuntu) noble-updates InRelease  
Hit:4 [Index of /ubuntu](http://archive.ubuntu.com/ubuntu) noble-backports InRelease  
Ign:5 [https://download.onlyoffice.com/repo/debian](https://download.onlyoffice.com/repo/debian) squeeze InRelease  
Get:6 [https://download.onlyoffice.com/repo/debian](https://download.onlyoffice.com/repo/debian) squeeze Release [9,865 B]  
Ign:7 [https://download.onlyoffice.com/repo/debian](https://download.onlyoffice.com/repo/debian) squeeze Release.gpg  
Reading package lists… Done  
E: The repository ‘[https://download.onlyoffice.com/repo/debian](https://download.onlyoffice.com/repo/debian) squeeze Release’ 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.

---

<div class="post-metadata">

### Author: ![anon801025](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@anon801025](https://community.onlyoffice.com/u/anon801025)
#### Post date: [27 June 2025 04:56 UTC](https://community.onlyoffice.com/t/installing-onlyoffice-docs-for-debian-getting-error-on-ubuntu-24-04/15086/2 "2025-06-27T04:56:30Z")

</div>

Hello there,  
the issue is clearly described in the output. All you have to do is look it up.

> [@srpsadid](#):
>
> E: The repository ‘[https://download.onlyoffice.com/repo/debian](https://download.onlyoffice.com/repo/debian) squeeze Release’ 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.

You have added the repository, but you did not import the signing key.  
Just follow the [official instructions](https://helpcenter.onlyoffice.com/docs/installation/docs-community-install-ubuntu.aspx).

---

<div class="post-metadata">

### Author: ![srpsadid](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/s/b9e5f3/32.png) [@srpsadid](https://community.onlyoffice.com/u/srpsadid)
#### Post date: [27 June 2025 06:11 UTC](https://community.onlyoffice.com/t/installing-onlyoffice-docs-for-debian-getting-error-on-ubuntu-24-04/15086/3 "2025-06-27T06:11:02Z")

</div>

Hi did already but same it happen in latest version it was working on version 9 …

mkdir -p -m 700 ~/.gnupg  
curl -fsSL [https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE](https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE) | gpg --no-default-keyring --keyring gnupg-ring:/tmp/onlyoffice.gpg --import  
chmod 644 /tmp/onlyoffice.gpg  
sudo chown root:root /tmp/onlyoffice.gpg  
sudo mv /tmp/onlyoffice.gpg /usr/share/keyrings/onlyoffice.gpg

---

<div class="post-metadata">

### Author: ![anon801025](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@anon801025](https://community.onlyoffice.com/u/anon801025)
#### Post date: [27 June 2025 06:51 UTC](https://community.onlyoffice.com/t/installing-onlyoffice-docs-for-debian-getting-error-on-ubuntu-24-04/15086/4 "2025-06-27T06:51:58Z")

</div>

Hello there,  
apparently onlyoffice did not sign their own keys? To circumvent this you can edit the source file and add `[trusted=yes]`. It should look like this (file under `/etc/apt/sources.list.d/onlyoffice.list`):

```auto
deb [trusted=yes signed-by=/usr/share/keyrings/onlyoffice.gpg] https://download.onlyoffice.com/repo/debian squeeze main

```
