# Installing 0.1.7 on ubuntu 20.04

**URL:** <https://librepcb.discourse.group/t/installing-0-1-7-on-ubuntu-20-04/500>\
**Category:** Help\
**Created:** [November 5, 2022, 8:03pm UTC](https://librepcb.discourse.group/t/installing-0-1-7-on-ubuntu-20-04/500 "2022-11-05T20:03:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ouabache](https://avatars.discourse-cdn.com/v4/letter/o/a4c791/32.png) [@ouabache](https://librepcb.discourse.group/u/ouabache)\
**Post date:** [November 5, 2022, 8:03pm UTC](https://librepcb.discourse.group/t/installing-0-1-7-on-ubuntu-20-04/500/1 "2022-11-05T20:03:19Z")

</div>

This fails with message

Warning: The databases in [/usr/local/share/applications] could not be updated.

I believe you want /usr/share instead

---

<div class="post-metadata">

**Author:** ![dbrgn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/dbrgn/32/25_2.png) [@dbrgn](https://librepcb.discourse.group/u/dbrgn)\
**Post date:** [November 10, 2022, 10:45am UTC](https://librepcb.discourse.group/t/installing-0-1-7-on-ubuntu-20-04/500/2 "2022-11-10T10:45:39Z")

</div>

@ouabache how did you install LibrePCB?

---

<div class="post-metadata">

**Author:** ![ouabache](https://avatars.discourse-cdn.com/v4/letter/o/a4c791/32.png) [@ouabache](https://librepcb.discourse.group/u/ouabache)\
**Post date:** [November 10, 2022, 5:45pm UTC](https://librepcb.discourse.group/t/installing-0-1-7-on-ubuntu-20-04/500/3 "2022-11-10T17:45:30Z")

</div>

I downloaded the installer from the website and got the error.

I also then installed it using snap and it works

---

<div class="post-metadata">

**Author:** ![dbrgn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/dbrgn/32/25_2.png) [@dbrgn](https://librepcb.discourse.group/u/dbrgn)\
**Post date:** [November 12, 2022, 3:59pm UTC](https://librepcb.discourse.group/t/installing-0-1-7-on-ubuntu-20-04/500/4 "2022-11-12T15:59:50Z")

</div>

Then maybe the installer has an issue, @ubruhin?

I wonder whether we should even have an installer on Linux. It’s not idiomatic, and I think providing Flatpak and Snap packages along with the AppImage should be enough.

---

<div class="post-metadata">

**Author:** ![ouabache](https://avatars.discourse-cdn.com/v4/letter/o/a4c791/32.png) [@ouabache](https://librepcb.discourse.group/u/ouabache)\
**Post date:** [November 12, 2022, 5:06pm UTC](https://librepcb.discourse.group/t/installing-0-1-7-on-ubuntu-20-04/500/5 "2022-11-12T17:06:06Z")

</div>

snap worked fine for ubuntu. Do all distros include it or do we need to have an installer for those?

---

<div class="post-metadata">

**Author:** ![dbrgn](https://yyz2.discourse-cdn.com/free1/user_avatar/librepcb.discourse.group/dbrgn/32/25_2.png) [@dbrgn](https://librepcb.discourse.group/u/dbrgn)\
**Post date:** [November 13, 2022, 11:04am UTC](https://librepcb.discourse.group/t/installing-0-1-7-on-ubuntu-20-04/500/6 "2022-11-13T11:04:01Z")

</div>

Snap is only used by Ubuntu and derivatives. However, [Flatpak](https://flatpak.org/) should be available across virtually all Linux distros. In my opinion it’s the best application distribution format right after distro-specific packages.

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [November 14, 2022, 2:23pm UTC](https://librepcb.discourse.group/t/installing-0-1-7-on-ubuntu-20-04/500/7 "2022-11-14T14:23:23Z")

</div>

> [@ouabache](#):
>
> Warning: The databases in [/usr/local/share/applications] could not be updated.
> 
> I believe you want /usr/share instead

No, actually I want `/usr/local/share` because this is the place where the installer copies the mime files to. But I don’t know why the update command could fail… I usually install LibrePCB as non-root into my home folder and this always worked fine, so maybe the issue only occurs when running the installer as root.

Anyway, as mentioned by @dbrgn my long-term goal is indeed to get rid of the installer for Linux since installers are not usual on Linux. However, currently the installer is the only way to register `*.lpp` files with LibrePCB and in contrast to the AppImage it allows to get updates without manually downloading it again. But as soon as these two issues are solved, I think the installer has no advantages compared to the AppImage anymore:

- [Register \*.lpp files from within the application · Issue #1058 · LibrePCB/LibrePCB · GitHub](https://github.com/LibrePCB/LibrePCB/issues/1058)
- [Do app updates from within the app · Issue #648 · LibrePCB/LibrePCB · GitHub](https://github.com/LibrePCB/LibrePCB/issues/648)

Therefore I think it’s not worth to further investigate installer problems - since there are plenty of other (working) installation methods, just use another one for now 😉
