我从http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_15.04/all/下载了弧形主题solid_1450051815.946cbf5_all.deb文件,并使用软件中心安装了它,但是当我决定卸载它时,它并没有出现在软件中心中。我想通过终端删除它,但想不出要卸载的软件包的正确名称。这是与安装软件中心以外的任何软件包有关的一般问题。另外,要卸载的包的名称是否与.deb文件的名称相同?
发布于 2016-01-09 04:29:29
通过读取deb文件,您应该能够使用dpkg -I
或dpkg-deb -I
来显示有关包的信息。来自man dpkg
dpkg-deb actions
See dpkg-deb(1) for more information about the following
actions.
.
.
.
-I, --info archive [control-file...]
Show information about a package.
例如:
$ dpkg -I arc-theme-solid_1450051815.946cbf5_all.deb
new debian package, version 2.0.
size 286706 bytes: control archive=42665 bytes.
421 bytes, 12 lines control
147142 bytes, 1477 lines md5sums
Package: arc-theme-solid
Version: 1450051815.946cbf5
Architecture: all
Maintainer: Horst3180 <horst3180@gmx.net>
Installed-Size: 4307
Depends: gnome-themes-standard, gtk2-engines-murrine
Conflicts: arc-theme
Replaces: arc-theme
Section: misc
Priority: optional
Description: Arc is a theme for GTK 3, GTK 2 and Gnome-Shell.
It supports GTK 3 and GTK 2 based desktop environments like Gnome, Unity, Budgie, Pantheon, etc.
因此,在本例中,包名为arc-theme-solid
发布于 2016-01-09 04:56:21
使用(GUI方法)
sudo apt-get update sudo apt-get upgrade sudo apt-get install synaptic
发布于 2016-01-09 04:31:11
要卸载的包的名称是否与.deb文件的名称相同?
不一定。包文件可以称为install-me.deb
,包本身可以是foo-bar
。
然而,arc-theme-solid_1450051815.946cbf5_all.deb
看起来像一个正常的名称。通常,对于包,.deb
文件应该命名为<package-name>_<version>_<architecture>.deb
。对于您安装的包,则:
arc-theme-solid
1450051815.946cbf5
all
要验证,如果您仍然拥有.deb
文件,则可以在其上使用dpkg-deb
:
dpkg-deb --field arc-theme-solid_1450051815.946cbf5_all.deb
例如:
$ dpkg-deb --field fonts-noto_2015-09-29-1_all.deb
Package: fonts-noto
Version: 2015-09-29-1
Architecture: all
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org>
Installed-Size: 22
Depends: fonts-noto-hinted
Recommends: fonts-noto-unhinted, fonts-noto-cjk
Section: fonts
...
https://askubuntu.com/questions/718918
复制相似问题