How to Install a .deb File on Ubuntu
Installing a .deb file is an easy way to install an application on Ubuntu and other Debian-based Linux distributions. A .deb file contains all the necessary files and dependencies for an application in one installer file.
Here is a step-by-step guide to installing a .deb file on Ubuntu:
Prerequisites
Before installing a .deb file, ensure you have:
The .deb installation file for the application you want to install. This normally can be downloaded from the software publisher's website.
Administrator access on your Ubuntu system to install the software.
Install .deb File via Terminal
The easiest way to install a .deb file is by using the dpkg
command in the terminal.
Open the terminal application in Ubuntu (Ctrl+Alt+T).
Navigate to the directory containing your .deb file using the
cd
command. For example, if your .deb file is in the Downloads folder:cd Downloads
Install the .deb package using:
sudo dpkg -i package_name.deb
Replace
package_name
with the name of your .deb file.Follow any on-screen prompts to complete the installation.
The application is now installed on your Ubuntu system.
Install via Software Center
The Ubuntu Software Center provides a graphical interface to install .deb files.
Right-click on the .deb file and select "Open with Ubuntu Software".
The software center will open the install page for that application.
Click the "Install" button to install the package on your system.
Enter your administrator password when prompted.
Click "Install" in the confirmation dialog.
The Software Center will handle downloading dependencies and configuring your system to install the application.
Troubleshooting
If you get dependency errors while installing a .deb file, you likely need to install additional required libraries or packages.
To identify and install missing dependencies:
Run
sudo apt --fix-broken install
to check for any broken packages on the system. Install any fixes it prompts you to address.Search for and install the missing dependencies manually, then try installing the .deb again.
With the prerequisites and dependencies installed, the .deb package should now install successfully on your Ubuntu system.
Conclusion
Installing .deb packages is an easy way to get new applications set up on Ubuntu. By using either the command line or Software Center, .deb files provide a seamless installation experience for apps distributed in this format.
Subscribe to my newsletter
Read articles from Pratik M directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Pratik M
Pratik M
As an experienced Linux user and no-code app developer, I enjoy using the latest tools to create efficient and innovative small apps. Although coding is my hobby, I still love using AI tools and no-code platforms.