GKS problem, using Plots

Hi, I don’t have enough experience with Julia, but I was trying to make a plot and I got an error:

using Plots
gr()
plot(x,y,linetype=:scatter, leg=false)
And I get:
GKS: GDP primitive not supported for X11

I’ve tried:
ENV[“GRDIR”]=“”
Pkg.build(“GR”)

But it still doesn’t work. Could someone help me please? thx!
I’m using Ubuntu 20.04.

For any reason, you are using X11 as output device. Do you have environment variables like GKS_WSTYPE or GKSwstype set (to X11 or 211) in any of your profiles?

Please try env GKS_WSTYPE=gksqt julia