: Ensure your system knows about the latest versions: sudo apt update

For most users, the standard repository is the best choice as it handles all dependencies and provides automatic updates. : Press Ctrl + Alt + T .

If you need the absolute latest features (like those found in version 6.0.4) that may not yet be in your specific Ubuntu version's repository, you can compile it yourself. Installing Gnuplot 5.0 on Ubuntu