Ubuntu卸载dpkg安装的软件

博主在Ubuntu系统中,使用dpkg安装了Dropbox,之后尝试卸载遇到问题,按提示查看安装软件名字为“dropbox”,最终成功卸载。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我用dpkg安装了dropbox

sudo dpkg -i dropbox_2020.03.04_amd64.deb

现在想要卸载

sudo dpkg --purge dropbox_2020.03.04_amd64.deb

这样做不行

dpkg: error: you must specify packages by their own names, not by quoting the names of the files they come in

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !

提示直接指定名字就可以了

查看安装的软件名字

dpkg -l

找到了它的名字叫 “dropbox”
在这里插入图片描述

sudo dpkg --purge dropbox

卸载成功了!

(Reading database ... 363050 files and directories currently installed.)
Removing dropbox (2020.03.04) ...
Purging configuration files for dropbox (2020.03.04) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值