how to install a .deb from terminal using apt-get?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.