Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-05-2010, 09:15 AM   #1
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 373
Blog Entries: 2

Rep: Reputation: 32
how to install a .deb from terminal using apt-get?

So i have a .deb on my computer and i want to install it from terminal. It has dependencies so i want to you apt-get install to solve these as dpkg -i didn't deal with dependencies... i tried sudo apt-get install package.deb but that didn't work
Old 08-05-2010, 09:45 AM   #2
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I use gdebi-gtk to do that

apt-get install gdebi
or maybe its gdebi-gtk

just right-click .deb and choose "open with Gdebi"
1 members found this post helpful.
Old 08-05-2010, 09:50 AM   #3
LQ Newbie
Registered: Aug 2010
Posts: 6

Rep: Reputation: 0
Do you have to install it directly from your computer?

If it's a .deb package with dependancies it might be on an official Debian repo.

In that case an apt-get install <package_name> will do.
Old 08-05-2010, 09:57 AM   #4
Registered: Jun 2010
Location: Volos GREECE
Distribution: ubuntu derivative
Posts: 157

Rep: Reputation: 28
apt-get install is a process of a package manager and it is looking in repositories so it depends from the app. What app you want to install in order to check? Sometimes you should add another repo to install software now only the main ubuntu

Last edited by gasdim; 08-05-2010 at 09:58 AM.
Old 08-05-2010, 01:06 PM   #5
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,889
Blog Entries: 28

Rep: Reputation: 535Reputation: 535Reputation: 535Reputation: 535Reputation: 535Reputation: 535
dpkg -i then run apt-get -f install
1 members found this post helpful.
Old 08-05-2010, 01:14 PM   #6
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Rep: Reputation: 43
Neither apt-get nor aptitude can install local .deb packages. Surprising but true. You need to download (if you don't already have it) a package called gdebi (almost certainly available with) -

apt-get install gdebi
Then cd to the directory with the .deb you originally wanted to install in it, and do

gdebi ./packagename
Bob's your mothers brother.

Last edited by spoovy; 08-05-2010 at 01:17 PM.
Old 07-07-2017, 09:43 AM   #7
LQ Newbie
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled

Originally Posted by linus72 View Post
I use gdebi-gtk to do that

apt-get install gdebi
or maybe its gdebi-gtk

just right-click .deb and choose "open with Gdebi"
Thank you! I am so new to this!

I was trying to install .deb files by opening them with Xarchiver and all I got was an error message saying "Can't run the archiver executable: Failed to execute child process "ar" ".

And now I just installed something easily with gdebi! This post made my day, thank you!
Old 07-07-2017, 09:50 AM   #8
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
step 1) dpkg -i thefilename.deb

It will likely complain that the install was not complete, because of dependencies

step 2) apt-get install -f

This will find and install the dependencies, as well as the package you were trying to install.
Old 07-07-2017, 09:56 AM   #9
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
dpkg -i will probably fail with unmet dependencies. It will simply refuse. But
$ dpkg -i --force-depends package_file
will install it. Then run
$ apt-get -f install


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get with both deb and rpm abd_bela Debian 4 03-14-2010 12:06 PM
Apt screwed after attempt to install a .deb package utw-mephisto Debian 1 02-08-2007 11:46 AM
apt-get for both rpm and deb abd_bela Conectiva 1 02-16-2005 08:40 AM
Knoppix-Install Ok apt-get Deb=Modem not right suguru Debian 0 08-28-2004 02:31 PM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 01:49 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration