How to install .deb file on Ubuntu 22.04

To install a .deb file on Ubuntu 22.04, you have several options:

1. Using apt (Recommended)

This method automatically handles dependencies.

sudo apt install ./your-package.deb

Make sure to include ./ or the full path to the .deb file.

2. Using dpkg (Manual Installation)

If you want to install without dependency resolution:

sudo dpkg -i your-package.deb

To fix any missing dependencies afterward:

sudo apt install -f

3. Using gdebi (Optional)

If you prefer a graphical installer or an easier command-line method:

  1. Install gdebi: sudo apt install gdebi
  2. Use it to install the .deb file: sudo gdebi your-package.deb

This method checks and installs dependencies automatically.

4. Graphical Method

  1. Right-click the .deb file and select “Open With Software Install.”
  2. Click “Install” and follow the prompts.

Leave a Reply

Your email address will not be published. Required fields are marked *