Ubuntu解除安裝dpkg安裝的軟體
阿新 • • 發佈:2020-12-29
我用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) ...