{"id":40601,"date":"2022-06-06T16:26:36","date_gmt":"2022-06-06T16:26:36","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=40601"},"modified":"2022-06-06T16:26:36","modified_gmt":"2022-06-06T16:26:36","slug":"install-coturn-ubuntu-2204-ppa","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/06\/install-coturn-ubuntu-2204-ppa\/","title":{"rendered":"How to install Coturn (TURN \/ STUN Server) in Ubuntu 22.04 via PPA"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ssh-putty-icon.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ssh-putty-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-thumbnail wp-image-38590\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ssh-putty-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ssh-putty-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ssh-putty-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ssh-putty-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/ssh-putty-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Ubuntu 22.04 misses coturn TURN and STUN server package in its system repository. Here&#8217;s how to install it via PPA.<\/p>\n<p>Coturn is a free open source implementation of TURN and STUN Server, which can be used as either a VoIP media traffic NAT traversal server and gateway, or general-purpose network traffic TURN server and gateway.<\/p>\n<p>The software package is available in all current Ubuntu releases, exclude Ubuntu 22.04! The reason that the new LTS exclude the package might be a <a href=\"https:\/\/github.com\/coturn\/coturn\/issues\/886\" rel=\"noopener\" target=\"_blank\">compile issue<\/a> due to OpenSSL 3.0 does no longer has FIPS 140 mode.<\/p>\n<p>When you try installing the package in terminal, it will output that &#8220;<b>E: Package &#8216;coturn&#8217; has no installation candidate<\/b>&#8220;.<\/p>\n<div id=\"attachment_40604\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-40604\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-noavailable-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" class=\"size-large wp-image-40604\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-noavailable-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-noavailable-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-noavailable-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-noavailable.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><p id=\"caption-attachment-40604\" class=\"wp-caption-text\">Coturn is NOT available in Ubuntu 22.04 repository<\/p><\/div>\n<p>Ubuntu 22.10 development branch has added a patch to fix build the package against OpenSSL 3.0, and here&#8217;s an unofficial backport for Ubuntu 22.04 via <a href=\"https:\/\/launchpad.net\/~ubuntuhandbook1\/+archive\/ubuntu\/coturn\" rel=\"noopener\" target=\"_blank\"><b>PPA repository<\/b><\/a>.<\/p>\n<p><b>NOTE: I&#8217;m NOT sure if it&#8217;s the real reason that Ubuntu 22.04 exclude the package in its repository. Use the PPA package in your own risk!<\/b><\/p>\n<h4>1. Add the PPA<\/h4>\n<p>The PPA provides the coturn packages for <b>amd64<\/b>, <b>arm64\/armhf<\/b>, <b>ppc64el<\/b>, and <b>s390x<\/b> CPU architectures for Ubuntu 22.04 and its based systems.<\/p>\n<p>To get started, press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal. When it opens, run the command below to add the PPA:<\/p>\n<pre>sudo add-apt-repository ppa:ubuntuhandbook1\/coturn<\/pre>\n<p><i>Type user password for sudo authentication and hit Enter to continue.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-jammy-ppa-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" class=\"aligncenter size-large wp-image-40605\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-jammy-ppa-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-jammy-ppa-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-jammy-ppa-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/coturn-jammy-ppa.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h4>2. Update cache<\/h4>\n<p>It should automatically refresh system package cache while adding PPA. If not, run the command below to do it manually:<\/p>\n<pre>sudo apt update<\/pre>\n<h4>3. Install Coturn<\/h4>\n<p>Finally, install the software package by running command in terminal:<\/p>\n<pre>sudo apt install coturn<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/apt-coturn-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" class=\"aligncenter size-large wp-image-40607\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/apt-coturn-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/apt-coturn-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/apt-coturn-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/06\/apt-coturn.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3>How to Uninstall Coturn<\/h3>\n<p>For any issue about the TURN server packages, run the command below to remove it from your system:<\/p>\n<pre>sudo apt remove --autoremove coturn<\/pre>\n<p>And, remove the Ubuntu PPA using command:<\/p>\n<pre>sudo add-apt-repository --remove ppa:ubuntuhandbook1\/coturn<\/pre>","protected":false},"excerpt":{"rendered":"<p>Ubuntu 22.04 misses coturn TURN and STUN server package in its system repository. Here&#8217;s how to install it via PPA. Coturn is a free open source implementation of TURN and STUN Server, which can be used as either a VoIP media traffic NAT traversal server and gateway, or general-purpose network traffic TURN server and gateway. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38590,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2065],"class_list":["post-40601","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-voip"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/40601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=40601"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/40601\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/38590"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=40601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=40601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=40601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}