Ubuntu Linux – How Do I install .deb Packages?

I am a new Ubuntu Linux user. How can I install a package called package.deb? Can I use Synaptic front-end package management tool to install packages from the CD or Internet such as apt command or apt-get command. However, I would like to install a special .deb file. How do I install .deb package from the terminal using command line option in Ubuntu Linux or Debian Linux?

Tutorial details
DifficultyEasy (rss)
Root privilegesNo
Requirementsdpkg
Time1m
You need to use the dpkg command or apt-get command/apt command, which is a package manager from shell/command prompt for Debian and Ubuntu Linux. You can use this tool to install, build, remove and manage packages. dpkg itself is controlled entirely via command line parameters.

ADVERTISEMENTS

How Do I install .deb Packages on an Ubuntu Linux?

The syntax is as follows to install .deb file via the command line:

dpkg -i package-name-here.deb
dpkg --install package-name-here.deb
dpkg -i -R /path/to/dir/name/with/lots/of/dot-deb-files/
dpkg -i --recursive /path/to/dir/name/with/lots/of/dot-deb-files/
####################################################################
## Attempt to correct a system with broken dependencies in place by 
## passing the '-f' option to the apt-get 
####################################################################
sudo apt-get install -f
## OR ##
sudo apt install -f

Where,

  1. -i or --install : Install the .deb package on Ubuntu Linux.
  2. -R or --recursive : Recursively installed all *.deb files found at specified directories and all of its sub-directories. /path/to/dir/name/with/lots/of/dot-deb-files/ must refer to a directory instead of package-name-here.deb file name.

Make sure you run the following command using the ‘sudo dpkg -i ./file.deb’ command which try to fix system by installing much needed and missing dependencies. From the man page

Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution. If packages are specified, these have to completely correct the problem. The option is sometimes necessary when running APT for the first time; APT itself does not allow broken package dependencies to exist on a system. It is possible that a system’s dependency structure can be so corrupt as to require manual intervention (which usually means using dpkg –remove to eliminate some of the offending packages). Use of this option together with -m may produce an error in some situations. Configuration Item: APT::Get::Fix-Broken.

How do I install .deb file on Ubuntu?

To install a single package file called /tmp/package.deb type the following commands. Open a terminal and then cd to directory where package.deb is kept. In this example, package.deb is kept in /tmp directory:
$ cd /tmp
Type the following command to install the package:
$ sudo dpkg -i package.deb
$ sudo apt-get install -f

OR as root user run:
# dpkg -i package.deb
# apt-get install -f

How do I install a atop_2.3.0-1_amd64.deb file via the bash command line?

Say you downloaded a deb file named atop_2.3.0-1_amd64.deb:
$ ls -l *.deb
To install .deb packages named atop_2.3.0-1_amd64.deb, run:
$ sudo dpkg -i ./atop_2.3.0-1_amd64.deb
How Do I install .deb Packages on Ubuntu Linux

Install all packages from /nfs/pkgs/ubuntu-builds directory

Recursively handle and install all regular files matching pattern *.deb found at /nfs/pkgs/ubuntu-builds/ directory and all of its subdirectories, type:
$ sudo dpkg -i -R /nfs/pkgs/ubuntu-builds/
OR
# dpkg -i -R /nfs/pkgs/ubuntu-builds/

A note about GUI tools

Open your file manager. Visit folder such as ~/Downloads/ or /tmp/. Choose .deb file. Double click on the .deb file and installation will start automatically. It works if you have a GUI installed on your system or server:
Install downloaded packages in Ubuntu using GUI 1
Next a dialog box comes on screen as follows:
Install downloaded atop packages in Ubuntu using GUI 2
Click on the Install button. You must authorized yourself to install software/.deb package file:
authentication required to install .deb file on Ubuntu
Once authenticated, .deb file install and you will see progress as follows:
Installing .deb file on Ubuntu Linux

Installing .deb package file using the apt command

