Required packages to build SageMath on Ubuntu
Here is the list of Ubuntu packages to install in order to build SageMath from sources (this is for Ubuntu 16.04):
In addition, it is recommended to install
pandoc (to convert Jupyter notebooks to pdf)
For more details, see the Prerequisites section of Sage Installation Guide.