如何在Debian Linux中安装dpkg文件及.deb软件包(以chromex64.deb为例)
Hey there! Since you're new to Linux and Debian specifically, let's break down exactly how to install .deb packages—using your chromex64.deb file as an example. I'll walk you through two reliable methods so you can pick what feels most comfortable.
Method 1: Using the
dpkg Command (The Basic Approach) This is the core tool for handling .deb packages in Debian, so it's good to know how it works:
- First, make sure your
chromex64.debfile is downloaded (it's probably in yourDownloadsfolder by default). Open a terminal quickly withCtrl+Alt+T. - Navigate to the folder where the file is stored. If it's in Downloads, run:
cd ~/Downloads - Install the package with
dpkg—you'll need admin privileges, so usesudo:
Quick breakdown:sudo dpkg -i chromex64.debsudogives you root access,dpkgis Debian's package manager, and-istands for "install". - Common hiccup: You might see an error about missing dependencies. Don't panic! Fix this by running:
This command automatically downloads and installs all the missing libraries needed for Chrome to run. Once it finishes, your installation should be complete.sudo apt-get install -f
Method 2: Using the
apt Command (Smarter, Recommended for Newbies) apt is a more user-friendly tool that wraps around dpkg and handles dependencies automatically. Here's how to use it:
- Open your terminal and navigate to the folder with
chromex64.deb(again, likelycd ~/Downloads). - Run this command—make sure to include
./before the filename to tellaptit's a local file:sudo apt install ./chromex64.deb - That's it!
aptwill install the package and resolve any dependency issues in one go. No extra commands needed.
Quick Post-Install Tips
- To launch Chrome, you can find it in your system's application menu, or just type
google-chromeinto the terminal. - If you ever need to uninstall it later, use the official package name (not the .deb filename):
sudo apt remove google-chrome-stable
内容的提问来源于stack exchange,提问作者Amit Singh
相关产品推荐
相关产品推荐

