# \[Fresh Install\] Unable to add plex libraries

**URL:** <https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417>\
**Category:** General Discussions\
**Tags:** server-linux\
**Created:** [August 14, 2023, 11:39am UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417 "2023-08-14T11:39:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![hotheadhacker](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hotheadhacker/32/305679_2.png) [@hotheadhacker](https://forums.plex.tv/u/hotheadhacker)\
**Post date:** [August 14, 2023, 11:39am UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/1 "2023-08-14T11:39:04Z")

</div>

I itried to install plex media server on my new ubuntu machine, but whenever i am trying to add a local library it still shows me 0 library,

 ![image](https://global.discourse-cdn.com/plex/original/4X/7/2/c/72cd808433df03c9af87c0b7cae33ed776618e6b.png)

but only library label gets mentioned on menu bar with no content  
 ![image](https://global.discourse-cdn.com/plex/original/4X/4/f/a/4fab3a989ce9bb4cb1127ebb7935b92e58d373b6.png)

I tried both ways, by providing directly the path of specific library folder, and by just browsing from “Add Library Browse Folder” (I am unable to locate the folder (Thats on /Desktop))

What could be the reason?  
Thanks

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [August 14, 2023, 1:02pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/2 "2023-08-14T13:02:22Z")

</div>

Sounds like a permission issue. Keep in mind the Plex Media Server is running as a separate system user (`plex`), not your personal Linux account!

---

<div class="post-metadata">

**Author:** ![hotheadhacker](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hotheadhacker/32/305679_2.png) [@hotheadhacker](https://forums.plex.tv/u/hotheadhacker)\
**Post date:** [August 14, 2023, 1:16pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/3 "2023-08-14T13:16:25Z")

</div>

Thanks for the reply, I tried changing permissions by `chmod 777` but I am having the same issue. More help will be appreciated.

---

<div class="post-metadata">

**Author:** ![Annoyed](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@Annoyed](https://forums.plex.tv/u/Annoyed)\
**Post date:** [August 14, 2023, 1:28pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/4 "2023-08-14T13:28:31Z")

</div>

Try changing the owner of the plex directory to the user “plex”. (Assuming that you haven’t changed the default user).

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 14, 2023, 1:46pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/5 "2023-08-14T13:46:21Z")

</div>

@hotheadhacker

Did you install from the Ubuntu app (snap) store or using DPKG ?

---

<div class="post-metadata">

**Author:** ![hotheadhacker](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hotheadhacker/32/305679_2.png) [@hotheadhacker](https://forums.plex.tv/u/hotheadhacker)\
**Post date:** [August 14, 2023, 1:51pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/6 "2023-08-14T13:51:08Z")

</div>

I installed via `dpkg`

---

<div class="post-metadata">

**Author:** ![hotheadhacker](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hotheadhacker/32/305679_2.png) [@hotheadhacker](https://forums.plex.tv/u/hotheadhacker)\
**Post date:** [August 14, 2023, 1:51pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/7 "2023-08-14T13:51:43Z")

</div>

Thanks will try it!

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 14, 2023, 2:10pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/8 "2023-08-14T14:10:51Z")

</div>

@hotheadhacker

If you installed using DPKG,

1. /var/lib/plexmediaserver (where your metadata is), is already owned by user plex.

2. The issue you’re having with `/Desktop` (I presume the `Desktop` in your GUI) is  
– the real path is `/home/<your_username>/Desktop`  
– Linux default security will not allow another user (`plex`) into your home directory unless expressly granted.

3. Recommended action:  
– Do not put media in your `/home` directory  
– Instead, create another place for it e.g. `/home/media` (any name you like)  
– Make yourself the owner (for easy access)  
– Grant user `plex` access to that directory

```auto
sudo mkdir /home/media
sudo chown chuck.chuck /home/media
sudo chmod 755 /home/media

```

Now your regular username can put media files in here.  
You can point Plex to the directory as needed.

---

<div class="post-metadata">

**Author:** ![hotheadhacker](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hotheadhacker/32/305679_2.png) [@hotheadhacker](https://forums.plex.tv/u/hotheadhacker)\
**Post date:** [August 14, 2023, 2:23pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/9 "2023-08-14T14:23:38Z")

</div>

thanks this solved the issue.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 14, 2023, 2:55pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/10 "2023-08-14T14:55:35Z")

</div>

@hotheadhacker

For other things you may want/need to do, here are some quick How To’s.

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247):
>
> Tips & Tricks of the Linux trade. Below, you’ll find a collection of tips, tricks, and how-to’s to help make setting up, administrating, and using Plex Media Server on Linux a little easier. [Reporting problems](https://forums.plex.tv/t/linux-tips/276247/20)[Using other hard drives (Windows or Linux) with PMS](https://forums.plex.tv/t/linux-tips/276247/2)[Customizing your Plex configuration on systemd based systems](https://forums.plex.tv/t/linux-tips/276247/3)[Using other EXT4, NTFS, or other drives (internal or USB)](https://forums.plex.tv/t/linux-tips/276247/2)[Mounting CIFS + SMB network shares for Plex use](https://forums.plex.tv/t/linux-tips/276247/4)[Mounting NFS network shares for Plex use](https://forums.plex.tv/t/linux-tips/276247/5)[Moving…](https://forums.plex.tv/t/linux-tips/276247/6)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [November 12, 2023, 2:56pm UTC](https://forums.plex.tv/t/fresh-install-unable-to-add-plex-libraries/850417/11 "2023-11-12T14:56:32Z")

</div>

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