Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to install the gdebi.deb package on my computer. I need to do it manually through the terminal, but I have tried the sudo install -I package.deb but says it doesn't work because it's not a directory or something. Then I did cd /home/user/downloads/package.deb and when it changed directories I did sudo install -I package.deb but the same thing came up. I've already downloaded gdebi.deb in my downloads but need to install it through the terminal.

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

Please cd to the folder containing the .deb file and use sudo dpkg -i gdebi.deb. See the man page on dpkg for more info. If you require any more help, I'll assist further.

share|improve this answer
    
okay thank you so much! I had to change the directory to /downloads and then use the sudo dpkg and it seemed to work but it said errors were encounterd so not sure what that means –  Lyman Frandsen Jul 16 '12 at 20:06
    
This is the usual way to manually install packages; however, can you specify what warnings or errors were encountered? Often, they can be minor: in dpkg language, 'W: ...' means warnings and 'E: ...' means errors. –  user76204 Jul 16 '12 at 20:20
    
If you enter in the terminal, tail -n 30 /var/log/dpkg.log it should say 'status installed <package>' if it has been successful. –  user76204 Jul 16 '12 at 20:25
    
please do a dependency fix operation by typing sudo apt-get -f install. –  Kaktarua Jul 16 '12 at 20:35
add comment

"sudo install" isn't an appropriate command to achieve what you want.This, however, is: sudo dpkg -i package.deb

share|improve this answer
    
Always use dpkg to install off-line package. –  Kaktarua Jul 16 '12 at 20:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.