LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

ubuntu dpkg --add-architecture i386 required

Open aftek opened this issue 10 years ago • 11 comments

With a fresh new LXC container of Ubuntu Trusty amd64, lxc-create -n container_name -t download -- -d ubuntu -r trusty -amd64

I was getting the following errors about libstdc++6: E: Unable to locate package libstdc++6 E: Couldn't find any package by regex 'libstdc++6'

Yet it was working on the host system which is also Ubuntu Trusty amd64;

Found my answer at https://akrabat.com/installing-32-bit-packages-on-ubuntu-14-04/ dpkg --add-architecture i386 was needed; and then I realised it is part of the Debian 64bit dependencies that can be seen on your home page.

The issue can actually be considered resolved already.

but since running dpkg --add-architecture i386 does not create a duplicate when ran multiple times; I'd only suggest adding it to the Ubuntu dependencies too;

aftek avatar Mar 27 '16 16:03 aftek

So the LXC container has nothing to do with that ? I'll rename that issue :) What version of ubuntu are you using ? 14..4 ? Thanks for your help btw. @dgibbs64 :)

UltimateByte avatar Apr 05 '16 16:04 UltimateByte

Having the same issues on an Ubuntu 14.04 LTS AMD64 and 16.04 AMD64.

However, it seems to be an issues with a more recent (as in ~6 months) change since I've freshly installed a Teamspeak 3 Server just fine without getting the message about a missing libstdc++6 installation over and over again.

The fun thing is that the packages are already installed that are mentioned here: https://github.com/dgibbs64/linuxgsm/blob/master/functions/check_deps.sh#L133

Not sure if it's important but my LGSM version dates back to 040715 which I used to successfully install the servers. With the most recent version it's not working anymore without LGSM trying to re-install libstdc++6 again.

If you need any additional information feel free to ask. I'd be honored in helping you fixing this problem.

keichinger avatar May 01 '16 20:05 keichinger

The way LGSM checks for installed packages may not be suitable for people using containers. LGSM has never been designed for that. As i'm personally not using containers, and can't spend the required time on it to hopefully fix this, i'd need somebody to understand what's wrong so we can have a chance to fix it.

UltimateByte avatar May 01 '16 21:05 UltimateByte

I'm not using containers at all. It's a pure Ubuntu 14.04 and 16.04 LTS image directly downloaded from Canonical.

Though the steps in the link the OP has mentioned are working I still find it not optimal. The crucial thing that is missing from what LGSM currently is doing is a simple sudo apt-get update after the foreign architecture has been added to make it work. However, do we really wanna do something like this or is there an alternative approach to this? Unfortunately my Linux skills in this regards are somewhat limited but maybe someone else can jump in to help?

keichinger avatar May 01 '16 21:05 keichinger

Oh well i thought that was another issue with containers. My bad.

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

Yep it is written in that order onto the website and must be performed as such in order to work, as the --add-architecture changes available packages.

So in the end @dgibbs64 would be great to add "dpkg --add-architecture i386" to Ubuntu requirements as it doesn't create duplicates and might help some people. :)

UltimateByte avatar May 01 '16 21:05 UltimateByte

sorry, this was really only a suggestion, dpkg --add-architecture i386 fixed my issue for that and was mentionned for debian based system so not too hard to figure out either.

for the other container issue, i'll take another look not too far in the future and let you know what i found or where i'm stuck there ( probably with the new LTS 16.04 too ).

aftek avatar May 01 '16 21:05 aftek

Don't be sorry, you're right, there seems to have some cases where this is necessary on Ubuntu, so i guess we should update the dependencies. :)

Any help for containers support would be appreciated as i didn't experiment LGSM with it (and i think it's the same for Daniel). But container support is really secondary, especially for now, as Daniel is preparing a wonderful update. ^^

UltimateByte avatar May 01 '16 22:05 UltimateByte

One more similar issue http://steamcommunity.com/groups/linuxgsm/discussions/0/359547436752843687/

@dgibbs64 I think you really need to add this to Ubuntu dependencies dpkg --add-architecture i386; apt-get update

UltimateByte avatar Aug 27 '16 15:08 UltimateByte

Done

dgibbs64 avatar Sep 01 '16 22:09 dgibbs64

Thanks @dgibbs64 ! :dancer:

UltimateByte avatar Sep 01 '16 23:09 UltimateByte

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jul 19 '18 05:07 lock[bot]