STEAM GROUP
Linux Game Server Managers linuxgsm
STEAM GROUP
Linux Game Server Managers linuxgsm
53
IN-GAME
585
ONLINE
Founded
February 9, 2015
StealthGnome Jul 30, 2015 @ 12:16am
Cant find libstdc++6:i386 on 64bit Ubuntu docker container when setting up for CSGO
When running `dpkg -l | grep libstdc++`
the following is outputted.
ii libstdc++6:amd64 4.8.4-2ubuntu1~14.04 amd64 GNU Standard C++ Library v3

Is the i386 version required?
Last edited by StealthGnome; Jul 30, 2015 @ 12:16am
< >
Showing 1-14 of 14 comments
Mazer Jul 30, 2015 @ 4:49am 
Yes.

From the installation instructions[gameservermanagers.com] for amd64 Ubuntu:
sudo apt-get install tmux mailutils postfix lib32gcc1 libstdc++6 libstdc++6:i386

You'll need to have it present in your container.
Last edited by Mazer; Jul 30, 2015 @ 6:00am
StealthGnome Sep 26, 2015 @ 2:56pm 
Turns out i needed to `sudo dpkg --add-architecture i386` and `sudo apt-get update`
Mazer Sep 26, 2015 @ 9:14pm 
Originally posted by StealthGnome:
Turns out i needed to `sudo dpkg --add-architecture i386` and `sudo apt-get update`
You point out a valid omission in the instructions (which used to be there on the old site). While the Debian HowTo specifically provides the i386 architecture addendum for the amd64 platforms, the Ubuntu guide omitted it.
roman Feb 8, 2016 @ 1:02pm 
Hi, Im running Ubunto 12.1 64 bit. Im having problem with this:

[ WARN ] Starting csgo-server: Checking dependencies: Dependency missing: libstdc++6:i386

Info! csgoserver does not have sudo access. manually install dependencies

sudo dpkg --add-architecture i386; sudo apt-get install libstdc++6:i386

I run the commands but:

$ 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
E: Couldn't find any package by regex 'libstdc++6'


what can i do?
roman Feb 8, 2016 @ 1:20pm 
I check on google! and do everything! I add the i386 arquitecture, checked the sources.
Mazer Feb 8, 2016 @ 5:46pm 
Have you issued:
sudo dpkg --add-architecture i386 sudo apt-get update # <--- This command is missing from your list above sudo apt-get install libstdc++6:i386
roman Feb 9, 2016 @ 9:56am 
YES! already done it.

