linux_ask_01-How to install .deb package?

本文详细介绍了在Linux系统中如何安装.deb格式的软件包。包括下载.deb文件,切换到下载目录,使用sudo dpkg -i命令进行安装,检查安装结果以及解决依赖问题的方法。适合Linux初学者快速上手。

ID = linux_ask_01

Question

How to install .deb package?

Answer

In a word: Install your filename.deb file with $ sudo dpkg -i filename.deb. If there are some errors with unresolved dependencies, run $ apt-get install -f afterwards.

Follow this procedure to make it:

Step1: Download .deb file

baidunetdisk_linux_3.0.1.2.deb

Step2: Change directory to the download folder

$ cd Downloads

Step3: Install

Command: $ sudo dpkg -i <filename>

Record:

$ sudo dpkg -i baidunetdisk_linux_3.0.1.2.deb
[sudo] password for shane: 
Selecting previously unselected package baidunetdisk.
(Reading database ... 188730 files and directories currently installed.)
Preparing to unpack baidunetdisk_linux_3.0.1.2.deb ...
Unpacking baidunetdisk (3.0.1) ...
Setting up baidunetdisk (3.0.1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...

Step4: Check result

Open the program to check if there is any error.
For me, the result is okay, so this step is the end.

Step5: Error fixing (if check failed)

If there are some errors with unresolved dependencies, run $ apt-get install -f afterwards

Reference

[1] How to install a deb file, by dpkg -i or by apt?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值