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

February 14, 2018 10.5k views
DigitalOcean Ubuntu 16.04

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’

1 Answer

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.

Have another answer? Share your knowledge.