That result is tbe., because you very likely don't have installed
the numerous -dev packages of ubuntu that gnuplot needs to build all
the fancy interactive terminals. See e.g. here
https://stackoverflow.com/questions/29526044/installing-gnuplot-5-0-on-ubuntu/31819448#31819448
> I tried to remove the gnuplot by using the commang 'sudo apt remove gnuplot' and 'sudo apt-get purge --auto-remove gnuplot' and then tried to install gnuplot using the command 'sudo apt-get install gnuplot-qt', but event after all these my gnuplot is still showing terminal set to unknown.
These commands, as already mentioned in another post, did _not_
un/install the gnuplot you compiled by yourself, but a previous,
precompiled version that you had installed via ubuntu's package
manager (the executable should be in /usr/bin, you can run it from
there).
When looking for an executable, your shell inevitably first finds
the one you compiled yourself (it's located in /usr/local/bin or
such place), and doesn't look any further. I believe if you go back
into the source folder, and type "make uninstall", it gets removed.
Or you can delete it by hand.
So there are two possibilities: You either go back to ubuntu's stock
gnuplot package, or you re-compile from the sources as explained in
the link above.
Good luck!
Karl