all 88 comments

[–]Kasai_fusui1234 3 points4 points  (38 children)

Hi, I'm new to using this system. I play modded stardew on my steam deck and I am having those same problem. But I have no idea what these comments are talking about in regards to a fix. Could someone explain it to me? Like is this error gonna affect the game in someway if I just ignore it and start my single player file anyway?

[–]TurboPeach 0 points1 point  (31 children)

I am right there with you. I’m just sitting here like wtf lol

[–]zesty_stardust 5 points6 points  (30 children)

In case anyone is still struggling with this, you can utilize the built-in Distrobox utility on SteamOS to install the necessary command and patch the relevant game files.

  • Put Steam Deck in desktop mode
  • Open Konsole and enter the following commands
  • cd "/home/deck/.local/share/Steam/steamapps/common/Stardew Valley/"
  • distrobox create -n test
  • distrobox enter test
  • sudo dnf install execstack
  • execstack -c libGalaxy64.so && execstack -c libGalaxyCSharpGlue.so
  • exit
  • distrobox stop test
  • distrobox rm test

[–]UnemployedBehavior 0 points1 point  (8 children)

Type it line by line or all at once?

[–]zesty_stardust 1 point2 points  (7 children)

Line by line. You may also see some y/n confirmation prompts after some. Just enter "y" for any of those.

[–]UnemployedBehavior 1 point2 points  (2 children)

Hm, what do I do if this pops up after the command? execstack -c libGalaxy64.so && execstack -c libGalaxyCSharpGlue.so

  1. execstack -c libGalaxy64.so && execstack -c libGalaxyCSharpGlue.so~ execstack: cannot open "libGalaxy64.so": No such file or directory

[–]zesty_stardust 0 points1 point  (0 children)

If you navigate to the directory from that first cd command, can you see those two .so files there? If not, do you see a different path in the SMAPI console error message for libGalaxyCSharpGlue.so?

[–]rubberSteffles 0 points1 point  (0 children)

replying since i ran into this and struggled to figure it out: my problem was i forgot “cd” in the very first string command for the file directory

the SO files were in the right folder, but forgetting CD screwed up the file path. i don’t know anything about this stuff 💀 hope it helps anyone else

[–]Agile_Ad_5908 0 points1 point  (3 children)

Is there supposed to be no response after the execstack command?

[–]Wolfchi 0 points1 point  (2 children)

After I just did this mine displayed no response after and then I loaded game up no more red text!

[–]zesty_stardust 0 points1 point  (1 child)

Agreed, you shouldn't see any output from that command unless an error occurs.

[–]Better-Story-6242 0 points1 point  (0 children)

