ubuntu newest mesa driver code example
Example: Install the latest stable version of Mesa driver in Ubuntu
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt install mesa
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt install mesa