How to install Qemu + only 64 bit without 32 bit libs

Hi!

I want install Qemu on my system.

Is there a way to install Qemu-KVM without the 32 bit libs. I want only 64 bit.

...maybee like this?

sudo apt install --no-install-recommends qemu-kvm

Here is my solution I found out to install Qemu + Virt-Manager (64 bit) without 32 bit libs.

Step by step:

sudo apt install qemu

sudo apt install ipxe-qemu-256k-compat-efi-roms libspice-server1 libbluetooth3

sudo apt install libbrlapi0.6 libcacard0 libfdt1 libusbredirparser1 libvirglrenderer0 libxen-4.9 libxenstore3.0

sudo apt install cpu-checker ibverbs-providers ipxe-qemu libibverbs1 libiscsi7 libnl-route-3-200 librados2 librbd1 librdmacm1 msr-tools sharutils

sudo apt install qemu-block-extra qemu-system-common qemu-system-data qemu-system-gui qemu-utils

sudo apt install --no-install-recommends qemu-kvm qemu-system-x86

sudo apt install libauparse0 ebtables gir1.2-gtk-vnc-2.0 gir1.2-libosinfo-1.0 gir1.2-libvirt-glib-1.0 gir1.2-spiceclientglib-2.0 gir1.2-spiceclientgtk-3.0 libvde0 libvdeplug2 libgovirt-common libgovirt2 libgtk-vnc-2.0-0 libgvnc-1.0-0 libosinfo-1.0-0 libphodav-2.0-0 libphodav-2.0-common libspice-client-glib-2.0-8 libspice-client-gtk-3.0-5 libusbredirhost1 libvirt-clients libvirt-daemon libvirt-daemon-driver-storage-rbd libvirt-daemon-system libvirt-glib-1.0-0 libvirt0 osinfo-db python3-libvirt python3-libxml2 spice-client-glib-usb-acl-helper vde2 vde2-cryptcab virt-viewer virtinst virt-manager

Update:

To prevent "Ubuntu-Updates" to install the i386 libs in 'Qemu' you have to do this:

Open text editor like pluma/leafpad etc. ...

sudo pluma /etc/apt/preferences.d/qemu-i386-libs

or

sudo leafpad /etc/apt/preferences.d/qemu-i386-libs

add:

Package: cpu-checker:i386
Pin: release *
Pin-Priority: -1

Package: glib-networking:i386
Pin: release *
Pin-Priority: -1

Package: gstreamer1.0-plugins-base:i386
Pin: release *
Pin-Priority: -1

Package: gstreamer1.0-x:i386
Pin: release *
Pin-Priority: -1

Package: ibverbs-providers:i386
Pin: release *
Pin-Priority: -1

Package: libaa1:i386
Pin: release *
Pin-Priority: -1

Package: libaio:i386
Pin: release *
Pin-Priority: -1

Package: libavc1394-0:i386
Pin: release *
Pin-Priority: -1

Package: libbluetooth3:i386
Pin: release *
Pin-Priority: -1

Package: libbrlapi0.6:i386
Pin: release *
Pin-Priority: -1

Package: libbz2-1.0:i386
Pin: release *
Pin-Priority: -1

Package: libcacard0:i386
Pin: release *
Pin-Priority: -1

Package: libcairo-gobject2:i386
Pin: release *
Pin-Priority: -1

Package: libcap2:i386
Pin: release *
Pin-Priority: -1

Package: libcdparanoia0:i386
Pin: release *
Pin-Priority: -1

Package: libdv4:i386
Pin: release *
Pin-Priority: -1

Package: libepoxy0:i386
Pin: release *
Pin-Priority: -1

Package: libfdt1:i386
Pin: release *
Pin-Priority: -1

Package: libgmp10:i386
Pin: release *
Pin-Priority: -1

Package: libgnutls30:i386
Pin: release *
Pin-Priority: -1

Package: libgstreamer-plugins-base1.0-0:i386
Pin: release *
Pin-Priority: -1

Package: libgstreamer-plugins-good1.0-0:i386
Pin: release *
Pin-Priority: -1

