LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-05-2010, 09:15 AM   #1
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 372
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
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
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
SebScoFr
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
gasdim
Member
 
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
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

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

Rep: Reputation: 33
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) -

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

Code:
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
lelanewb
LQ Newbie
 
Registered: Jul 2017
Posts: 1

Rep: Reputation: Disabled
success!!

Quote:
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
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,169
Blog Entries: 8

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
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
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,023

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:03 PM.

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