Why can't I install the libstdc++6:i386 library on my x64 Ubuntu droplet?

I’m trying to host a game server on my DO Ubuntu x64 Droplet and it needs the libstdc++6:i386 library as a prerequisite. I had no problem installing this on my local Ubuntu x64 VM or on the Ubuntu x64 VM from another known VPS host so before I waste any of my time I’d like to know if Digital Ocean blacklists some apt packages like libstdc++6:i386.

For those interested, here is the full error message:

root@ubuntu-s-2vcpu-2gb-nyc1-01:~$ sudo apt-get install libstdc++6:i386 Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package libstdc++6:i386 E: Couldn’t find any package by regex ‘libstdc++6’

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Ok, this is my fault and I fixed it but I figured I’d leave my solution here for anyone else who happens to encounter similar problems.

TL:DR You are probably missing dependencies.

The ones I needed were as follows, yours may differe:

sudo dpkg --add-architecture i386 sudo apt-get update && sudo apt-get upgrade sudo apt-get install lib32gcc1 lib32stdc++6 libcurl4-gnutls-dev:i386

Yeah, I’m still a Linux newb and learning.