When I used the command following output is showing.
$ sudo apt-get install gparted
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gparted
$ apt-cache policy gparted
N: Unable to locate package gparted 12 3 Answers
You need update the apt repository lists using:
sudo apt-get update then try again
sudo apt-get install gpartedAlso you can install Gparted from the source. To do so, run the following commands in Terminal:
sudo apt-get build-dep gparted
sudo apt-get install git gnome-common
git clone git://
cd gparted
./autogen.sh
make
sudo make installAlso if none above works please check your /etc/apt/sources.list or try to change to main server and then run again: sudo apt update
default apt source list:
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb xenial main restricted universe multiverse
deb-src xenial main restricted universe multiverse
deb xenial-updates main restricted universe multiverse
deb-src xenial-updates main restricted universe multiverse
deb xenial-backports main restricted universe multiverse
deb-src xenial-backports main restricted universe multiverse
deb xenial-security main restricted universe multiverse
deb-src xenial-security main restricted universe multiverse
# deb xenial-proposed main restricted universe multiverse
deb xenial partner
deb-src xenial partner sudo apt-get install gpartedThe above command should work fine. If it's not, you can download the file and do it manually also.
This question addresses the same problem that you have, you can have a look at "Unable to locate package" while trying to install packages with APT.
0Just use the apt command like this:
$ sudo apt install gpartedThat should work, let us know.