Installing And Using Unzip On Ubuntu

Installing applications on Ubuntu is pretty straightforward. But sometimes you may get some errors while installing some applications on Ubuntu. Recently, I was installing unzip on Ubuntu and got the error “unable to locate package unzip“. And then I searched for a workaround.

Installing Unzip On Ubuntu

The simplest method is to use the app-get method.

sudo apt-get install unzip

If unzip gets installed then stop here. But if it throws some error then try the following commands.

sudo apt-get update

The above command will update the sources list

sudo apt-get upgrade

The command above will upgrade all the packages.

sudo apt-get install unzip

Now run the above command for installing unzip. It will most probably install this time. If it still returns an error, then comment with error below.

Using The Unzip Command On Ubuntu

sudo unzip /var/wp-content.zip -d /var/www/

The above command will unzip the file “wp-content.zip” located at “/var/” to the folder “/var/www/”. Make sure the paths are correct before running the unzip command on Ubuntu.

Related Post