1. In the terminal type the command:

    sudo apt-get update
    

    The above command downloads the package lists from the repositories and updates all packages to get information for the newest versions of packages and their dependencies.

  2. Now install the Ubuntu Desktop package and it’s dependencies

    sudo apt-get install ubuntu-desktop