$ 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
E: Couldn't find any package by regex 'libstdc++6'
Mazer Feb 9, 2016 @ 9:57am 
Can you post the output of the 2nd command above, and link here? "sudo apt-get update"
roman Feb 9, 2016 @ 3:29pm 
Last login: Tue Feb 9 23:00:13 2016 from 181.28.63.40
$ sudo apt-get update
[sudo] password for admincounter:
Get:1 http://security.ubuntu.com wily-security InRelease [64.4 kB]
Hit http://azure.archive.ubuntu.com wily InRelease
Get:2 http://azure.archive.ubuntu.com wily-updates InRelease [64.4 kB]
Get:3 http://security.ubuntu.com wily-security/main Sources [28.8 kB]
Get:4 http://security.ubuntu.com wily-security/restricted Sources [2,854 B]
Hit http://azure.archive.ubuntu.com wily-backports InRelease
Get:5 http://security.ubuntu.com wily-security/universe Sources [7,420 B]
Get:6 http://security.ubuntu.com wily-security/multiverse Sources [1,930 B]
Get:7 http://security.ubuntu.com wily-security/main amd64 Packages [91.0 kB]
Get:8 http://security.ubuntu.com wily-security/restricted amd64 Packages [10.9 kB]
Get:9 http://azure.archive.ubuntu.com wily-updates/main Sources [47.6 kB]
Get:10 http://security.ubuntu.com wily-security/universe amd64 Packages [38.1 kB]
Get:11 http://security.ubuntu.com wily-security/multiverse amd64 Packages [5,896 B]
Get:12 http://azure.archive.ubuntu.com wily-updates/restricted Sources [3,741 B]
Get:13 http://azure.archive.ubuntu.com wily-updates/universe Sources [12.8 kB]
Get:14 http://azure.archive.ubuntu.com wily-updates/multiverse Sources [1,923 B]
Get:15 http://azure.archive.ubuntu.com wily-updates/main amd64 Packages [128 kB]
Get:16 http://azure.archive.ubuntu.com wily-updates/restricted amd64 Packages [13.3 kB]
Get:17 http://azure.archive.ubuntu.com wily-updates/universe amd64 Packages [55.6 kB]
Get:18 http://azure.archive.ubuntu.com wily-updates/multiverse amd64 Packages [5,903 B]
Hit http://azure.archive.ubuntu.com wily-backports/restricted Sources
Hit http://azure.archive.ubuntu.com wily-backports/multiverse Sources
Hit http://azure.archive.ubuntu.com wily-backports/restricted amd64 Packages
Hit http://azure.archive.ubuntu.com wily-backports/multiverse amd64 Packages
Hit http://azure.archive.ubuntu.com wily/main Sources
Hit http://azure.archive.ubuntu.com wily/restricted Sources
Hit http://azure.archive.ubuntu.com wily/universe Sources
Hit http://azure.archive.ubuntu.com wily/multiverse Sources
Hit http://azure.archive.ubuntu.com wily/main amd64 Packages
Hit http://azure.archive.ubuntu.com wily/restricted amd64 Packages
Hit http://azure.archive.ubuntu.com wily/universe amd64 Packages
Hit http://azure.archive.ubuntu.com wily/multiverse amd64 Packages
Hit http://azure.archive.ubuntu.com wily-backports/main Sources
Hit http://azure.archive.ubuntu.com wily-backports/universe Sources
Hit http://azure.archive.ubuntu.com wily-backports/main amd64 Packages
Hit http://azure.archive.ubuntu.com wily-backports/universe amd64 Packages
Fetched 585 kB in 8s (69.8 kB/s)
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/wily/InRelease Unable to find expected entry 'main/binary-foreign-architecture/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/wily-updates/InRelease Unable to find expected entry 'main/binary-foreign-architecture/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/wily-backports/InRelease Unable to find expected entry 'main/binary-foreign-architecture/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/wily-security/InRelease Unable to find expected entry 'main/binary-foreign-architecture/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
UltimateByte Feb 9, 2016 @ 4:03pm 
When did you get your script ?
There was a fix recently, for that specific issue.
Can you run ./yourservername update-functions , and see what happens ?
Mazer Feb 9, 2016 @ 4:34pm 
It doesn't look like you actually succeeded in adding the i386 architecture based upon the output from your dump above.

If you had, you would have entries like this in your "apt-get update" command (note the "i386" in the package Hit):
Hit http://us.archive.ubuntu.com wily/main i386 Packages
and all that you're showing are the amd64 architecture packages. This is why your libstdc++6 installation is failing.


Could you please do the following (as root) and post the results:
cat /etc/issue dpkg -l | grep libstdc++ dpkg --print-architecture dpkg --print-foreign-architectures
For a reference, here's what I get:
root@fireant:~# cat /etc/issue Ubuntu 14.04.3 LTS \n \l root@fireant:~# dpkg -l | grep libstdc++ ii libstdc++-4.8-dev:amd64 4.8.4-2ubuntu1~14.04 amd64 GNU Standard C++ Library v3 (development files) ii libstdc++6:amd64 4.8.4-2ubuntu1~14.04 amd64 GNU Standard C++ Library v3 ii libstdc++6:i386 4.8.4-2ubuntu1~14.04 i386 GNU Standard C++ Library v3 root@fireant:~# dpkg --print-architecture amd64 root@fireant:~# dpkg --print-foreign-architectures i386

If you don't see the i386 listed in the foreign architectures, we have found the problem.

The fix would be:
dpkg --add-architecture i386
After that, do an apt-get update and attempt to reinstall the core packages. Everything - packages and lgsm - should install fully.
Last edited by Mazer; Feb 9, 2016 @ 4:52pm
roman Feb 10, 2016 @ 1:37pm 
dpkg -l | grep libstdc++
dpkg --print-architecture
dpkg --print-foreign-architecturesUbuntu 15.10 \n \l

$ ii libstdc++6:amd64 5.2.1-22ubuntu2 amd64 GNU Standard C++ Library v3
$ amd64
$
i386
foreign-architecture


I have done it several times! Im in google for a lot of hours. I bealive is that i do the command to add de i386, it shows that is ok, but the packages are not in the update.

