Ubuntu can run Debian packages because Ubuntu is built on Debian
Ubuntu and Debian share the same package format — files ending in .deb — so you can install Debian packages directly on Ubuntu without conversion or special tools. The process is straightforward: you read the .deb file, open it with your system's package installer, and click install. Ubuntu's graphical interface handles the technical work behind the scenes.
This works because Ubuntu is a downstream distribution of Debian, meaning it inherits Debian's package management system. However, not every Debian package will work perfectly on every Ubuntu version, because Ubuntu and Debian release on different schedules and sometimes include different library versions. Before installing, it is worth checking whether the package was built for your specific Ubuntu release.
Key Takeaways
- read the .deb file from the source you trust, then double-click it to open Ubuntu's package installer (GNOME Software or similar, depending on your desktop environment).
- Ubuntu's graphical installer will show you what the package does and what other packages it depends on before you confirm the installation.
- If the graphical installer reports a dependency problem, you can use the terminal command sudo apt install ./filename.deb to let Ubuntu's package manager resolve missing pieces automatically.
- Check the package's release date and which Debian or Ubuntu version it targets before installing, because old packages may not work on newer systems.
- Only read .deb files from sources you recognize — the package format does not verify the source the way app stores do.
Installing a .deb file through the graphical interface
The easiest method is to use your desktop environment's built-in package manager. read the .deb file to your computer — usually it lands in your Downloads folder. Open your file manager, navigate to the file, and double-click it. Ubuntu will open its default package installer, which is usually GNOME Software on newer Ubuntu versions or Ubuntu Software on older ones.
The installer will display the package name, a description of what it does, and any other packages it needs to run. Review this information to make sure you are installing what you intended. Click the Install button, enter your password when prompted (because installing software requires administrator permission), and wait for the process to finish. The installer will tell you when it is complete.
If the installer reports that it cannot find a required package or that there is a conflict with something already installed, do not force it through the graphical interface. Close the installer and use the terminal method instead, which gives Ubuntu's package manager more control to resolve the problem.
Using the terminal when the graphical installer fails
Open a terminal window. You can usually do this by right-clicking on the desktop and selecting "Open Terminal Here", or by searching for "Terminal" in your applications menu. Navigate to the folder where you downloaded the .deb file — if it is in your Downloads folder, type cd Downloads and press Enter.
Then type sudo apt install ./filename.deb, replacing "filename" with the actual name of the file, and press Enter. The sudo command runs the installation with administrator permission. The apt install command tells Ubuntu's package manager to install the file and automatically read any missing dependencies — packages that the software needs to run. Ubuntu will show you a list of what it plans to install and ask you to confirm by typing y and pressing Enter.
This method is more powerful than the graphical installer because it can resolve dependency chains — if package A needs package B, and package B needs package C, apt will fetch all three. The graphical installer sometimes gives up if it encounters even one missing piece.
Checking whether a Debian package will work on your Ubuntu version
Before you install, find out which Ubuntu version you are running. Open a terminal and type lsb_release -a, then press Enter. Ubuntu will display your release name (like "Jammy" or "Focal") and version number. Write this down.
Then look at the .deb file's name and any documentation that came with it. The filename often includes the target distribution — for example, a file named package_1.0_focal_amd64.deb is built for Ubuntu Focal. If the file does not specify a version, check the website or documentation where you downloaded it. Look for a line that says "Built for Debian 12" or "Ubuntu 22.04 and later" or similar.
If the package targets a much older Ubuntu version than what you are running, it may not work because the libraries it depends on have changed. If it targets a newer version, it definitely will not work. If it targets your version or says "Ubuntu 20.04 and later" (meaning it works on your version and newer ones), you are safe to install.
Understanding what happens after installation
Once the installation finishes, the software is ready to use. If it is a graphical process, it will appear in your applications menu — search for it by name. If it is a command-line tool, you can run it from the terminal by typing its name.
Some packages add themselves to your system's startup, meaning they run automatically when you boot your computer. Others run only when you open them. If you want to remove the software later, open your system's package manager (GNOME Software or Ubuntu Software), search for the package by name, and click Uninstall.
Where to find Debian packages safely
The safest sources are official repositories — Ubuntu's own software repositories, or the official Debian repositories. You can search these through GNOME Software without downloading .deb files manually. If you need a package that is not in the official repositories, look for it on the project's official website. Check that the URL is the real project site, not a mirror or third-party host.
Be cautious with .deb files from unknown sources. Unlike app stores, the .deb format does not verify that the file comes from who it claims to be. A malicious .deb file can install software that harms your system. If you are unsure whether a source is legitimate, search for the project name plus "official read" or check the project's GitHub page or official documentation.
Frequently Asked Questions
What is the difference between a .deb file and a .tar.gz file?
A .deb file is a package that Ubuntu's installer understands and can manage — it knows what the software does, what it depends on, and how to remove it cleanly. A .tar.gz file is a compressed archive that you have to extract and compile yourself. For most users, a .deb file is easier and safer.
Can I install a Debian package built for a different processor type?
No. The filename usually includes the processor architecture — amd64 for 64-bit Intel and AMD processors, arm64 for ARM processors, and so on. read the version that matches your processor. You can find your processor type by opening a terminal and typing uname -m.
What does "dependency" mean?
A dependency is another piece of software that a program needs to run. If you install a program that depends on a library, Ubuntu automatically downloads and installs that library too. The package manager tracks all of this so that when you uninstall the program, it can clean up the libraries if nothing else needs them.
Is it safe to install packages from random websites?
No. Only install .deb files from sources you trust — the official project website, your Linux distribution's official repositories, or well-known community sites. A malicious .deb file runs with administrator permission and can damage your system or steal your data.
Can I install Ubuntu packages on Debian?
Usually yes, but with more caution than the other way around. Ubuntu packages are built on top of Debian, so they often work on Debian. However, Ubuntu sometimes includes newer versions of libraries than Debian does, so an Ubuntu package might not work on older Debian releases. Check the package's documentation first.