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

Posted February 14, 2018 27.5k views
DigitalOceanUbuntu 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’

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.

Submit an Answer
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.

  • Thanks for finding this and posting the solution!

    I had a problem copy/pasting the code, I think the “–” character didn’t work right and should be a double dash. This is what worked for me:

    sudo dpkg --add-architecture i386
    sudo apt-get update

    Then I was getting a different dependency:

    sudo apt-get install libstdc++6:i386 libgcc1:i386 libcurl4-gnutls-dev:i386