Method 1: Use the dpkg command to install the .deb package
Open the terminal.
use
dpkg
Command installation.deb
Bag:
sudo dpkg -i /path/to/
Will
/path/to/
Replace with.deb
The actual path to the file.If dependency issues occur during installation, you can use the following command to fix the dependency:
sudo apt-get install -f
This will automatically install the required dependencies and complete
.deb
Package installation.
Method 2: Use the apt command to install the .deb package
apt
Commands can automatically handle dependencies, avoiding dependency problems.
Open the terminal.
use
apt
Install.deb
Bag:
sudo apt install ./
Here
./
Refers to the current directory.deb
Files can also use absolute paths.
Method 3: Use gdebi to install the .deb package
gdebi
It is a specially designed for installation.deb
File tools that can automatically parse and install dependencies. If your system is not installedgdebi
, can be installed through the following command:
sudo apt update sudo apt install gdebi
After the installation is completed, use the following command to install.deb
Bag:
sudo gdebi /path/to/
Method 4: Install the .deb package through the graphical interface
- Found in File Manager
.deb
document. - double click
.deb
Files, Ubuntu usually uses a package manager (such asUbuntu Software
orSoftware Install
) Open it. - Click the "Install" button and enter the administrator password to complete the installation.
Summarize
These methods can be installed on Ubuntu.deb
Software Package. useapt
andgdebi
Install.deb
Packages will automatically handle dependencies and are usually recommended.
The above is the detailed content of several methods to install the `.deb` package on Ubuntu. For more information about installing the `.deb` package on Ubuntu, please follow my other related articles!