How to install a .deb package forcefully in Ubuntu and it’s derivatives

We all know that installing a .deb package is rather simple and most of the time a one single click can do the job. But when things break, you know those dependencies can make you cripple. So let’s find an easy solution for most of the command line lovers out there including me too, as Anglehit explains:

You can install it using

sudo dpkg -i /give/the/path/file.deb

followed by

sudo apt-get install -f

and here the -f switch stands for forceful install

You can install it using apt-get install package_name. But first move your .deb file to /var/cache/apt/archives/ directory. After executing this command, it will automatically download its dependencies.

Finally cd to the above directory and simply install, incase you still are out of luck, remove the .deb extension and install again via command line or the GUI.

By Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x