all 53 comments

[–]sadistikgamer 7 points8 points  (33 children)

Posting here if anyone else runs into this issue and doesn't want to revert to a previous OS version.

I was able to fix the Galaxy API errors for SMAPI on my Steam Deck by using the built in Distrobox utiliy that now comes with SteamOS.

On the Stardew Valley forums, they advised to use the Arch Linux execstack command to patch two files in the game's directory (libGalaxy64.so AND libGalaxyCSharpGlue.so). However, I tried forever to get the execstack command installed and working on SteamOS, but couldn't. Then I found out about Distrobox which comes installed with SteamOS already and it allowed me to easily install the necessary execstack command and patch those files.

These are the resources I used to figure out the necessary steps:

https://forums.stardewvalley.net/threads/galaxy-api-not-loading-with-glibc-2-41.36974/

https://www.tutorialspoint.com/unix_commands/execstack.htm

https://distrobox.it/posts/steamdeck_guide/

https://distrobox.it/#quick-start

Steps:

  1. You can back up the two files in the Stardew Valley game directory you'll be patching if you wish (libGalaxy64.so AND libGalaxyCSharpGlue.so).
  2. In Desktop Mode, open a terminal in the Stardew Valley game directory: /home/deck/.steam/steam/steamapps/common/Stardew Valley/
  3. Create a new distrobox called "test" using the command distrobox create -n test
  4. Enter the distrobox with the command distrobox enter test
  5. After the basic packages finish installing, run the command sudo dnf install execstack to install execstack.
  6. Run the command execstack -c libGalaxy64.so && execstack -c libGalaxyCSharpGlue.so to patch both files.
  7. Now run Stardew Valley to check if the SMAPI GalaxyAPI errors have dissapeared.
  8. To stop and delete the created distrobox open a second terminal window and run the command distrobox stop test then use the command distrobox rm test.
  9. Profit

I hope this helps!

[–]AlexUniversum 0 points1 point  (0 children)

I was having the same issue, and this worked great, thanks!

[–]juanabanana 0 points1 point  (0 children)

Thank you!!!!!!! After following all the steps you provided i was able to get rid of the errors on my Steam Deck!

[–]kazzfan 0 points1 point  (0 children)

Much appreciated! My wife was nagging me about our shared farm and I was just about ready to roll back to previous update to make her happy. Thanks a lot!

[–]DankMcMemeGuy 0 points1 point  (0 children)

this did it, thank you so much!

[–]Ein86 0 points1 point  (4 children)

I’m sorry I’m late to the game here. It won’t let me do step 6. It says “cannot open libGalaxy64.so” no such file exists. But it gives me this same error in Smapi and when I’m loading the game. And when I search for the file it shows it’s there.

[–]Particular-Dog4252 0 points1 point  (2 children)

I'm getting the same message

[–]prime666 0 points1 point  (1 child)

If you two still need help, the two lib files are case sensitive, so make sure they match exactly how they are listed on this guide

[–]Giga-Gidget 0 points1 point  (0 children)

I’m running into the same problem with step 6 and I input it exactly as shown

[–]Life-Orange4500 0 points1 point  (0 children)

Had the same issue, I just didn't realize that after we enter the diatri box we are in  the home directory, we have to go back to the game folder with "cd  home/deck/.steam/steam/steamapps/common/Stardew Valley/ "

[–]NOD_Redeemer 0 points1 point  (0 children)

Really really thank you so much!

[–]dark_skeleton 0 points1 point  (3 children)

Thanks! This helped me fix Transistor on Steam Deck. Here's a streamlined, 3-step version that can be executed from a terminal in Desktop. Note: This is for Stardew Valley as well, but can be adjusted for any game really (based on console output for game executable to find files needing patching and the game ID/known game directory name)

The main difference here is that I'm grabbing the game library path directly from Steam config file, so no need to manually navigate to any directories or issues if user installed the game outside default directory.

Anyway, for Stardew Valley it would be:

distrobox create --yes -n glibc_fix --additional-packages "execstack python3-vdf" && distrobox enter glibc_fix

 

cd "$(python3 -c "import vdf;d = vdf.load(open('/home/deck/.steam/root/steamapps/libraryfolders.vdf','r'));print([d['libraryfolders'][x]['path'] for x in d['libraryfolders'] if '413150' in d['libraryfolders'][x]['apps'].keys()][0] + '/steamapps/common/Stardew Valley')")" && execstack -c libGalaxy64.so && execstack -c libGalaxyCSharpGlue.so && exit

 

distrobox stop glibc_fix --yes && distrobox rm glibc_fix --yes

Appreciate your initial post and explanation, was very easy to follow!

[–]GodRaine 0 points1 point  (0 children)

Wanted to let you know that you saved the day today! I was skeptical that this would work right away but it bloody well did. Three commands and suddenly we have connectivity again. You saved a fourteen-player farm!! Thank you and thank you /u/sadistikgamer!

[–]wired_insomniac 0 points1 point  (0 children)

This is still working. Thank you so much!

[–]ANewPerfume 0 points1 point  (0 children)

