How to Install Local .deb file in Ubuntu 23.10

Last updated: October 17, 2023 — 3 Comments

In Ubuntu 23.10, there’s no longer “Software Install” option for opening/installing .deb files in your Downloads folder. This is probably due to switch to the new ‘App Center’, that some features are not fully implemented.

When you double-clicking a .deb file from Downloads folder, it will pop-up a dialog saying “Could Not Display ‘file_name.deb’ There’s no app installed for ‘Debian package’ files“. And, neither option will work for installing the package.

So, if you’re trying to install an application using local .deb format package, here are 2 workarounds for you.

Option 1: use Gdebi package installer

Gdebi is a simple tool to view and install local .deb file. It’s a popular application that’s using as default in Linux Mint.

1. First, press Super (Windows logo) key to open overview screen. Search for and launch “App Center”.

2. When ‘App Center’ opens, use it to search and install Gdebi. You may need to select “Filter by Debian packages” to make it visible.

3. Once you installed the tool, right-click on your local .deb file, and click on “Open With…” option.

In next pop-up dialog, find out and select “Gdebi Package Installer” and turn on “Always use for this file type“, finally click Open.

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  click “Install Package” to install it into your system.

Option 2: Use apt command

For those who are familiar with Linux command, your local .deb file is easy to install via a single command.

It’s:

sudo apt install /path/to/file.deb

Definitely, you need to replace ‘/path/to/file.deb‘ to yours.

Instead of typing manually, simply open terminal (via either Ctrl+Alt+T shortcut or ‘Open in Terminal’ context menu), then drag and drop .deb file into terminal after typing sudo apt install plus a blank space.

Finally, hit Enter to run the command, type user password (no asterisk feedback) to authentication, and answer y if it asks to confirm.

When installation done, it will output something like ‘N: Download is performed unsandboxed as root as file ‘/path/to/file.deb’ couldn’t be accessed by user ‘_apt’. – pkgAcquire::Run (13: Permission denied)’. Just skip the non-fatal warning. Your app should be properly installed when you see the terminal output message.

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

3 responses to How to Install Local .deb file in Ubuntu 23.10

  1. Deb files are easy to install with gdebi, but if you don’t have the correct .deb file an the dependencies cannot be met, you will never get gdebi to install the program. That means a lot depends on which .deb OS you run. Out of date programs just won’t work. Same with mixing same with old stable, stable, testing and unstable. So if I need a .deb program installed I head to debian package search to get the right package.

    • Some popular apps, e.g., Google Chrome, still provide Linux package through .deb/.rpm. Local package installer is useful in the case.

      Dependency issue is really painful, so Flatpak, Snap, and AppImage are getting popular.😄

  2. Although James’ comment is true for individual packages not intended to be full application deployments (individual libraries, command-line tools, etc), some packages such as Google Chrome as mentioned by Ji, actually install their own PPA/upstream package sources as part of the .deb file installation.

    So it’s an all-in-one package that registers all of its dependencies at the same time.

    The idea being that, in the case of Google (which won’t be added to the base libraries of Ubuntu or Debian due to its non-open nature), the installation of the browser is click-to-install from the web, like it would be for Windows users.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*