How do I upgrade from Terminal? Answer
After launching the terminal, update your system to fix all the broken dependencies and links so that you can conveniently upgrade your system. The Ubuntu system can be updated by running the command $ sudo apt-get update.