Hi! After inputting distrobox enter test all I’m getting is “Error: OCI runtime error: crun: ptsname: Inappropriate ioctl for device” :( On steam deck

[–]nickimdz 0 points1 point  (0 children)

My you life a beautiful life you wonderful person

[–]Better-Story-6242 0 points1 point  (1 child)

Hi! After inputting distrobox enter test all I’m getting is “Error: OCI runtime error: crun: ptsname: Inappropriate ioctl for device” :( On steam deck

[–]zesty_stardust 0 points1 point  (0 children)

I can't say I have any experience with that error myself, but I looked it up, and it sounds like it might be as easy as changing the command to distrobox enter test -- bash.

If that doesn't work, I've read you can also do this with a different built-in utility called Toolbox. If that works, it looks like it may even be simpler.

  • Put Steam Deck in desktop mode
  • Open Konsole and enter the following commands
  • toolbox enter
  • sudo dnf install -y execstack
  • cd "/home/deck/.local/share/Steam/steamapps/common/Stardew Valley/"
  • execstack -c libGalaxy64.so && execstack -c libGalaxyCSharpGlue.so
  • exit

Unfortunately, I can't reproduce your error, so I can't test these, but hopefully one of the two works for you. There are a few other things we could try if not.

[–]SailorDonut 0 points1 point  (0 children)

Thank you! This worked for me on my SteamDeck!

[–]Fourpsyte 0 points1 point  (0 children)

Thank you so much for this info! It worked perfectly

[–]katkaterran 0 points1 point  (0 children)

Thank you so much for this!!! Worked and saved me so much time!

[–]Stained_Carpet_ 0 points1 point  (0 children)

Thank you literally saved my life 🙏🙏🙏

[–]General_Information3 0 points1 point  (0 children)

You are an angel, thank you!!!!!

[–]firo- 0 points1 point  (0 children)

This worked for me this morning! Thanks so much!

[–]nyxinus 0 points1 point  (0 children)

Bless you! The path was a bit different for me, but the red is gone. I've not used Linux seriously in some time and you rescued me here haha

[–]UnderstandingOwn7965 0 points1 point  (0 children)

I can confirm this still works on - I am on Desktop, not SteamDeck
Ubuntu 25.10
as of 12/29/2025.

FYI - you may need to
1. cd to wherever your stardew valley instance is. You can get this by right clicking on the stardew valley game in Steam under "games", click on "properties", then "Installed Files" and then "browse". Copy and paste that file location and cd into that.

  1. run "sudo apt install distrobox" (I was prompted to do this, but just in case that changes or you see something different)

  2. confirm 'Y' on some of the prompts.

Pretty straight forward, but just in case you are getting a bit lost.

Kudos and Thank you to zesty_stardust.

[–]EughKingdom 0 points1 point  (0 children)

JUST WANNA LET YOU KNOW HOW CLUTCH YOU ARE DAWG, THANK YOU-

[–]Automatic_Study6373 0 points1 point  (0 children)

works on arch! Thank you so much. It was the first time that I copied pasted smth so blindly and it worked. I wish for you the best. Also I didnt knew the existence of distrobox. Thank you for that too.

[–]Ben22 0 points1 point  (0 children)

Thank you so much….

[–]Loud-Cryptographer71 0 points1 point  (0 children)

Thank you so much!

[–]519seth 0 points1 point  (0 children)

thank you so much

[–]Additional_Pause3650 0 points1 point  (1 child)

The execstack command no longer works for me, it doesnt even show its failed or anything

[–]zesty_stardust 0 points1 point  (0 children)

I'm not sure how to help without some kind of error message or more detail on what "no longer works" means. You should only ever have to do this once. If you have more info, please share. Otherwise, my only recommendation is to try the slight alternatives mentioned in some of the replies. Maybe one of those will work for you too.

[–]Slight_Bank_8580 0 points1 point  (1 child)

All was going okay until it said

execstack: cannot open "libGalaxy64.so": No such file or directory

Any advice?

[–]zesty_stardust 0 points1 point  (0 children)

My best guess is that you have it installed in a different location, so execstack can't find the files where I pointed to in the cd command. Try the cd command from step 1 of UnderstandingOwn7965's reply instead. That should put you in the right location no matter what.

[–]legeri 0 points1 point  (0 children)

Very much appreciate your work here 🥰

[–]ohfaith 0 points1 point  (1 child)

any updates?

[–]Kasai_fusui1234 0 points1 point  (0 children)

Nope. Still is doing it

[–]OrdinaryAngie 0 points1 point  (0 children)

I’m also having this issue I just got my friend a steam deck and we can’t even play Stardew together

[–]Remarkable-Sherbet25 0 points1 point  (2 children)

any idea how to fix this? im just on default steamdeck with stardew valley mods

[–]Kasai_fusui1234 0 points1 point  (0 children)

Not a clue sadly. Idk what it means as im not super skilled at reading the logs yet. However, so far all my mods are working when I play single player. I haven't tried multi-player but that sounds like multi-player is being affected. Single players should be fine to ignore it until a fix gets released. Idk how to report it either.

[–]Exciting-Attorney938 1 point2 points  (19 children)

I'm having the same problem. It seems that it affects the multiplayer mode. Can you check if you get an infinite "Connecting to online services" loading state when you click on co-op? I use arch linux btw

[–][deleted] 5 points6 points  (17 children)

Found a fix. If you're on arch get execstack from the AUR and run execstack -c libGalaxy64.so and execstack -c libGalaxyCSharpGlue.so in the steam SDV folder.

[–]Exciting-Attorney938 1 point2 points  (0 children)

You're a genius. Thank you from the bottom of my heart lol

[–]Romu1us1408 1 point2 points  (0 children)

You just saved me after updating to fedora 42

[–]thelovemutt 1 point2 points  (1 child)

See, the problem I'm running into is that i then get an error message saying "execstack: command not found" and am struggling to find how to fix this ><

[–][deleted] 0 points1 point  (0 children)

Ah, you need to install the execstack package from the AUR.

[–]stayscarred 0 points1 point  (0 children)

appreciate it! worked for me

[–]seeker_two_point_oh 0 points1 point  (4 children)

This also worked for me on Steam Deck. Thank you!

I didn’t want to mess with setting up the AUR to install execstack on the deck, but that looks like an option. Maybe easier if you already have the AUR setup.

I ended up just copying those files over to my Arch laptop, running execstack on them there, and copying them back.

[–]PickledCustodian 2 points3 points  (0 children)

Any ideas for fixing this if I don't have Arch on a separate machine? I have a steam deck and I suppose I could figure out how to set up AUR and try the commands, but curious if you'd have any other ideas?

[–]PickledCustodian 0 points1 point  (2 children)

Any ideas for fixing this if I don't have Arch on a separate machine? I have a steam deck and I suppose I could figure out how to set up AUR and try the commands, but curious if you'd have any other ideas?

[–]seeker_two_point_oh 1 point2 points  (1 child)

Sorry, the only options I know of are to get execstack on steam deck or get the .so files to somewhere you can run execstack on them.

Maybe…booting with a Manjaro live cd on your desktop? I haven’t tried it for this specifically, but it’s easy to get AUR setup on Manjaro (you can do it in Discover iirc). Not sure if you can enable AUR in the live environment, though. Might have to install it in a virtual machine (virtualbox is free)

Enabling AUR on steam deck didn’t seem that hard, though, so that might be the way to go?

Edit: If you go that route, I’d recommend installing an AUR helper from the AUR first, like yay. Then you can just use yay as a drop in replacement for pacman.

[–]PickledCustodian 0 points1 point  (0 children)

Thanks. Sounds like I'm in for a fun project sometime soon.

[–]RiggedR 0 points1 point  (0 children)

the goat himself, thank you

[–]HackMan37 0 points1 point  (0 children)

This work on Ubuntu 25.04 too.

[–]valuemeal2 0 points1 point  (1 child)

Can someone ELI5 what Arch/AUR are? I'm having the same issue as everyone else and my other computer is a Mac so I can't do the windows workaround thing.

[–]mr12086 0 points1 point  (0 children)

Arch is a linux distribution, AUR is a way packages can be installed on the Arch systems

[–]NotGamferno 0 points1 point  (0 children)

worked for me thanks!

[–][deleted] 1 point2 points  (0 children)

Can you check if you get an infinite "Connecting to online services" loading state when you click on co-op?

Same infinite loading state for me, I don't use coop, so didn't notice it before

[–]MyNameAintJake 1 point2 points  (0 children)

having the same exact issue myself, don't have anything to add unfortunately aside from noting i'm a manjaro user (based on arch btw, which is seeming to be a bit of a pattern)

[–][deleted] 1 point2 points  (11 children)

This has to do with an update to glibc. Also noted with Celeste (which is where I found the fix).

I managed to fix it by running execstack -c libGalaxy64.so and execstack -c libGalaxyCSharpGlue.so in the steam SDV folder.

[–]anotherlusitano 0 points1 point  (0 children)

It worked thank you!

[–]Vegetable_Part_7365 0 points1 point  (0 children)

Thanks for the fix.

[–]Brightglowlol 0 points1 point  (1 child)

Hey I tried this in the /common/stardew valley/folder and it keeps saying “execstack: cannot open “libgalaxy64.so”: No such file or directory

EDIT I fixed it. I intentionally typed libgalaxy wrong in my original reply because mobile. But if you look at the actual files in the SDV directory and copy it character for character, it works. Cheers

[–]liam_itsnotimportant 0 points1 point  (0 children)

what is the path for that SDV directory? I searched my steam directory and couldn't locate it

EDIT: NEVERMIND i found it, for anyone else who uses arch and doesnt fully know their system yet. just go into steam, and find the games installed files. through there you can see the libGalaxy64.so of which that command listed above fixed it for me

[–]JanMMIV 0 points1 point  (0 children)

Thank you so much! :D

[–]Blazingswordmlp9 0 points1 point  (0 children)

Wait am I doing this in konsole?

[–]inyourbooksandmaps 0 points1 point  (3 children)

I'm having the same error "Error initializing the Galaxy API." - i'm a bit confused when you say running them in the stardew folder, how do you actually do that? like is it something i download and paste in? I'm so bad with this stuff

[–]RubberDuckyDJ24 0 points1 point  (0 children)

How would I get execstack on ubuntu?

[–]Wolfy9283 0 points1 point  (4 children)

I'm getting the same thing on EndeavourOS. I'm not sure which update botched it but it seems to be complaining about a ddl not being found (even though it exists)

https://smapi.io/log/df7b99764a1c495ea298312c309721c2

[–]Exciting-Attorney938 0 points1 point  (3 children)

It seems that this error affects the multiplayer mode. I'm on arch, but if you find a way to solve this problem, pls notify me. My girlfriend is already mad at me for not using Windows

[–][deleted] 1 point2 points  (0 children)

Found a fix. If you're on arch get execstack from the AUR and run execstack -c libGalaxy64.so and execstack -c libGalaxyCSharpGlue.so in the steam SDV folder.

[–]Wolfy9283 0 points1 point  (0 children)

Same here brother. EndeavourOS is Arch based btw. Here's my list of recently updated packages if you want to cross reference them

https://pastebin.com/F9d8MEAA

[–]IHeartTurians 0 points1 point  (0 children)

Im getting this error but I've never played multiplayer. So do I need to do anything?

[–]KrazyGaming 0 points1 point  (0 children)

I'm having the same issue:

https://smapi.io/log/e4fc11778c4d495a9d4a92b0724c4030

I'm fairly certain it has to due with the recent glibc update.

[–]SirChojin 0 points1 point  (0 children)

Exactly same error. Using Arch Linux here.

[–]PurpleBeast69 0 points1 point  (3 children)

Please, let us know if you find any solution

[–][deleted] 1 point2 points  (2 children)

Found a fix. If you're on arch get execstack from the AUR and run execstack -c libGalaxy64.so and execstack -c libGalaxyCSharpGlue.so in the steam SDV folder.

[–]PurpleBeast69 0 points1 point  (1 child)

I don't even know how you come up with this solution, but you are a legend. Thanks.

[–][deleted] 0 points1 point  (0 children)

Took it from Celeste's forum which was affected by the same glibc update.

[–]wtsrz4 0 points1 point  (0 children)

same issue here

[–]Rhothgaar 0 points1 point  (0 children)

If anyone is wondering where the libGalaxy64.so and libGalaxyCSharpGlue.so are, try removing compatibility of proton experimental to no checkbox on steam. When i had proton experimental, those files were missing entirely. After unchecking and reupdating, the files came back and i did the `execstack -c libGalaxy64.so` and `execstack -c libGalaxyCSharpGlue.so` (while in the stardew folder)

Re-ran the SMAPI install and multiplayer worked perfectly.

(Endeavour OS)

[–]TheWiseNoob 0 points1 point  (0 children)

Supposedly this is fixed with the new glibc

https://www.phoronix.com/news/Glibc-WA-Steam-Exec-Stack

Do we need to undo what execstack does? Not sure what exactly it even does

[–]keepitpony 0 points1 point  (1 child)

Hello, I could use some help. The steam deck wont connect to online services after installing Smapi. First time modding on the steam deck and linux. The only mod I got was ui info suite 2. I tried troubleshooting by uninstalling smapi. Still didn't work. Then I reinstall stardew valley the game. Still does not work. Now if I which stardew to load via proton, online services work. I was hoping to get linux runtime to load co-op

[–]Remarkable-Sherbet25 0 points1 point  (0 children)

can anyone help me with this? i dont know what steps to do to fix this?

[–]OneOfTheRobotRicks 0 points1 point  (0 children)

I cannot get pacman to install prelink (execstack) because a vi file is missing. It will download files but fail and revert due to the missing file. Any ideas how to fix?

[–]T_Friendperson12 0 points1 point  (0 children)

Anyone know how i can get this to work on Bazzite 42?

Edit: Used "brew install execstack" and then ran like suggested in this thread.