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:
- Install
gdebi
:sudo apt install gdebi
- Use it to install the
.deb
file:sudo gdebi your-package.deb
This method checks and installs dependencies automatically.
4. Graphical Method
- Right-click the
.deb
file and select “Open With Software Install.” - Click “Install” and follow the prompts.