Ideally any version of package e.g. Plots and GR_jll you used successfully in previous Julia should work in later, e.g. 1.10.3. Without updating any packages, but at least latest version of any package should work, and it should then be simple to get that latest version (and should happen if needed automatically), with all its dependencies at the latest version too.
TL;DR It worked for me out of the box, but when not Julia can trigger a special kind of hell in Linux the oom_killer (despite me having 32 GB of RAM) when precompiling, just testing for you it seemingly killed julia, but maybe a first for me and/or the whole terminal windows, with all its other tabs. And on second try it rather killed Firefox (not too unusual).
From /var/log/syslog:
May 1 14:33:21 ryksugan kernel: [11232041.146150] julia invoked oom-killer: gfp_mask=0x1100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
That was when I was trying to update to latest versions of packages.
Note, before:
(@v1.10) pkg> st -m
⌅ [28b8d3ca] GR v0.72.8
[..]
⌃ [91a5bcdd] Plots v1.39.0
i.e. you are possibly not at latest versions (and those should still work, like for me, assuming all their dependencies also at same version; and possibly you need to be running on same platform too).
This worked for me to go to latest version (but not it does NOT update dependencies like GR_jll, and you only see it with -m option above, not from the Project.toml file):
(@v1.10) pkg> add Plots@v1.40.4
This might work for you (the version I use currently):
(@v1.10) pkg> add GR_jll@v0.72.8
For me it does NOT work to go to the latest version (nor did I find a workaround):
(@v1.10) pkg> add GR_jll@v0.73.3
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package SDL2_image_jll [41f3cfe1]:
SDL2_image_jll [41f3cfe1] log:
├─possible versions are: 2.0.5-2.6.2 or uninstalled
└─restricted by compatibility requirements with Libtiff_jll [89763e89] to versions: uninstalled — no versions left
└─Libtiff_jll [89763e89] log:
├─possible versions are: 4.0.10-4.6.0 or uninstalled
└─restricted by compatibility requirements with GR_jll [d2c73de3] to versions: 4.5.1
└─GR_jll [d2c73de3] log:
├─possible versions are: 0.51.2-0.73.3 or uninstalled
└─restricted to versions 0.73.3 by an explicit requirement, leaving only versions: 0.73.3
As I stated, the current versions DID work out of the box (not installing anything since I had it from previous Julia version):
julia> @time using Plots
2.625603 seconds (1.29 M allocations: 81.508 MiB, 6.11% gc time, 1.52% compilation time)
though I think slower than before (also startup of julia itself a tiny bit slower it seems).
after updating Plots only I get:
julia> @time using Plots
1.887266 seconds (1.29 M allocations: 82.422 MiB, 8.64% gc time, 1.91% compilation time)
Before that (still strange after):
julia> @time_imports using Plots
┌ 1.0 ms SuiteSparse_jll.__init__()
43.8 ms SuiteSparse_jll 95.97% compilation time
┌ 8.8 ms SparseArrays.CHOLMOD.__init__() 95.90% compilation time
207.2 ms SparseArrays 4.06% compilation time
[..]
7.8 ms CompilerSupportLibraries_jll 90.76% compilation time
[..]
25.8 ms GR
┌ 7.2 ms Plots.__init__() 93.86% compilation time
629.7 ms Plots 1.07% compilation time
On first use, way more compiled than really needed:
153 dependencies successfully precompiled in 157 seconds. 6 already precompiled.
166.139589 seconds (7.65 M allocations: 565.616 MiB, 0.59% gc time, 1.40% compilation time)
Note the dependencies of GR_jll, and any of those might be a problem, needs updating:
[deps]
Zlib_jll = "83775a58-1f1d-513f-b197-d71354ab007a"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Fontconfig_jll = "a3f928ae-7b40-5064-980b-68af3947d34b"
Pixman_jll = "30392449-352a-5448-841d-b1acce4e97dc"
FFMPEG_jll = "b22a6f82-2f65-5046-a5b2-351ab43fb4e5"
JpegTurbo_jll = "aacddb02-875f-59d6-b918-886e6ef4fbf8"
Cairo_jll = "83423d85-b0ee-5818-9007-b63ccbeb887a"
FreeType2_jll = "d7e528f0-a631-5988-bf34-fe36492bcfd7"
Libtiff_jll = "89763e89-9b03-5906-acba-b20f662cd828"
GLFW_jll = "0656b61e-2033-5cc2-a64a-77c0f6c09b89"
JLLWrappers = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
Bzip2_jll = "6e34b625-4abd-537c-b88f-471c36dfa7a0"
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
libpng_jll = "b53b4c65-9356-5827-b1ea-8c7a1a84506f"
Qt6Base_jll = "c0090381-4147-56d7-9ebc-da0b1113ec56"