correcting the failed update of ubuntu

ctrl+alt F1

sudo dpkg --configure -a

sudo /etc/init.d/networking restart

second alternate : sudo dpkg-reconfigure -a

apt-get update --fix-missing --fix-broken

apt-get dist-upgrade --fix-missing --fix-broken -y -y