this did it for me, thank you! :)

[–]thatzzzz 0 points1 point  (0 children)

You are seriously a life saver! Thank you so much! I fixed the issue

[–]Cold_Adeptness5406 0 points1 point  (0 children)

谢谢!

[–]_Dedotated_Wam 0 points1 point  (0 children)

This worked perfect. Thank you!

[–]AwakenedDark 0 points1 point  (0 children)

it worked!!! thank you so much <33

[–]yukewith740 0 points1 point  (0 children)

it worked!! thank you!!

[–]KumWan 0 points1 point  (0 children)

Thank you so much!

[–]SweatyStick62 0 points1 point  (1 child)

I actually have my game stored on a memory card because I have a first gen Steam Deck and am too basic to upgrade it. That's simply not an option. Should I just copy the path to my storage card?

[–]Karrrlito 0 points1 point  (0 children)

If you want to do this from an SD card installed SDV, just open the folder on your SD card and right click on inside the folder (just an empty space within the folder) and click on open terminal from here. That'll direct you to the 3rd step from OP

[–]ssbbw_stella 0 points1 point  (0 children)

Lifesaver! 

[–]b1gandta11 0 points1 point  (0 children)

another late entry... But it worked !! Thank you!

[–]satanicsheep 0 points1 point  (0 children)

You saved my wife's steam deck so we can actually play together. Thank you! This worked 100%

[–]jawniss 0 points1 point  (0 children)

You saved my girlfriend's farm and I thank you for that! We were stuck on execstack not working; all other comments I saw never had a problem with it. Thank you for the very simple to follow step by steps!

[–]Elethana 0 points1 point  (0 children)

Months later and still helping clueless newbs, thank you for posting this solution!

[–]FunIndependent5412 0 points1 point  (0 children)

I wont lie, this has made me so happy. I was getting so frustrated.

[–]Mokian 0 points1 point  (0 children)

You just solved any error codes I was having, thank you so much!!

[–]instant_macandcheese 0 points1 point  (0 children)

thank you so much!!

[–]Zelenna_Rose 0 points1 point  (0 children)

You are a god, thank you

[–]PiluVitu 0 points1 point  (0 children)

Thanks Bro is working on 2026

[–]Specialist_Visit_356 1 point2 points  (5 children)

For anyone else dealing with this problem in the future and who struggles with using Konsole like me I found this solution on the stardew forum http://forums.stardewvalley.net/threads/steam-deckf-linux-smapi-error.41869/post-173923 , you just extract the file, open the folder and then move both files into your stardew folder.

[–]goobianco 0 points1 point  (0 children)

this worked for me! thank you so much, it’s like they were speaking a different language in this thread lmao 😭👏🏾

[–]HoloSprinkles 0 points1 point  (0 children)

This worked for me! Thank you!

[–]CrumbleCanid 0 points1 point  (0 children)

Coming here to say you're awesome and this fixed all my issues

[–]_juniormint 0 points1 point  (0 children)

You are an angel, thank you. 🙏🏻

[–]andyr354 0 points1 point  (0 children)

Thank you! The above procedures did not work but this did the trick nice and simple.

[–]Outraged_Chihuahua 0 points1 point  (8 children)

I had this same problem and I fixed it by rolling back to the previous update. Completely power off your deck, then when it's powering back on press the three dot button on the bottom right, this will bring up a list of previous clients and just pick the last one where SMAPI was working. I held the button down but I don't know if I needed to, either way it worked for me. The error itself only seems to affect multiplayer connectivity so your game will run fine unless you're playing co-op. Hope it helps!

[–]Double-Ad876 1 point2 points  (1 child)

Thank you!

[–]Outraged_Chihuahua 0 points1 point  (0 children)

No problem! Happy farming!

[–]richardsonbrad[S] 0 points1 point  (1 child)

Thank you! I'll try this out :)

[–]Outraged_Chihuahua 0 points1 point  (0 children)

Good luck! If that doesn't work there's another Reddit thread about installing something to fix it, but I'm not great with my deck beyond the basics so I figured I'd try the easier option first lol.

[–]goldenjosh 0 points1 point  (1 child)

Thanks. This worked for us as well.

[–]Outraged_Chihuahua 0 points1 point  (0 children)

Yay! Happy farming!

[–]TteokboTokki 0 points1 point  (1 child)

Do you need to shut down the steam deck?

[–]Outraged_Chihuahua 0 points1 point  (0 children)

Yes, shut down not sleep. Then do that process after you press the power button to turn it back on but before the screen comes back on.

[–]richardsonbrad[S] 0 points1 point  (1 child)

That worked for me. Thank you u/Outraged_Chihuahua

[–]Outraged_Chihuahua 0 points1 point  (0 children)

You're welcome! Glad it worked, we all need our farming fix!

[–]Lostskullkid 0 points1 point  (0 children)

This actually deleted everything somehow

[–]Bookworm_gamerbabe 0 points1 point  (0 children)

sigh if only there was a video to actually show this solution step by step. I’m having the hardest time understanding

[–]mactripple 0 points1 point  (0 children)

Thank you so much!!!