Package: libgstreamer1.0-0:i386
Pin: release *
Pin-Priority: -1

Package: libgudev-1.0-0:i386
Pin: release *
Pin-Priority: -1

Package: libhogweed4:i386
Pin: release *
Pin-Priority: -1

Package: libibverbs1:i386
Pin: release *
Pin-Priority: -1

Package: libicu63:i386
Pin: release *
Pin-Priority: -1

Package: libidn2-0:i386
Pin: release *
Pin-Priority: -1

Package: libiec61883-0:i386
Pin: release *
Pin-Priority: -1

Package: libmp3lame0:i386
Pin: release *
Pin-Priority: -1

Package: libmpg123-0:i386
Pin: release *
Pin-Priority: -1

Package: libnettle6:i386
Pin: release *
Pin-Priority: -1

Package: libnl-3-200:i386
Pin: release *
Pin-Priority: -1

Package: libnl-route-3-200:i386
Pin: release *
Pin-Priority: -1

Package: libnspr4:i386
Pin: release *
Pin-Priority: -1

Package: libnss3:i386
Pin: release *
Pin-Priority: -1

Package: libnuma1:i386
Pin: release *
Pin-Priority: -1

Package: libopus0:i386
Pin: release *
Pin-Priority: -1

Package: liborc-0.4-0:i386
Pin: release *
Pin-Priority: -1

Package: libp11-kit0:i386
Pin: release *
Pin-Priority: -1

Package: libpcsclite1:i386
Pin: release *
Pin-Priority: -1

Package: libproxy1v5:i386
Pin: release *
Pin-Priority: -1

Package: libpsl5:i386
Pin: release *
Pin-Priority: -1

Package: libraw1394-11:i386
Pin: release *
Pin-Priority: -1

Package: librdmacm1:i386
Pin: release *
Pin-Priority: -1

Package: libsasl2-modules:i386
Pin: release *
Pin-Priority: -1

Package: libseccomp2:i386
Pin: release *
Pin-Priority: -1

Package: libshout3:i386
Pin: release *
Pin-Priority: -1

Package: libspeex1:i386
Pin: release *
Pin-Priority: -1

Package: libsqlite3-0:i386
Pin: release *
Pin-Priority: -1

Package: libssl1.1:i386
Pin: release *
Pin-Priority: -1

Package: libtag1v5-vanilla:i386
Pin: release *
Pin-Priority: -1

Package: libtag1v5:i386
Pin: release *
Pin-Priority: -1

Package: libtasn1-6:i386
Pin: release *
Pin-Priority: -1

Package: libtheora0:i386
Pin: release *
Pin-Priority: -1

Package: libtwolame0:i386
Pin: release *
Pin-Priority: -1

Package: libudev1:i386
Pin: release *
Pin-Priority: -1

Package: libusb-1.0-0:i386
Pin: release *
Pin-Priority: -1

Package: libusbredirparser1:i386
Pin: release *
Pin-Priority: -1

Package: libv4l-0:i386
Pin: release *
Pin-Priority: -1

Package: libv4lconvert0:i386
Pin: release *
Pin-Priority: -1

Package: libvirglrenderer0:i386
Pin: release *
Pin-Priority: -1

Package: libvisual-0.4-0:i386
Pin: release *
Pin-Priority: -1

Package: libvpx5:i386
Pin: release *
Pin-Priority: -1

Package: libwavpack1:i386
Pin: release *
Pin-Priority: -1

Package: libxen-4.9:i386
Pin: release *
Pin-Priority: -1

Package: libxenstore3.0:i386
Pin: release *
Pin-Priority: -1

Package: libxml2:i386
Pin: release *
Pin-Priority: -1

Package: libxv1:i386
Pin: release *
Pin-Priority: -1

Package: libyajl2:i386
Pin: release *
Pin-Priority: -1

Package: msr-tools:i386
Pin: release *
Pin-Priority: -1

...save the file...

sudo apt update

...now you can install Qemu updates (only 64 bit ) via Synaptic or via "Ubuntu-Update-Manager"