You need update the apt repository lists using:
sudo apt-get update
then try again
sudo apt-get install gparted
Also 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://git.gnome.org/gparted
cd gparted
./autogen.sh
make
sudo make install
Also 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 http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
# deb http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
apt-cache policy gparted
and adding its output to your question. The only obvious thing missing is you need to update your repository lists with the commandsudo apt-get update
before yousudo apt-get install gparted
(if you are using a 'live' environment it must be done each boot) – guiverc May 29 '18 at 09:12apt-cache policy gparted
command and output to your question. Did you get any errors with thesudo apt-get update
? – guiverc May 29 '18 at 09:18sudo apt-get update
. do you have any error with this command? – Benyamin Jafari May 29 '18 at 09:41