{"id":48640,"date":"2025-04-11T13:18:19","date_gmt":"2025-04-11T13:18:19","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=48640"},"modified":"2025-04-11T13:18:19","modified_gmt":"2025-04-11T13:18:19","slug":"3rd-party-app-install-ubuntu-pro","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2025\/04\/3rd-party-app-install-ubuntu-pro\/","title":{"rendered":"3rd Party Apps Might Refuse to install due to Ubuntu Pro [Quick Fix]"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-43228\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/10\/ubuntu-new-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>For old Ubuntu 20.04 and Ubuntu 22.04 with Ubuntu Pro enabled for extended 5 years of Extended Security Maintenance (ESM) updates support, it might sometimes cause 3rd party apps refuse to install and even output <i>unmet dependency<\/i> issue.<\/p>\n<p><b>This is because ESM apps have higher package priority 510, while most others are default to 500.<\/b><br \/>\n<!--more--><\/p>\n<p>When trying to install an app package using <code>apt<\/code> command, if the <a href=\"https:\/\/esm.ubuntu.com\/\" target=\"_blank\" rel=\"noopener\">ESM app repository<\/a> includes a copy of that app package (usually old) or a package that app depends on, then it will try to install the one from ESM rather than newer version from PPA or any other 3rd party repository.<\/p>\n<p>It&#8217;s great for security! But what if you really want the ones from 3rd party repositories.<\/p>\n<p>For example, when trying to install GIMP 3.0.x or <code>libheif<\/code> library from a third-party PPA in Ubuntu 22.04 with Ubuntu Pro enabled, it may output unmet dependencies issue as the screenshot below shows you, as it tries to install the one from ESM.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-libheif1-failed.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48641\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-libheif1-failed-700x502.webp\" alt=\"\" width=\"610\" height=\"437\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-libheif1-failed-700x502.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-libheif1-failed-300x215.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-libheif1-failed.webp 768w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>To workaround the issue, you have few choices:<\/p>\n<ul>\n<li>Specify package source in <code>apt<\/code> command to tell where to install the package from.<\/li>\n<li>Set higher priority for the third-party packages.<\/li>\n<\/ul>\n<h3>Option 1: Specify which source to install from in apt command<\/h3>\n<p>When installing app package via <code>apt<\/code> command, you may specify which source to install the package from.<\/p>\n<p>In the case, I was going to install GIMP 3.0.x from PPA, but it&#8217;s kept back due to <code>libheif1<\/code>. Run the command below fixed the issue:<\/p>\n<pre>sudo apt install gimp libheif1\/jammy<\/pre>\n<p>Here <code>libheif1\/jammy<\/code> tells APT to look for the <code>libheif1<\/code> package from Ubuntu &#8216;jammy&#8217; (22.04) release repositories, including standard Ubuntu repositories, PPAs, but NOT ESM.<\/p>\n<p>These repositories have same priority, so the one with higher version number will be installed. And, you may replace <code>jammy<\/code> with <code>focal<\/code> for Ubuntu 20.04, or <code>noble<\/code> for Ubuntu 24.04.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-jammy.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48642\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-jammy-700x469.webp\" alt=\"\" width=\"610\" height=\"409\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-jammy-700x469.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-jammy-300x201.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-jammy.webp 768w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>For choice, you may use <code>-t<\/code> option instead. Which set target release with priority 990, and override the general priority settings in <code>\/etc\/apt\/preferences<\/code>.<\/p>\n<p>First, run the command below in terminal:<\/p>\n<pre>apt policy<\/pre>\n<p>Then find out the &#8216;release&#8217; key or &#8216;origin&#8217; for the target PPA or software source. For PPA, usually find out and copy the &#8220;<code>o=LP-PPA-xxx-xxx<\/code>&#8221; part. In my case, it&#8217;s <code>o=LP-PPA-ubuntuhandbook1-gimp-3<\/code>.<\/p>\n<p>Finally, install the package with example command below:<\/p>\n<pre>sudo apt install gimp libheif1 -t \"o=LP-PPA-ubuntuhandbook1-gimp-3\"<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-gimp-source.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48643\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-gimp-source-700x404.webp\" alt=\"\" width=\"610\" height=\"352\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-gimp-source-700x404.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-gimp-source-300x173.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-gimp-source-768x444.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/apt-gimp-source.webp 1073w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>Option 2: Set higher priority for your PPA or package source<\/h3>\n<p>Without running the command with <code>-t<\/code> option every time, and if you want to receive updates using &#8220;Software Updater&#8221;, you may set a higher priority from the package source.<\/p>\n<p><b>1.<\/b> First, also run the command below to find out the release key for your PPA or package source:<\/p>\n<pre>apt policy<\/pre>\n<p><b>2.<\/b> Then, run command to create a custom configuration file under <code>\/etc\/apt\/preferences.d<\/code> directory and edit it.<\/p>\n<pre>sudo nano \/etc\/apt\/preferences.d\/myppa<\/pre>\n<p>When file opens, paste the 3 lines below<\/p>\n<pre>Package: *\r\nPin: release o=LP-PPA-ubuntuhandbook1-gimp-3\r\nPin-Priority: 520<\/pre>\n<p>Here replace <code>release o=LP-PPA-ubuntuhandbook1-gimp-3<\/code> accordingly, then press Ctrl+S to save and Ctrl+X to exit.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/custom-ppa-prefs.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48644\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/custom-ppa-prefs-700x528.webp\" alt=\"\" width=\"610\" height=\"460\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/custom-ppa-prefs-700x528.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/custom-ppa-prefs-300x226.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/04\/custom-ppa-prefs.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>3.<\/b> When done, run <code>sudo apt update<\/code> to refresh package and finally install the target package as usual.<\/p>","protected":false},"excerpt":{"rendered":"<p>For old Ubuntu 20.04 and Ubuntu 22.04 with Ubuntu Pro enabled for extended 5 years of Extended Security Maintenance (ESM) updates support, it might sometimes cause 3rd party apps refuse to install and even output unmet dependency issue. This is because ESM apps have higher package priority 510, while most others are default to 500.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-48640","post","type-post","status-publish","format-standard","hentry","category-howtos"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/48640","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=48640"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/48640\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=48640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=48640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=48640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}