After adding the i386 architecture then try to install packages it
autoremoving the main required packages.
which apt-get
/usr/bin/apt-get
type apt-get
apt-get is /usr/bin/apt-get
dpkg --search /usr/bin/apt-get
apt: /usr/bin/apt-get
dpkg --list apt
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii apt 2.2.4 arm64 commandline package manager
dpkg --status apt
Package: apt
Status: install ok installed
Priority: required
Section: admin
Installed-Size: 4181
Maintainer: APT Development Team <deity@lists.debian.org>
Architecture: arm64
Version: 2.2.4
Replaces: apt-transport-https (<< 1.5~alpha4~), apt-utils (<< 1.3~exp2~)
Provides: apt-transport-https (= 2.2.4)
Depends: adduser, gpgv | gpgv2 | gpgv1, libapt-pkg6.0 (>= 2.2.4),
debian-archive-keyring, libc6 (>= 2.17), libgcc-s1 (>= 3.0), libgnutls30
(>= 3.7.0), libseccomp2 (>= 2.4.2), libstdc++6 (>= 9), libsystemd0
Recommends: ca-certificates
Suggests: apt-doc, aptitude | synaptic | wajig, dpkg-dev (>= 1.17.2), gnupg
| gnupg2 | gnupg1, powermgmt-base
Breaks: apt-transport-https (<< 1.5~alpha4~), apt-utils (<< 1.3~exp2~),
aptitude (<< 0.8.10)
Conffiles:
/etc/apt/apt.conf.d/01autoremove ab6540f7278a05a4b7f9e58afcaa5f46
/etc/cron.daily/apt-compat 49e9b2cfa17849700d4db735d04244f3
/etc/kernel/postinst.d/apt-auto-removal 6486b24d4c496e7d6a443178869a019b
/etc/logrotate.d/apt 179f2ed4f85cbaca12fa3d69c2a4a1c3
Description: commandline package manager
This package provides commandline tools for searching and
managing as well as querying information about packages
as a low-level access to all features of the libapt-pkg library.
.
These include:
* apt-get for retrieval of packages and information about them
from authenticated sources and for installation, upgrade and
removal of packages together with their dependencies
* apt-cache for querying available information about installed
as well as installable packages
* apt-cdrom to use removable media as a source for packages
* apt-config as an interface to the configuration settings
* apt-key as an interface to manage authentication keys
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
hostnamectl
Static hostname: raspberrypi
Icon name: computer
Machine ID: 6bed9a922dc84fcfb9b02f5403468ce1
Boot ID: ebfe7cff77d341fa9cca50e0aa20bf74
Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 6.1.21-v8+
Architecture: arm64
The architecture I added and update success:
sudo dpkg --add-architecture i386
Packages that I tried to install and the output:
sudo apt install libc6:i386 libncurses5:i386 libstdc++6:i386 libbz2-1.0:i386
Output file: