@ann,
What distribution is this, Ubuntu 16.04? Do you ever get any output after entering the password? Can you try to run sudo apt-get update
outside of the fabric script and see if it completes? If it does, can you try fab install
afterwards?
Regards,
Tom