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.


#4

root@BattleCry-Security-Services:~# apt-get install deluge_1.3.13+git20161130.48cedf63-3_all.deb
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package deluge_1.3.13+git20161130.48cedf63-3_all.deb
E: Couldn’t find any package by glob ‘deluge_1.3.13+git20161130.48cedf63-3_all.deb’
E: Couldn’t find any package by regex ‘deluge_1.3.13+git20161130.48cedf63-3_all.deb’
root@BattleCry-Security-Services:~#

has anyone been able to solve this issue? i placed the .deb file in /var/cache/apt/archives like the post said then ran the command above but still cannot get it to install.
any advice?


#5

Remove the .deb extension from your apt-get install command and try again.