dpkg --status 软件包名称

dpkg --status 软件包名称

我正在试用 Ubuntu 14.04.1 LTS。我安装了 emacs,想再检查一下是否正常。

~ 1496 $ dpkg --status emacs
dpkg-query: package 'emacs' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

我把下面这行

~ 1497 $ apt-cache show emacs
Package: emacs
Priority: optional
Section: editors
Installed-Size: 25
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Rob Browning <[email protected]>
Architecture: all
Source: emacs-defaults
Version: 45.0ubuntu1
Depends: emacs24 | emacs24-lucid | emacs24-nox
Filename: pool/main/e/emacs-defaults/emacs_45.0ubuntu1_all.deb
Size: 1624
MD5sum: 2648ac76d7058d4a722ae304e474aa06
SHA1: 6667aaf3b043b44f10271b943dbb9dbb9620dbf2
SHA256: cb9185c543841971a754ebf8c6a35396c865171532b407dce5b5447c41cfa232
Description-en: GNU Emacs editor (metapackage)
 GNU Emacs is the extensible self-documenting text editor.
 This is a metapackage that will always depend on the latest
 recommended Emacs release.
Description-md5: 21fb7da111336097a2378959f6d6e6a8
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y

现在它似乎已经安装好了,但是我仍然不明白为什么第一个命令显示“emacs 未安装...”。

答案1

似乎正确的做法是请求emacs24

dpkg --status emacs24

这可能是因为它emacs是一个过渡包,emacs23并且您已经emacs24安装了它。

相关内容