1) Download the package from the website manually
https://download.electrum.org/2.7.17/Electrum-2.7.17.tar.gz2) Unpack it, unpack it in Documents just for simplicity
3) Open the terminal and enter the following
cd Documents
cd Electrum-2.7.17
sudo python setup.py install
Then enter your computer password, and it should work.
If for some reason it gives error, then update the packages list with sudo apt-get upgrade
and retry.