Running 32 bit applications in Zorin 16 64 bit

When I run sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 I get this message:

Need to get 3.902 kB of archives. After this operation, 5.490 MB disk space will be freed. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!'

What I must do?? Can I install it on Zorin 16 or it will break the whole system??

Don't do it.

It will break the system.
This will happen because it will remove the essential 64bit package for libc6 in order to install libc32.

Are you trying to install Wine?
What dependency do you need to satisfy?

EDIT: Try the following, instead:

sudo dpkg --add-architecture i386

sudo apt update && sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 libbz2-1.0:i386

1 Like

It is for game-dev. I need to compile custom SDK based on Valve's source 1 SDK and its vpc compiler is 32 bit file.
file vpc_linux:
vpc_linux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.32, with debug_info, not stripped

1 Like

it still writes After this operation, 5.490 MB disk space will be freed. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' ?]
Must I accept this or not?

Edit:
Wait,it is the same command that I wrote in my question

And I am giving same answer: Don't do it. That warning is telling you the truth.

Can you run

sudo apt update

And paste the result here? I wonder if you have a mismatched source.

Hit:1 http://az.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://az.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://az.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:4 http://ppa.launchpad.net/peek-developers/stable/ubuntu focal InRelease Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Hit:6 https://brave-browser-apt-release.s3.brave.com stable InRelease Hit:7 http://ppa.launchpad.net/zorinos/apps/ubuntu focal InRelease Hit:8 http://package.perforce.com/apt/ubuntu focal InRelease Hit:9 http://packages.microsoft.com/repos/code stable InRelease Hit:10 http://ppa.launchpad.net/zorinos/drivers/ubuntu focal InRelease Hit:11 http://ppa.launchpad.net/zorinos/patches/ubuntu focal InRelease Hit:12 http://ppa.launchpad.net/zorinos/stable/ubuntu focal InRelease Hit:13 https://packages.zorinos.com/stable focal InRelease Hit:14 https://packages.microsoft.com/ubuntu/21.04/prod hirsute InRelease Hit:15 https://packages.zorinos.com/patches focal InRelease Hit:16 https://packages.zorinos.com/apps focal InRelease Hit:17 https://packages.zorinos.com/drivers focal InRelease Fetched 114 kB in 4s (26,6 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 5 packages can be upgraded. Run 'apt list --upgradable' to see them.

Can you please run

apt list -u

And paste that result here?
Then go ahead and run

sudo apt full-upgrade

upgrade was about zorin taskbar and grub so no worries.

apt list -u:
running@child:~$ apt list -u Listing... Done
what (0_0()

ok can you post the result of:

sudo dpkg --print-architectures

running@child:~$ sudo dpkg --print-architectures dpkg: error: unknown option --print-architectures Type dpkg --help for help about installing and deinstalling packages [*]; Use 'apt' or 'aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files;

but print-architecture works:
running@child:~$ sudo dpkg --print-architecture amd64

1 Like

Thanks for fixing my typo :slight_smile:

Did you:

sudo dpkg --add-architecture i386

yea,I did but it still shows amd64 only

That's ok - It is supposed to.

Can you open Software & Updates, then check that you are set to Main Server.
Close (It may ask to reload, say yes if it does).

Then in terminal, another

sudo apt update

Then... removing one of the packages, try it again (This is working on mine...)

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

It wasn't in main server so changed but I couldn't get what do u mean by removing one of the packages
could u explain it please?

I removed one package from the previous installation command. Reduced it to just:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

Instead of

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 libbz2-1.0:i386

okay,now it installing without any warnings and etc and now I got more upgrades.(19 pkgs needs to be upgraded)

1 Like

oh my god.....
Really really thank u for ur help
I wasted my whole day yesterday for finding it out

Can you paste the list of what needs to upgrade here?

Also, did the terminal say "Packages to be removed"? When it stops installing, you will be able to scroll...

running@child:~/Documents/csso-src/src$ sudo apt list --upgradable Listing... Done apt-transport-https/focal-updates,focal-updates 2.0.6 all [upgradable from: 2.0.2ubuntu0.2] language-pack-en-base/focal-updates,focal-updates 1:20.04+20210802 all [upgradable from: 1:20.04+20210121] language-pack-en/focal-updates,focal-updates 1:20.04+20210802 all [upgradable from: 1:20.04+20210121] language-pack-gnome-en-base/focal-updates,focal-updates 1:20.04+20210802 all [upgradable from: 1:20.04+20210121] language-pack-gnome-en/focal-updates,focal-updates 1:20.04+20210802 all [upgradable from: 1:20.04+20210121] libegl-mesa0/focal-updates 21.0.3-0ubuntu0.3~20.04.1 amd64 [upgradable from: 21.0.3-0ubuntu0.2~20.04.1] libgbm1/focal-updates 21.0.3-0ubuntu0.3~20.04.1 amd64 [upgradable from: 21.0.3-0ubuntu0.2~20.04.1] libgl1-mesa-dri/focal-updates 21.0.3-0ubuntu0.3~20.04.1 amd64 [upgradable from: 21.0.3-0ubuntu0.2~20.04.1] libglapi-mesa/focal-updates 21.0.3-0ubuntu0.3~20.04.1 amd64 [upgradable from: 21.0.3-0ubuntu0.2~20.04.1] libglx-mesa0/focal-updates 21.0.3-0ubuntu0.3~20.04.1 amd64 [upgradable from: 21.0.3-0ubuntu0.2~20.04.1] libxatracker2/focal-updates 21.0.3-0ubuntu0.3~20.04.1 amd64 [upgradable from: 21.0.3-0ubuntu0.2~20.04.1] linux-firmware/focal-updates,focal-updates 1.187.16 all [upgradable from: 1.187.15] mesa-va-drivers/focal-updates 21.0.3-0ubuntu0.3~20.04.1 amd64 [upgradable from: 21.0.3-0ubuntu0.2~20.04.1] mesa-vdpau-drivers/focal-updates 21.0.3-0ubuntu0.3~20.04.1 amd64 [upgradable from: 21.0.3-0ubuntu0.2~20.04.1] mesa-vulkan-drivers/focal-updates 21.0.3-0ubuntu0.3~20.04.1 amd64 [upgradable from: 21.0.3-0ubuntu0.2~20.04.1] python-pip-whl/focal-updates,focal-updates 20.0.2-5ubuntu1.6 all [upgradable from: 20.0.2-5ubuntu1.5] python3-pip/focal-updates,focal-updates 20.0.2-5ubuntu1.6 all [upgradable from: 20.0.2-5ubuntu1.5] update-notifier-common/focal-updates,focal-updates 3.192.30.9 all [upgradable from: 3.192.30.8] update-notifier/focal-updates 3.192.30.9 amd64 [upgradable from: 3.192.30.8]

Compiler now works btw.

Ok, looks good. I just wanted to be sure that the "upgrades" were not due to a removal. I believe it was because you were not set to main server.

I think what got you fixed up here was

  • Setting to Main server
  • Adding i386 architecture

You did 100% right by not ignoring that warning and being sure to patiently check. That could have had you more than frustrated trying to repair it or even having to Reinstall Zorin OS.