How to Install a DEB File in Ubuntu
Learning how to install a DEB file in Ubuntu allows you to add applications and software to your Linux computer using downloaded Debian packages. DEB files are commonly used to distribute applications such as Google Chrome, Visual Studio Code, and other Linux programs. Ubuntu provides several ways to install these files, including the graphical installer [...] The post How to Install a DEB File…
Installing a DEB file in Ubuntu provides a convenient way to add various applications and software to your Linux computer. DEB files are a common method for distributing applications like Google Chrome, Visual Studio Code, and other Linux programs. Ubuntu offers multiple methods for installing these files, such as the graphical installer and Terminal.
To start, download the desired DEB package from the software developer's official website. Choose the compatible DEB package for your Ubuntu system and save it in the Downloads folder for easy access.
There are three ways to install the DEB file: using Ubuntu Software, Terminal, or dpkg.
The first method involves the graphical interface. Open the Files application and navigate to the Downloads folder. Locate the downloaded DEB file, right-click it, and select Open With. Choose App Center or Software Installer, depending on your Ubuntu version. Click Install, enter your password if prompted, and wait for the installation to complete.
The second method utilizes Terminal. Open Terminal by pressing Ctrl + Alt + T, then navigate to the Downloads folder with the command: cd ~/Downloads. Install the package using the command: sudo apt install ./filename.deb, replacing filename.deb with the actual name of your downloaded file. For instance, if the file is named google-chrome-stable_current_amd64.deb, enter: sudo apt install ./google-chrome-stable_current_amd64.deb. Confirm the installation when prompted.
The third method employs the dpkg command. Open Terminal and navigate to the directory containing the DEB file. Then, enter: sudo dpkg -i filename.deb, substituting the filename with your package's name. If the installation reveals missing dependencies, resolve them by running: sudo apt –fix-broken install. This command assists Ubuntu in recognizing and installing any missing dependencies.
Once the DEB package is installed, verify that the application appears in the Ubuntu applications menu. Alternatively, launch it through Terminal using its application command. If the application fails to show up, try logging out and back in or restarting your computer.
Occasionally, you may need to remove a DEB application. Use Terminal to remove it by running: sudo apt remove package-name, replacing package-name with the actual package name. Alternatively, utilize Ubuntu App Center to uninstall supported applications.
Written by urgent.news from KahawaTungu's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.