# Cannot add Graylog package

**URL:** https://community.graylog.org/t/cannot-add-graylog-package/26238
**Category:** Graylog Central (peer support)
**Created:** [October 20, 2022, 9:13pm UTC](https://community.graylog.org/t/cannot-add-graylog-package/26238 "2022-10-20T21:13:20Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![tonylo](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@tonylo](https://community.graylog.org/u/tonylo)
#### Post date: [October 20, 2022, 9:13pm UTC](https://community.graylog.org/t/cannot-add-graylog-package/26238/1 "2022-10-20T21:13:21Z")

</div>

**1. Describe your incident:**  
Cannot run command “sudo dpkg -i graylog-4.3repository\_latest.deb”

**2. Describe your environment:**

- OS Information: Ubuntu 20.04

- Package Version:

- Service logs, configurations, and environment variables:

No Logs yet, still trying to get it installed.

Error:

```auto
dpkg-deb: error: 'graylog-4.3-repository_latest.deb' is not a debian format archive

```

**3. What steps have you already taken to try and solve the problem?**

Researched error. verified I can download the deb file from site.

**4. How can the community help?**  
I think Graylog need to update the repository

---

<div class="post-metadata">

### Author: ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)
#### Post date: [October 20, 2022, 9:22pm UTC](https://community.graylog.org/t/cannot-add-graylog-package/26238/2 "2022-10-20T21:22:31Z")

</div>

Hello && Welcome

> [@tonylo](#):
>
> sudo dpkg -i graylog-4.3repository\_latest.deb

That command is incorrect. It needs to be like this.

```auto
sudo dpkg -i graylog-4.3-repository_latest.deb

```

---

<div class="post-metadata">

### Author: ![tonylo](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@tonylo](https://community.graylog.org/u/tonylo)
#### Post date: [October 20, 2022, 9:34pm UTC](https://community.graylog.org/t/cannot-add-graylog-package/26238/3 "2022-10-20T21:34:23Z")

</div>

Sorry That was my typo.

I do have

```auto
sudo dpkg -i graylog-4.3-repository_latest.deb

```

---

<div class="post-metadata">

### Author: ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)
#### Post date: [October 20, 2022, 11:21pm UTC](https://community.graylog.org/t/cannot-add-graylog-package/26238/4 "2022-10-20T23:21:16Z")

</div>

hey,  
I just tested the documentation [here](https://docs.graylog.org/v1/docs/debian) out to ensure it was working. Using Ubuntu 20.0.4

I executed both of these.

```auto
root # wget https://packages.graylog2.org/repo/packages/graylog-4.3-repository_latest.deb
root # sudo dpkg -i graylog-4.3-repository_latest.deb

```

results:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/0/03ec21edc1be9f54ad515f3971bcf8b82b73157f.png)

I would double check your commands, perhaps some log files may help.

---

<div class="post-metadata">

### Author: ![tonylo](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@tonylo](https://community.graylog.org/u/tonylo)
#### Post date: [October 20, 2022, 11:46pm UTC](https://community.graylog.org/t/cannot-add-graylog-package/26238/5 "2022-10-20T23:46:42Z")

</div>

Where is the log during the install.

Otherwise ill grab screenshots wheni get home and follow up tomorrow

---

<div class="post-metadata">

### Author: ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)
#### Post date: [October 20, 2022, 11:53pm UTC](https://community.graylog.org/t/cannot-add-graylog-package/26238/6 "2022-10-20T23:53:50Z")

</div>

hey,

Linux I would look in `/var/log` directory. Probably in _dpkg_ file.

As for this error…

```auto
error: 'graylog-4.3-repository_latest.deb' is not a debian format archive

```

I would clean my repo up and try to download it again.

EDIT: did some googling and 90% of the error “ **is not a debian format archive** ” either has to do with the network and the package got corrupt OR the **naming convention** of the package.  
Like I menetion above try clean your repo and re-download the package again OR rename the package without using `"-"`  
Example:

```auto
root # cp graylog-4.3-repository_latest.deb graylog_4.3_repository_latest.deb

```

As for Graylog repo I don’t see anything wrong.

---

<div class="post-metadata">

### Author: ![tonylo](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@tonylo](https://community.graylog.org/u/tonylo)
#### Post date: [October 21, 2022, 1:30pm UTC](https://community.graylog.org/t/cannot-add-graylog-package/26238/7 "2022-10-21T13:30:03Z")

</div>

well I don’t see what is different today, but it all appears to be working. Thank you for the assistance!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)
#### Post date: [November 4, 2022, 1:30pm UTC](https://community.graylog.org/t/cannot-add-graylog-package/26238/8 "2022-11-04T13:30:15Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
