dpkg -get-selections命令在Ubuntu上不起作用

我正在尝试在Ubuntu上使用gpkg -get-selections命令。 我对Ubuntu有点新鲜,真的只是遵循一个关于如何正确安装Tomcat的教程:)\

教程在这里: http : //www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/

示例在那里,但在本地我得到这个错误:

dpkg: unknown option -g Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' 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; Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*]. 

任何想法,为什么会发生?

谢谢!

命令是dpkg --get-selections ,而不是dpkg -get-selections