{"id":44545,"date":"2023-10-17T14:05:16","date_gmt":"2023-10-17T14:05:16","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=44545"},"modified":"2024-09-01T12:41:37","modified_gmt":"2024-09-01T12:41:37","slug":"local-deb-file-ubuntu-23-10","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/10\/local-deb-file-ubuntu-23-10\/","title":{"rendered":"How to Install Local .deb file in Ubuntu 24.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/deb-get-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-40271\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/deb-get-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/deb-get-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/deb-get-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/deb-get-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/deb-get-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/deb-get-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Since Ubuntu 23.10, there&#8217;s no longer &#8220;<i>Software Install<\/i>&#8221; option for opening\/installing <code>.deb<\/code> files in your Downloads folder. This is probably due to switch to the new &#8216;App Center&#8217;, that some features are not fully implemented.<\/p>\n<p>When you double-clicking a .deb file from Downloads folder, it will pop-up a dialog saying &#8220;<strong><i>Could Not Display &#8216;file_name.deb&#8217; There&#8217;s no app installed for &#8216;Debian package&#8217; files<\/i><\/strong>&#8220;. And, neither option will work for installing the package.<\/p>\n<p><b>UPDATE: App Center in Ubuntu 24.04 finally added back the feature to install local .deb! Just double-click on the package in file manager to launch and install.<\/b><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/noble-cannot-openlocaldeb.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46392\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/noble-cannot-openlocaldeb-700x438.webp\" alt=\"\" width=\"610\" height=\"382\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/noble-cannot-openlocaldeb-700x438.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/noble-cannot-openlocaldeb-300x188.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/noble-cannot-openlocaldeb-768x481.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/04\/noble-cannot-openlocaldeb.webp 1277w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>So, if you&#8217;re trying to install an application using local <code>.deb<\/code> format package, here are 3 workarounds for you.<\/p>\n<h3>Option 1: use Gdebi package installer<\/h3>\n<p>Gdebi is a simple tool to view and install local .deb file. It&#8217;s a popular application that&#8217;s using as default in Linux Mint.<\/p>\n<p>1. First, press <b>Super<\/b> (Windows logo) key to open overview screen. Search for and launch &#8220;App Center&#8221;.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/launch-appcenter.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-44546\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/launch-appcenter.webp\" alt=\"\" width=\"591\" height=\"319\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/launch-appcenter.webp 591w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/launch-appcenter-300x162.webp 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a><\/p>\n<p>2. When &#8216;App Center&#8217; opens, use it to search and install <code>Gdebi<\/code>. You may need to select &#8220;Filter by Debian packages&#8221; to make it visible.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-gdebi.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44547\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-gdebi-600x430.webp\" alt=\"\" width=\"600\" height=\"430\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-gdebi-600x430.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-gdebi-300x215.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-gdebi-768x551.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-gdebi.webp 972w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. Once you installed the tool, right-click on your local <code>.deb<\/code> file, and click on &#8220;Open With&#8230;&#8221; option.<\/p>\n<p>In next pop-up dialog, find out and select &#8220;<i>Gdebi Package Installer<\/i>&#8221; and turn on &#8220;<i>Always use for this file type<\/i>&#8220;, finally click Open.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/set-gdebi-default.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44548\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/set-gdebi-default-600x362.webp\" alt=\"\" width=\"600\" height=\"362\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/set-gdebi-default-600x362.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/set-gdebi-default-300x181.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/set-gdebi-default-768x463.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/set-gdebi-default.webp 1215w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>4. After that, you can double-click any .deb file to open with the Gdebi package installer. When the tool opens, you may view the package info and\u00a0 click &#8220;Install Package&#8221; to install it into your system.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-gdebi.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44549\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-gdebi-600x356.webp\" alt=\"\" width=\"600\" height=\"356\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-gdebi-600x356.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-gdebi-300x178.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-gdebi-768x455.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-gdebi.webp 1032w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Option 2: Use apt command<\/h3>\n<p>For those who are familiar with Linux command, your local <code>.deb<\/code> file is easy to install via a single command.<\/p>\n<p>It&#8217;s:<\/p>\n<pre>sudo apt install \/path\/to\/file.deb<\/pre>\n<p>Definitely, you need to replace &#8216;<b>\/path\/to\/file.deb<\/b>&#8216; to yours.<\/p>\n<p>Instead of typing manually, simply open terminal (via either Ctrl+Alt+T shortcut or &#8216;Open in Terminal&#8217; context menu), then drag and drop <code>.deb<\/code> file into terminal after typing <code>sudo apt install<\/code> plus a blank space.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-apt.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44550\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-apt-600x281.webp\" alt=\"\" width=\"600\" height=\"281\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-apt-600x281.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-apt-300x141.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-apt-768x360.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-apt-1320x619.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/10\/install-deb-apt.webp 1431w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Finally, hit Enter to run the command, type user password (no asterisk feedback) to authentication, and answer y if it asks to confirm.<\/p>\n<p>When installation done, it will output something like &#8216;<i>N: Download is performed unsandboxed as root as file &#8216;\/path\/to\/file.deb&#8217; couldn&#8217;t be accessed by user &#8216;_apt&#8217;. &#8211; pkgAcquire::Run (13: Permission denied)&#8217;<\/i>. Just skip the non-fatal warning. Your app should be properly installed when you see the terminal output message.<\/p>\n<h3>Option 3: Use GNOME Software<\/h3>\n<p>If you want to restore the new App Center to classic Ubuntu Software, then GNOME Software can be a better choice.<\/p>\n<p>GNOME Software supports Deb, Flatpak, and Snap packages. However, it will be always run in background that takes about 200 MB memory in my case.<\/p>\n<p>If you don&#8217;t care about the memory consumption, then press <b>Ctrl+Alt+T<\/b> to open terminal, and run command to install GNOME Software:<\/p>\n<pre>sudo apt install --install-suggests gnome-software<\/pre>\n<p><i>Skip <code>--install-suggests<\/code> if you don&#8217;t want to enable Flatpak support.<\/i><br \/>\n<a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-gnomesoftware-noble.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45988\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-gnomesoftware-noble-700x455.webp\" alt=\"\" width=\"610\" height=\"397\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-gnomesoftware-noble-700x455.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-gnomesoftware-noble-300x195.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-gnomesoftware-noble-768x499.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-gnomesoftware-noble.webp 866w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>After that, you can right-click on local <code>.deb<\/code> file, and select &#8220;Software Install&#8221; from Open With dialog to launch GNOME Software to install it.<\/p>\n<h3>Uninstall:<\/h3>\n<p>If you don&#8217;t use Gdebi or Gnome Software anymore, open terminal (Ctrl+Alt+T) and run command to uninstall:<\/p>\n<p>Uninstall Gdebi:<\/p>\n<pre>sudo apt remove --autoremove gdebi<\/pre>\n<p>Or, uninstall Gnome Software via command:<\/p>\n<pre>sudo apt remove --autoremove gnome-software<\/pre>","protected":false},"excerpt":{"rendered":"<p>Since Ubuntu 23.10, there&#8217;s no longer &#8220;Software Install&#8221; option for opening\/installing .deb files in your Downloads folder. This is probably due to switch to the new &#8216;App Center&#8217;, that some features are not fully implemented. When you double-clicking a .deb file from Downloads folder, it will pop-up a dialog saying &#8220;Could Not Display &#8216;file_name.deb&#8217; There&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":40271,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[2029],"class_list":["post-44545","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-deb"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44545","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=44545"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44545\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/40271"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=44545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=44545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=44545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}