The fastest way to install a .deb file
Open your file manager, find the .deb file you downloaded, and double-click it. Ubuntu's software installer will open automatically, show you what the package does, and give you an Install button. Click it, enter your password when prompted, and the software installs. This works for most .deb files and takes about 30 seconds.
If double-clicking does not work, or if you prefer the command line, you can use dpkg or apt instead. Both are built into Ubuntu and do the same job — dpkg is older and stricter, while apt is newer and handles dependencies automatically. For most people, the graphical method is simpler and less error-prone.
Key Takeaways
- Double-clicking a .deb file in your file manager opens Ubuntu's software installer, which is the simplest installation method for most users.
- The command sudo apt install ./filename.deb installs a .deb file from the terminal and automatically handles any missing dependencies.
- The command sudo dpkg -i filename.deb installs a .deb file but will fail if the package needs other software that is not already installed.
- After installation, the software appears in your applications menu and can be removed through the software manager or with sudo apt remove packagename.
Installing through the graphical software manager
This is the method most Ubuntu users should start with. Navigate to wherever you saved the .deb file — usually your Downloads folder — using the file manager. Right-click the .deb file and select Open With, then choose Software Install (or it may simply say Ubuntu Software). The software installer window opens and displays the package name, version, size, and a description of what it does.
Click the Install button. Ubuntu will ask for your password to confirm you want to install software. Type it and press Enter. The installation runs in the background, and a progress bar shows the status. When it finishes, the button changes to Remove, which means the software is now installed. You can close the window and find the new application in your Activities menu or by searching for its name.
Installing from the terminal with apt
Open a terminal by pressing Ctrl+Alt+T or searching for "Terminal" in your applications menu. Navigate to the folder where your .deb file is stored. If it is in your Downloads folder, type cd Downloads and press Enter. Then run this command:
sudo apt install ./filename.deb
Replace filename.deb with the actual name of your file. Press Enter and type your password when prompted. The apt command checks whether the package needs any other software to run, downloads and installs those dependencies automatically, then installs your package. This is the most reliable terminal method because it handles missing pieces for you.
Installing from the terminal with dpkg
If you prefer to use dpkg, the older package manager, open a terminal and navigate to your .deb file's location. Run this command:
sudo dpkg -i filename.deb
Replace filename.deb with your file's name. Press Enter and type your password. The -i flag means "install". Unlike apt, dpkg will not automatically fetch missing dependencies. If the package needs other software, dpkg will tell you what is missing and stop. You then have to install those dependencies separately using sudo apt install packagename, or you can go back and use apt instead, which handles this automatically.
What to do if installation fails
If the graphical installer shows an error, or if dpkg reports missing dependencies, try using apt instead. Open a terminal, navigate to your .deb file, and run sudo apt install ./filename.deb. This almost always works because apt resolves dependencies on its own.
If apt also fails, the .deb file may be corrupted or incompatible with your version of Ubuntu. Check that you downloaded the file completely — if your browser was interrupted, re-download it. If the file is for a different Ubuntu version or architecture (32-bit vs. 64-bit), it will not install. You can check your Ubuntu version by opening Settings and looking at the About section, or by running lsb_release -a in the terminal.
Removing software you installed from a .deb file
To uninstall software installed from a .deb file, open your software manager (search for "Software" in Activities), find the application in the list, and click Remove. You will be asked for your password, and the software is deleted.
From the terminal, run sudo apt remove packagename, replacing packagename with the name of the software. If you are not sure of the exact name, run sudo apt list --installed to see all installed packages. To remove the package and its configuration files, use sudo apt purge packagename instead.
Understanding .deb files and when to use them
A .deb file is Ubuntu's standard package format — it contains the software itself, installation instructions, and metadata about what the software needs to run. Most software in Ubuntu's official repositories is distributed as .deb files. When you download a .deb file from a developer's website or GitHub, you are getting the same kind of package, just installed manually instead of through the software store.
Use the graphical installer for most .deb files, especially if you are new to Ubuntu. Use the terminal with apt if you are comfortable with the command line or if the graphical method does not work. Avoid dpkg unless you have a specific reason to use it — apt does everything dpkg does, plus more, and with fewer surprises.
Frequently Asked Questions
Can I install a .deb file from a USB drive or external disk?
Yes. Plug in the drive, open your file manager, navigate to the .deb file on the drive, and double-click it to install. The file does not need to be on your computer's main drive — the installer will copy what it needs to your system.
What does "sudo" mean when I type it in the terminal?
sudo means "superuser do" — it runs the command with administrator permissions. Installing software requires these permissions, which is why you have to type your password. Without sudo, the installation will be denied.
Will installing a .deb file from a website damage my computer?
Only if the .deb file itself is malicious or from an untrusted source. Download .deb files only from official project websites, GitHub repositories, or developers you trust. If you download from an unknown site, you risk installing malware.
Can I install the same .deb file on multiple computers?
Yes. A .deb file is just a package — you can copy it to as many Ubuntu computers as you want and install it on each one. The file itself does not expire or become invalid after one use.
Why does my .deb file say "architecture mismatch" when I try to install it?
Your computer and the .deb file are built for different processor types. Most modern Ubuntu systems are 64-bit (amd64), but some older or specialized systems are 32-bit (i386) or ARM-based. Download the .deb file that matches your system's architecture. You can check yours by running dpkg --print-architecture in the terminal.