The syntax is as follows:
$ sudo apt install ./file.deb
$ sudo apt install /path/to/file.deb
## install ALL *.deb file in the current dir ##
$ sudo apt install ./*.deb

Conclusion

You learned about installing deb package on an Ubuntu Linux using the dpkg command. For more info see the following pages:

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
71 comments… add one
  • Gams Nov 6, 2007 @ 7:23

    Thanks a bunch. I was searching for hours for that solution…

    sudo dpkg -i package.deb

    I had a directory of backed up .deb files that I had to restore.

    Cheers,

    Gama.

    • aby Sep 28, 2010 @ 6:12

      bt for installing command is sudo gainroot

    • ashutoshh singh Feb 13, 2012 @ 5:23

      thanks a lots ..this article has really brough change in my account of knowledge..thanks alot once again…ashu

  • Ahmad Jun 17, 2008 @ 7:54

    Thanks..been looking for it.

  • Adrian Jun 26, 2008 @ 16:15

    I just double clicked the .deb package and let ubuntu do it all itself. Nice one.

  • MegaS Oct 23, 2008 @ 13:20

    “Clicking on .deb file” is much better advice, thanks

  • Ray Oct 26, 2008 @ 23:13

    thank you so much. now i know “dpkg -i file.deb” alone would not work. cheers!

  • unknown Oct 30, 2008 @ 17:22

    for openoffcie.org 3.0 :

    in the directory of DEBS:
    sudo dpkg -i *deb

    it will install all the packages.

    thnx a bunch

    • youngdaddytc Mar 15, 2011 @ 22:17

      that worked, nice command. just put the package on the desktop, then run the terminal from there, worked just fine.

  • Ritz Nov 7, 2008 @ 15:09

    Hey thanx a ton!……………I had backed up a lot of packages, and wanted to install them all at once!………….:)

  • Eivind Trana Nov 10, 2008 @ 9:00

    Hi there.
    Thanks for the tips ’bout .deb install.

    Next (a bit out of focus, but nevertheless):
    I am totally new to Ubuntu. Installed it because of a disk failure on my laptop. When wanting to install windows for boot on my spare USB-drive, Windows (bulls*%& MS) couldn’t do it (blue screen). Frustrated I booted the Ubuntu 8.0.4 CD-ROM I had downloaded a while ago. Ubuntu found the disk like nothing! Halleluya!!!
    So now I am able to still use my good old laptop! And it is MUCH more faster than under Windows.
    Finding a new HD to a 5 years old Dell Inspiron isn’t easy. I might as well retired my current Inspiron 500m as a kinda homebrewed webserver and buy one of those snaksy new minis, like EEEPC or Dell Inspiron Mini 9, but INCLUDED with Ubuntu of course. Good bye Windows.

    BTW:I have never before found such a happy bunch of contributors/helpers/goodminded persons as I have in the Linux-world! A general thanks to all’ye for yer help during the transition.

    BTW2: My first “PC” was a Metric ABC80 w/16Kb RAM (bought in 1978). OMG the world has changed since then :-)

    From now on: straight into Ubuntu-heaven!
    Cheers mates!

    Kindly sunshine from

    Mr. Eivind Trana
    Old IT-guy (30 years experience) from Norway living retired cool days in Lapu-Lapu, The Philippines.

  • xenomorf Mar 29, 2009 @ 8:26

    wooo… thx a lot. i’ve been wondering how do i install DEB packages. i want to install this WINE packages but all i see is to connect to the internet first. But i can’t go online because i dont know how to install my wireless card. so, i juz download this DEB manually and install it.

    thank you very much.

  • mugalata Apr 11, 2009 @ 9:11

    thanks. it’s a very useful info.

  • Leo Apr 16, 2009 @ 6:29

    Thanks a lot! Very useful!

  • Jordan May 15, 2009 @ 17:43

    Sometimes installing the deb file through the GUI won’t work. If you have a i386 package and you’re running amd64 you need to use dpkg like so:

    “dpkg -i –force-architecture /path/to/file.deb”

  • Thana Jun 11, 2009 @ 13:04

    Thanks a lot!!

  • Mostafa Aug 24, 2009 @ 22:14

    hi,
    How can i compile kernel modules (my programs).
    thanks.

  • Jason Sep 12, 2009 @ 11:58

    Helpful thanks.

  • matias Sep 17, 2009 @ 17:57

    Gracias, fue de gran ayuda, estoy instalando, ya te digocomo me fue :D

  • matias Sep 17, 2009 @ 18:00

    ya instale el vmware, pero donde quedo la instalacion?

    esto me aparece:

    root@matias1:/home/matias/programas# dpkg -i vmware-player_2.5.3-185405_i386.deb
    (Leyendo la base de datos …
    170294 ficheros y directorios instalados actualmente.)
    Preparando para reemplazar vmware-player 2.5.3-185405 (usando vmware-player_2.5.3-185405_i386.deb) …
    Desempaquetando el reemplazo de vmware-player …
    Configurando vmware-player (2.5.3-185405) …
    root@matias1:/home/matias/programas#

    pero no logro encontrar la instalacion por ningun lado :(

  • oh2fpg Sep 28, 2009 @ 12:37

    Thanks, It really helped me out!

  • Jeff Oct 5, 2009 @ 20:29

    That did the trick, thanks!
    -J

  • alex Dec 9, 2009 @ 2:57

    mine keeps showing this and i dont know what to do

    You must agree to the above LICENSE to install this software. Do you agree? (yes/[no]) yes
    Unpacking replacement sn9cxxx …
    WARNING: -e needs -E or -Fdpkg: dependency problems prevent configuration of sn9cxxx:
    sn9cxxx depends on linux-image-generic (= 2.6.20.16.28.1); however:
    Version of linux-image-generic on system is 2.6.31.16.29.
    dpkg: error processing sn9cxxx (–install):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:
    sn9cxxx

  • Sheldon Dec 11, 2009 @ 18:18

    Please Help I’m new to Ubuntu and trying follow the instructions and this is what I keep getting:

    sheldon@ubuntu:~$ cd /tmp
    sheldon@ubuntu:/tmp$ sudo dpkg -i package.deb
    tar: ./postinst: time stamp 2009-12-10 22:16:45 is 72110.366117579 s in the future
    tar: ./postinst~: time stamp 2009-12-10 22:14:11 is 71956.365517782 s in the future
    tar: ./control~: time stamp 2009-12-10 22:14:59 is 72004.365354354 s in the future
    tar: ./control: time stamp 2009-12-10 22:15:03 is 72008.365204055 s in the future
    tar: .: time stamp 2009-12-10 22:16:45 is 72110.364497541 s in the future
    (Reading database … 114110 files and directories currently installed.)
    Preparing to replace astronaut-wv-server-beta 0.9-2 (using package.deb) …
    Unpacking replacement astronaut-wv-server-beta …
    dpkg: dependency problems prevent configuration of astronaut-wv-server-beta:
    astronaut-wv-server-beta depends on openssh-server; however:
    Package openssh-server is not installed.
    astronaut-wv-server-beta depends on xinetd; however:
    Package xinetd is not installed.
    astronaut-wv-server-beta depends on apache2; however:
    Package apache2 is not installed.
    astronaut-wv-server-beta depends on apache2-suexec; however:
    Package apache2-suexec is not installed.
    dpkg: error processing astronaut-wv-server-beta (–install):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:
    astronaut-wv-server-beta

    Please Help!

  • vinod Dec 12, 2009 @ 15:47

    from were i download .deb extension file

  • 🐧 nixCraft Dec 13, 2009 @ 8:46

    Download it from the Internet or the official ftp / mirror site. You can also use apt-get to install packages over the Internet.

  • todd Feb 27, 2010 @ 2:56

    I just tried using dpkg and it did not resolve dependencies for me.

  • Michael Saunders Mar 22, 2010 @ 16:01

    I don’t understand why everyone is saying type this type that………..deb files only require you to double click and it will do it all by itself………oommmmmmmmmmmmm. no stress :-D

    • new to linux May 30, 2015 @ 14:28

      Hi Michael,

      not everybody can click to install a package
      .
      what about if the gui does not start, then you have to install the package e.g chromepackage from the command line. so how do you click if your gui/desktop does not even work ?

      I have this problem now

  • Guru Radha Murthy Apr 5, 2010 @ 3:41

    sir, thanks for your article.it is very helpful for me.

  • Ahsan Yousaf Apr 16, 2010 @ 12:59

    dpkg -i wvdial_1.60.1_amd64.deb execution results on ubuntu 9.10
    dpkg: error processing wvdial (–install):
    dependency problems – leaving unconfigured
    Processing triggers for man-db …
    Error were encountered while processing
    Wvdial

  • Amarjeet Singh Aug 6, 2010 @ 9:03

    i’m trying to install “sugarcrm ” on ubuntu10.04 but it is not possible.i want to install sugarcrm on any OS so plz help me

  • jim Aug 13, 2010 @ 2:52

    thanks – installing ubuntu server and needed to install webmin from a .deb file!

    Oh, and for all of you wondering why we don’t “double click” on the file.
    Download and install ubuntu SERVER – – – – – then try to double click! It ain’t got no GUI. So learn the command line or you will be lost!

  • Michael Sep 9, 2010 @ 16:31

    Nice post! Short and to the point. Thank you!

  • TF hAAck Oct 6, 2010 @ 15:35

    Thanks a lot.

  • Noushad Nov 19, 2010 @ 13:29

    I want to know about downloadings and installation of images and software

  • mohamed Nov 20, 2010 @ 16:23

    i convert tar.gz or tar.bz2 to deb file with alien.
    but after i install them, i cant find them in applications.

  • mahesh Dec 25, 2010 @ 5:59

    i try for installing wvdial in ubuntu 9.10.
    i describe process as
    1> i download all 5 packages.
    2> dpkg –force-architecture -i pkg_name.deb
    3> sudo apt-get install wvdial
    i give some errors for /etc/apt/sources.lst for some hyperlinks.
    what should ido?
    i am very desperate to dial up pc with mobile.
    plz help me

  • utkarsh Feb 20, 2011 @ 16:33

    thanks!! it really helped me!

  • Guy Apr 1, 2011 @ 10:54

    Hi. I am surprised that this install did not work successfully on my system (Linux Mint, though it says that it is Ubuntu 10.10 in the About Ubuntu section…).

    Here is what was written in Terminal after the attempted installation:

    tracey@tracey-TravelMate-5610:~$ cd /home/tracey/mysql-workbench-gpl-5.2.33b-1ubu1010-i386.deb
    bash: cd: /home/tracey/mysql-workbench-gpl-5.2.33b-1ubu1010-i386.deb: Not a directory
    tracey@tracey-TravelMate-5610:~$ cd /home/tracey
    tracey@tracey-TravelMate-5610:~$ sudo dpkg -i mysql-workbench-gpl-5.2.33b-1ubu1010-i386.deb
    [sudo] password for tracey:
    Sorry, try again.
    [sudo] password for tracey:
    Selecting previously deselected package mysql-workbench-gpl.
    (Reading database … 192967 files and directories currently installed.)
    Unpacking mysql-workbench-gpl (from mysql-workbench-gpl-5.2.33b-1ubu1010-i386.deb) …
    dpkg: dependency problems prevent configuration of mysql-workbench-gpl:
    mysql-workbench-gpl depends on libzip1 (>= 0.8); however:
    Package libzip1 is not installed.
    mysql-workbench-gpl depends on mysql-client; however:
    Package mysql-client is not installed.
    mysql-workbench-gpl depends on python-pysqlite2; however:
    Package python-pysqlite2 is not installed.
    dpkg: error processing mysql-workbench-gpl (–install):
    dependency problems – leaving unconfigured
    Processing triggers for desktop-file-utils …
    Processing triggers for python-gmenu …
    Rebuilding /usr/share/applications/desktop.en_US.utf8.cache…
    Processing triggers for python-support …
    Errors were encountered while processing:
    mysql-workbench-gpl
    tracey@tracey-TravelMate-5610:~$

    Any help and insight as to why there are errors would be greatly appreciated. Thank you!!

    – Guy.

    • imran shaikh Dec 11, 2011 @ 5:34

      i have the same problem while installing emacs, can u help me out

  • Negi Sep 6, 2011 @ 11:44

    hi, I am new to ubuntu
    I did what this instructions said but it didn’t work, actually nothing happened, even if I double click on it it opens the programs of ubuntu, i don’t know what to do can you tell me what is wrong or what i should do

  • Wasim Sep 27, 2011 @ 8:25

    i used alien to convert .rpm to .deb ..whr does .deb file get stored..i m not getting it on desktop of ubuntu as my .rpm is on desktop

  • F-3000 Nov 8, 2011 @ 15:08

    If you’re forced to use CLI, then there’s no way to double click. ;)

    With GUI and only a couple .deb packets, it’s indeed easier to just double click.

  • Ranomez Nov 11, 2011 @ 1:26

    thank you, i dont have gdebi so i had no ideea what to do

  • Mahesh Nov 14, 2011 @ 11:39

    dpkg -i *.deb
    dpkg: error: dpkg status database is locked by another process

    i find this error.

  • shwetank Dec 1, 2011 @ 14:12

    Thanks a ton :)

    This was exactly what i was missing.

  • imran shaikh Dec 11, 2011 @ 5:19

    where can i download packages to install on ubuntu using a pendrive

  • imran Dec 11, 2011 @ 6:22

    i am unable to install package for emacs on ubuntu 10.04 , i have saved the package on the desktop. any one can help me out..

  • imran Dec 20, 2011 @ 12:00

    i installed ubuntu 8.04.4 and was unable to connect to the wireless modem so i started manually updating packages, as i needed to run emacs, so i updated packages like, emacs22_22.2-0ubuntu9_i386,
    emacs22-common_22.2-0ubuntu9_all,
    liblockfile1_1.08-3ubuntu1_i386,
    libgif4_4.1.6-9_i386,
    libssl0.9.8_0.9.8k-7ubuntu8.6_i386,
    libc6_2.11.1-0ubuntu7.7_i386,
    libsqlite3-0_3.6.22-1_i386,
    libdb4.8_4.8.24-1ubuntu1_i386,
    libreadline6_6.1-1_i386,
    emacs22-bin-common_22.2-0ubuntu9_i386,
    emacsen-common_1.4.19ubuntu1_all,
    libasound2_1.0.22-0ubuntu7_i386,
    libpython2.6_2.6.5-1ubuntu6_i386,
    xaw3dg_1.5+E-17build1_i386,
    python2.6_2.6.5-1ubuntu6_i386,
    python2.6-minimal_2.6.5-1ubuntu6_i386,
    python-central_0.6.15ubuntu1_all.
    these many packages were updated manually by the command , sudo dpkg -i ./filename.
    on every package it showed on the terminal ” setting” and three package dependencies are broken that are , python2.6, emacs22, libreadline6.
    plz help, i am new to ubuntu

  • drainman Jan 2, 2012 @ 19:37

    People who receive errors, especially unresolved dependencies, may use the APT Package Manager.

    If you have Ubuntu Desktop installed, you can use the Synaptic userinterface (for apt) for managing your packages. Syaptic will know all packages on the CD and may have configured additional web sources during installation. If not you can add new online sources anytime in the GUI. Synaptic will, as it uses APT, resolve all dependencies (or at least will try) during package installation.

    if you want or have to use CLI and #sudo dpgk [] does not wortk, use the apt-get command (apt package manager) instead, which resolves all dependencies.

    Install with APT on CLI:
    A) to install known packages from known sources ;)
    #sudo apt-get install [package]

    If you want to install LOCAL deb packages with apt, do the following

    B) define new sources and import packages
    B.1) the location of the package must be included in the etc/apt/sources.list. you may change this file with an editor of your choice. If you want to add a directory, do the following:

    B.1.1) put all debs in one directory, in this example /root/debs/
    B.1.2) to create Packages.gz, in root type:
    # dpkg-scanpackages debs /dev/null | gzip > debs/Packages.gz
    B.1.3) edit sources.list adding this line:
    deb file:/root debs/
    B.2) you MUST use the following command after changing the sources.list, to import all new package lists from the sources:
    #sudo apt-get update
    B.3) now you can use A)

    however, having internet connection available ist the easyest way to go.

    to get the name of you package, try
    #apt-cache search [expression]
    that will list you all packages where [expression] was found ;)

    for more Information on APT search google, or ask your WIKI.

  • Mira Mar 19, 2012 @ 11:18

    Hello,

    I am new to linux world!

    I have a package downloaded on my ubuntu 9.04 desktop, I am trying to install it!

    Not that this package is not a .deb !

    any help please!!!

  • Mark Apr 11, 2012 @ 4:04

    Thank you. It worked well!

  • Vishal May 30, 2012 @ 10:59

    Thanks a ton for the post… Really Helpful !!

  • Dong Phuc Jul 3, 2012 @ 17:26

    This command isn’t run on ubuntu 12.04 !

  • Maroocan Man Aug 7, 2012 @ 14:06

    Thanks From Morocco

  • lkjghzlsdijfg Nov 11, 2012 @ 1:27

    cannot access archive : permission denied

    linux is a big joke.
    ten years of trying, still cannot install a program in linux

    click on .deb file and the stuppid OS asks me what program i would like to use.
    utter lunacy!

  • secuiu Dec 2, 2012 @ 12:27

    under ubuntu or linux mint just open terminal and type

    sudo apt-get install gdebi

    after installation just rigth click on .deb pachage -> open with gdebi,fallow the instruction ….that all !

  • Ram Jan 15, 2013 @ 17:53

    Can Any one help me in patch creation for ubuntu

    I need to create patch for ubuntu (java application). which update only some file or add new file if any in package

    I am using this command.

    dpkg –instdir=/opt -i –force-overwrite package_file_name.deb

    it’s replacing all file , deleting other file which are not in this package.

    Please Help

    Thanks to all

  • Rahmat Miftahul Habib Mar 6, 2013 @ 2:43

    Very usefull info. This command must be remember if you’re Debian Linux User.

  • Frank Apr 15, 2013 @ 4:54

    Help.

    I am new to Linux and just installed Ubuntu but I am totally confused, please direct me to a users manual or something to help.

    I downloaded the Exodus viewer file “exodusviewer_12.11.24.1_all.deb” and as directed here did: $ sudo dpkg -i exodusviewer_12.11.24.1_all.deb in my home/Download directory.

    The terminal prints that it is installed in /usr/local/share/applications but I can’t get there from the command line after I use sudo -i to be at root access. No directories show up when I use ls -l.

    When I use the Nautilus file browser to go there I find the file called “exodus” but double clicking it does nothing.

    This is all so confusing and frustrating when they do not list any installation directions and I can not find a user manual type document anywhere.

    When you ask some people they arrogantly reply with “RTFM”. Well where is the manual?

    What do I do? Thanks.

  • Kavya Aug 5, 2013 @ 12:12

    Hi there

    I installed my ubuntu custom kernel with deb files using dpkg as mentioned above. I the same Machine where it builed. When i take the deb file to other machine with same configuration. Installetion was successfull, I am not able to compile any modules in the installed kernel.

    Error persist even after installation of the headers

  • Sam Aug 11, 2013 @ 14:32

    When I typed in the command, it came up saying
    “dpkg: error processing *****.deb (–install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    ******.deb”
    What should I do?

  • Johanna Mar 3, 2014 @ 0:52

    ¡Thanks!

  • Bilal Korir May 30, 2014 @ 6:16

    Short but enough, thank you :)

  • Jim Juette Jul 1, 2014 @ 12:41

    Nice explanation and very simple instructions. I just installed the latest alpha of Kingsoft Office and it went as smoothly as can be expected for an alpha.

  • treegb Dec 24, 2014 @ 3:37

    I’m not sure if this method ( [dpkg -i … ] ) will going wrong.
    I saw someone use :
    dpkg -i
    then
    apt-get install -f
    because sometimes dependency go wrong with only the first command, then you have to use the second command to solve the dependency problem afterwards.

    My way is put the .deb file into [/var/cache/apt/archives] , and run [aptitude install ]. aptitude will check the local package in [/var/cache/apt/archives] , then install it.
    I not found the way to use aptitude to install .deb file directly yet. But I’m not sure whether these method is flawed, maybe someone can tell me.

  • helena Jan 1, 2015 @ 22:09

    helena@helena-SATELLITE-L750:~$ dpkg -i package-name-here.deb
    dpkg: error: requested operation requires superuser privilege
    helena@helena-SATELLITE-L750:~$ dpkg –install package-name-here.deb
    dpkg: error: requested operation requires superuser privilege
    helena@helena-SATELLITE-L750:~$ dpkg -i -R /path/to/dir/name/with/lots/of/dot-deb-files/
    dpkg: error: requested operation requires superuser privilege
    helena@helena-SATELLITE-L750:~$ dpkg -i –recursive /path/to/dir/name/with/lots/of/dot-deb-files/
    dpkg: error: requested operation requires superuser privilege
    helena@helena-SATELLITE-L750:~$
    helena@helena-SATELLITE-L750:~$

    how can I resolve this , thanks

  • Eduard Mar 1, 2015 @ 9:09

    Same as Sam….“dpkg: error processing *****.deb (–install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    ******.deb”
    it seems that no one knows why…………

  • F-3000 Jun 2, 2015 @ 10:07

    Add sudo at the beginning.

  • Ed Jan 29, 2016 @ 18:37

    Neither the Terminal or any other form of “command line intervention” is required to install a .deb package in Ubuntu. A simple “double click” of the mouse is all that’s required to install a .deb package. The manner in which many “command line centric Linux enthusiasts” instruct main stream Ubuntu end-users to employ the terminal when far simpler “point and click, cut and paste or drag and drop” options are available to them, is both patently absurd and EXTREMELY misleading. The installation procedure is virtually identical to that of installing an application that’s been downloaded to Windows.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.