How to install a .deb package


#1

How can I install libxorg-static-devel-xx-x86_64.(rpm/deb)?


#2

You can install a .deb file from the command line. Here are a couple ways to install it (thanks to Stack Exchange):

  1. You can install it using sudo dpkg -i /path/to/deb/file.deb followed bysudo apt-get install -f.
  2. You can install it using apt-get install package_name. But first move your .deb file to /var/cache/apt/archives/ directory. After executing this command, it will automatically download its dependencies.

#3

listas:~/workspace $ sudo apt-get install rpm
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
rpm : Depends: librpm3 (>= 4.10.0) but it is not going to be installed
Depends: librpmbuild3 (>= 4.10.0) but it is not going to be installed
Depends: librpmio3 (>= 4.10.0) but it is not going to be installed
Depends: librpmsign1 (>= 4.10.0) but it is not going to be installed
Depends: rpm2cpio
Depends: debugedit (= 4.11.1-3ubuntu0.1)
Depends: rpm-common (= 4.11.1-3ubuntu0.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.