You can use apt-cache search <package name> command to see if the package is there in list of repositories configured in your Ubuntu instance. Once you find the package then install it using apt-get install <package name>. Eg: apt-get install apache2