Installing a Debian package (.deb) from terminal without using Ubuntu Software Center

In Ubuntu 17.04 Ubuntu Software Center is broken. It fails to install third party softwares from directly. Double clicking a .deb file in you file manager (Nautilus) usually opens it on Software Center. But, after that clicking the install button simply does not work.

In situations like this we need to install the package and it's dependencies via terminal.


Ubuntu Software Center is not working Ubuntu 17.04
Ubuntu Software Center is not working for third party software packages.


How to Install dot deb packages using dpkg:


Suppose we have our .deb package located on Desktop.

        $ cd ~/Desktop
       
        $ sudo dpkg -i package_name.deb
       
        $ sudo apt-get -f install
       
Notes:
        1. dpkg - Debian Package Management System. This command install the package when we use the option -i with it.
        2. The -f (--fix-broken) option of apt-get command installs the dependencies of any previously installed packages. (Fix; attempt to correct a system with broken dependencies in place.)
       
Sources:
        1. https://askubuntu.com/questions/40779/how-do-i-install-a-deb-file-via-the-command-line
        2. http://manpages.ubuntu.com/manpages/zesty/man8/apt-get.8.html

Comments

Popular posts from this blog

How to bootup your machine from the bootable ubuntu usb device in the right mode

How to create Ubuntu 18.04 bootable flash drives properly using Windows

How to Install Bootstrap Documentation Locally on Ubuntu 18.04