I found a good article describing how to mine Monero coin in various Operating Systems, including Ubuntu.

https://www.monero.how/tutorial-how-to-mine-monero

Very simple and to the point.