# Unable to finish install on Rocky Linux 9

**URL:** <https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682>\
**Category:** Pritunl VPN\
**Created:** [January 12, 2024, 12:58am UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682 "2024-01-12T00:58:24Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljanzen](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/l/e0b2c6/32.png) [@ljanzen](https://forum.pritunl.com/u/ljanzen)\
**Post date:** [January 12, 2024, 12:58am UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/1 "2024-01-12T00:58:24Z")

</div>

I’m testing out a new install of Pritunl using Rocky Linux 9, but can’t finish the install as packages are missing from the repos. I’ve check stable & unstable but the packages just aren’t available. Is the build system failing or is Rocky Linux 9 unsupported at this time?  
[https://repo.pritunl.com/stable/yum/oraclelinux/9/](https://repo.pritunl.com/stable/yum/oraclelinux/9/)

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [January 12, 2024, 8:32pm UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/2 "2024-01-12T20:32:35Z")

</div>

Supporting RHEL 9 will require updating the SELinux policies which hasn’t been done. For now it is recommended to use RHEL 8 distributions.

---

<div class="post-metadata">

**Author:** ![mrnema02](https://forum.pritunl.com/user_avatar/forum.pritunl.com/mrnema02/32/668_2.png) [@mrnema02](https://forum.pritunl.com/u/mrnema02)\
**Post date:** [January 15, 2024, 12:30pm UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/3 "2024-01-15T12:30:57Z")

</div>

Do we have some RoadMap since Oracle Linux 9 and RHEL9 were released in 2022?

---

<div class="post-metadata">

**Author:** ![ljanzen](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/l/e0b2c6/32.png) [@ljanzen](https://forum.pritunl.com/u/ljanzen)\
**Post date:** [January 15, 2024, 5:14pm UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/4 "2024-01-15T17:14:31Z")

</div>

Thanks for the clarification Zach. I’ll re-deploy my VM under Rock Linux 8.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [January 16, 2024, 8:09am UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/5 "2024-01-16T08:09:26Z")

</div>

The RHEL 9 SELinux policies have been completed and RHEL 9 builds will be included in the next release.

---

<div class="post-metadata">

**Author:** ![Linda](https://forum.pritunl.com/user_avatar/forum.pritunl.com/linda/32/736_2.png) [@Linda](https://forum.pritunl.com/u/Linda)\
**Post date:** [February 5, 2024, 4:16pm UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/6 "2024-02-05T16:16:39Z")

</div>

Is the new release for RHEL9 already available? If not, is there an approximate release date? I’m thinking about whether it still makes sense to set up an “old” RHEL8 server.

I can see a release from a week ago ([here](https://repo.pritunl.com/stable/yum/oraclelinux/9/)) but failed to install on Orace Linux 9.3. I use the current Oracle Linux 9 repository, found [here](https://docs.pritunl.com/docs/repo).

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [February 5, 2024, 11:39pm UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/7 "2024-02-05T23:39:03Z")

</div>

There is an Oracle Linux 9 release in the unstable repository, I haven’t finished the SELinux policies for it. Below are the commands to install on Oracle Linux 9. There are still a lot of SELinux errors that need to be fixed and SELinux would need to be disabled to run the server.

```auto
sudo tee /etc/yum.repos.d/pritunl.repo << EOF
[pritunl]
name=Pritunl Repository
baseurl=https://repo.pritunl.com/unstable/yum/oraclelinux/9/
gpgcheck=1
enabled=1
gpgkey=https://raw.githubusercontent.com/pritunl/pgp/master/pritunl_repo_pub.asc
EOF

sudo tee /etc/yum.repos.d/mongodb-org-6.0.repo << EOF
[mongodb-org-6.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/9/mongodb-org/6.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
EOF

sudo yum -y install oracle-epel-release-el9
sudo yum-config-manager --enable ol9_developer_EPEL

sudo yum -y install pritunl mongodb-org
sudo systemctl start mongod pritunl
sudo systemctl enable mongod pritunl

```

---

<div class="post-metadata">

**Author:** ![Linda](https://forum.pritunl.com/user_avatar/forum.pritunl.com/linda/32/736_2.png) [@Linda](https://forum.pritunl.com/u/Linda)\
**Post date:** [February 8, 2024, 6:35pm UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/8 "2024-02-08T18:35:31Z")

</div>

@zach Thank you very much for the detailed instructions. We’ll start by installing a new productive server on version 8 initially, and additionally set up one on version 9 with SELinux functionality disabled for testing purposes.

I believe we’ll then attempt to port the setup from version 8 to version 9 once it’s production-ready.

---

<div class="post-metadata">

**Author:** ![daniele](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/d/dfb087/32.png) [@daniele](https://forum.pritunl.com/u/daniele)\
**Post date:** [June 18, 2024, 2:38pm UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/9 "2024-06-18T14:38:19Z")

</div>

Hi guys there is some news about Rocky 9 ? This month there is a commit on your repo about SELINUX 9.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [June 19, 2024, 6:14am UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/10 "2024-06-19T06:14:41Z")

</div>

The RHEL 9 support was added in the v1.32.3805.95 release back in February. The documentation is still recommending RHEL 8 but the RHEL 9 builds have been tested and should be working. For Rocky Linux the Oracle Linux 9 repository should be used. There are Alma Linux builds but the Alma Linux 9 builds were failing so currently Oracle Linux 9 is the only RHEL 9 build. This build should work on all RHEL 9 distributions. There were some minor changes in the SELinux policies, this was to fix a rare issue with some DNS server configurations. Those changes are only on the unstable repository but the stable repository has RHEL 9 builds. The same [**installation instructions**](https://docs.pritunl.com/docs/installation) can be used just change the repository URLs to 9 for both Pritunl and MongoDB.

---

<div class="post-metadata">

**Author:** ![Linda](https://forum.pritunl.com/user_avatar/forum.pritunl.com/linda/32/736_2.png) [@Linda](https://forum.pritunl.com/u/Linda)\
**Post date:** [July 16, 2024, 1:16pm UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/11 "2024-07-16T13:16:12Z")

</div>

I am using the latest, pristine AlmaLinux 9. I have followed the instructions exactly, but I am getting an error at this step: sudo yum -y --allowerasing install pritunl-openvpn

I have added the repository correctly. Do you have any idea where the error might be?

**CLI history:**

```auto
sudo tee /etc/yum.repos.d/mongodb-org-6.0.repo << EOF
[mongodb-org-6.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/9/mongodb-org/6.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
EOF

sudo tee /etc/yum.repos.d/pritunl.repo << EOF
[pritunl]
name=Pritunl Repository
baseurl=https://repo.pritunl.com/stable/yum/oraclelinux/9/
gpgcheck=1
enabled=1
gpgkey=https://raw.githubusercontent.com/pritunl/pgp/master/pritunl_repo_pub.asc
EOF

sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo yum -y install wireguard-tools
sudo yum -y remove iptables-services y
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
sudo yum -y --allowerasing install pritunl-openvpn
sudo yum -y install pritunl mongodb-org

```

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [July 17, 2024, 6:35pm UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/12 "2024-07-17T18:35:20Z")

</div>

The `pritunl-openvpn` package is only on the RHEL 7 and 8 repositories. The RHEL 9 repository already has a newer `openvpn` package that can be used.

---

<div class="post-metadata">

**Author:** ![matt.vugrinec](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@matt.vugrinec](https://forum.pritunl.com/u/matt.vugrinec)\
**Post date:** [March 28, 2025, 10:43am UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/13 "2025-03-28T10:43:11Z")

</div>

@zach is there in plan to configure selinux for al2023 like it’s configured for oracle 9? because atm I’m using [Index of /stable/yum/amazonlinux/2023/](https://repo.pritunl.com/stable/yum/amazonlinux/2023/) and when installing pritunl I get the following error:

```auto
 libsemanage.map_compressed_file: Unable to open /usr/share/selinux/packages/pritunl.pp
 (No such file or directory).
libsemanage.semanage_direct_install_file: Unable to read file /usr/share/selinux/packages/pritunl.pp
 (No such file or directory).
semodule: Failed on /usr/share/selinux/packages/pritunl.pp!

```

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [March 28, 2025, 10:49am UTC](https://forum.pritunl.com/t/unable-to-finish-install-on-rocky-linux-9/1682/14 "2025-03-28T10:49:21Z")

</div>

The Amazon Linux packages shouldn’t include any SELinux profiles. That’s an error from the postinst command `semodule -i /usr/share/selinux/packages/pritunl.pp /usr/share/selinux/packages/pritunl_dns.pp /usr/share/selinux/packages/pritunl_web.pp || true`, this uses a `|| true` to ignore the error but the error message will still be shown. This error message can be ignored. There isn’t any plans on adding SELinux profiles for Amazon Linux, it’s too far modified from the upstream RHEL.
