From: http://hi.baidu.com/xiboliya/blog/item/fee581d46cf5e41fa08bb7fb.html
If Ubuntu wants to install new software, the Deb installation package (for example, iptux. Deb) already exists, but cannot log on to the desktop environment. How can I install it? The answer is: run the dpkg command.
The common format of the dpkg command is as follows:
Sudo dpkg-I iptux. Deb # View the detailed information of iptux. Deb software package, including the software name, version, and size (where-I is equivalent to -- INFO)
Sudo dpkg-C iptux. Deb # View the file structure contained in the iptux. Deb Software Package (where-C is equivalent to -- contents)
Sudo dpkg-I iptux. Deb # Install the iptux. Deb package (where-I is equivalent to -- install)
Sudo dpkg-l iptux # View iptux package information (the software name can be viewed using the dpkg-I command, where-L is equivalent to -- List)
Sudo dpkg-l iptux # View all the files installed by the iptux software package (the software name can be viewed using the dpkg-I command, where-L is equivalent to -- listfiles)
Sudo dpkg-s iptux # View the detailed information of the iptux software package (the software name can be viewed using the dpkg-I command, where-S is equivalent to -- Status)
Sudo dpkg-r iptux # Uninstall the iptux software package (the software name can be viewed using the dpkg-I command, where-R is equivalent to -- remove)
Note: The dpkg command cannot automatically resolve the dependency. If the Deb package to be installed has a dependency package, do not use this command or install the dependency package in the order of dependency.