$ sudo dpkg --add-architecture i386
[sudo] password for admincounter:
$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
$ sudo apt-get update
Get:1 http://security.ubuntu.com wily-security InRelease [65.9 kB]
Hit http://azure.archive.ubuntu.com wily InRelease
Get:2 http://azure.archive.ubuntu.com wily-updates InRelease [65.9 kB]
Get:3 http://security.ubuntu.com wily-security/main Sources [28.8 kB]
Get:4 http://security.ubuntu.com wily-security/restricted Sources [2,854 B]
Get:5 http://security.ubuntu.com wily-security/universe Sources [7,420 B]
Get:6 http://security.ubuntu.com wily-security/multiverse Sources [1,930 B]
Get:7 http://security.ubuntu.com wily-security/main amd64 Packages [91.0 kB]
Hit http://azure.archive.ubuntu.com wily-backports InRelease
Get:8 http://security.ubuntu.com wily-security/restricted amd64 Packages [10.9 kB]
Get:9 http://security.ubuntu.com wily-security/universe amd64 Packages [38.1 kB]
Get:10 http://security.ubuntu.com wily-security/multiverse amd64 Packages [5,896 B]
Get:11 http://azure.archive.ubuntu.com wily-updates/main Sources [47.6 kB]
Get:12 http://azure.archive.ubuntu.com wily-updates/restricted Sources [3,741 B]
Get:13 http://azure.archive.ubuntu.com wily-updates/universe Sources [12.8 kB]
Get:14 http://azure.archive.ubuntu.com wily-updates/multiverse Sources [1,930 B]
Get:15 http://azure.archive.ubuntu.com wily-updates/main amd64 Packages [128 kB]
Get:16 http://azure.archive.ubuntu.com wily-updates/restricted amd64 Packages [13.3 kB]
Get:17 http://azure.archive.ubuntu.com wily-updates/universe amd64 Packages [55.6 kB]
Get:18 http://azure.archive.ubuntu.com wily-updates/multiverse amd64 Packages [5,896 B]
Hit http://azure.archive.ubuntu.com wily-backports/restricted Sources
Hit http://azure.archive.ubuntu.com wily-backports/multiverse Sources
Hit http://azure.archive.ubuntu.com wily-backports/restricted amd64 Packages
Hit http://azure.archive.ubuntu.com wily-backports/multiverse amd64 Packages
Hit http://azure.archive.ubuntu.com wily/main Sources
Hit http://azure.archive.ubuntu.com wily/restricted Sources
Hit http://azure.archive.ubuntu.com wily/universe Sources
Hit http://azure.archive.ubuntu.com wily/multiverse Sources
Hit http://azure.archive.ubuntu.com wily/main amd64 Packages
Hit http://azure.archive.ubuntu.com wily/restricted amd64 Packages
Hit http://azure.archive.ubuntu.com wily/universe amd64 Packages
Hit http://azure.archive.ubuntu.com wily/multiverse amd64 Packages
Hit http://azure.archive.ubuntu.com wily-backports/main Sources
Hit http://azure.archive.ubuntu.com wily-backports/universe Sources
Hit http://azure.archive.ubuntu.com wily-backports/main amd64 Packages
Hit http://azure.archive.ubuntu.com wily-backports/universe amd64 Packages
Fetched 588 kB in 8s (68.5 kB/s)
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/wily/InRelease Unable to find expected entry 'main/binary-foreign-architecture/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/wily-updates/InRelease Unable to find expected entry 'main/binary-foreign-architecture/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/wily-backports/InRelease Unable to find expected entry 'main/binary-foreign-architecture/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/wily-security/InRelease Unable to find expected entry 'main/binary-foreign-architecture/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

Mazer Feb 10, 2016 @ 6:20pm 
I just installed a fresh Wily OS, logged in right after the first reboot and typed three commands:
sudo su - dpkg --add-architecture i386 apt-get update
and I pull everything down correctly, including the i386 packages. It was ready to go.

Here is my output[pastebin.com] from the freshly-deployed setup. Note the presence of i386 package libraries in the update which aren't present in your update.

Your problem must be that something is funky with your OS. Is it a docker container as was the OP's system? If so, you should have this in your Dockerfile:
FROM ubuntu:15.10 MAINTAINER Me <xyz@example.com> RUN dpkg --add-architecture i386 RUN apt-get update RUN apt-get install libstdc++6:i386

With the situation as you are describing it, your best resolution is to start over with a fresh Ubuntu install. If you can't get a base system to pull i386 packages, you won't be able to use most of the LGSM scripts.
Last edited by Mazer; Feb 10, 2016 @ 7:12pm
roman Feb 11, 2016 @ 8:45am 
Fresh install! Work great! Thank you for your help!
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Jul 30, 2015 @ 12:16am
Posts: 14