Unable to disable and remove 32-bit packages on x86_64
Jeffrey Walton
noloader at gmail.com
Sat Mar 18 05:46:10 UTC 2023
I've got one Ubuntu 22.04 machine where I cannot disable 32-bit
packages on x86_64. My Ubuntu other machines allowed me to disable
32-bit and remove 32-bit packages.
$ sudo dpkg --remove-architecture i386
dpkg: error: cannot remove architecture 'i386' currently
in use by the database
Does anyone know why this is happening? Or what I am doing wrong?
Thanks in advance.
-----=====-----
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
-----=====-----
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 39 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Vendor ID: GenuineIntel
Model name: Intel(R) Celeron(R) CPU J3455 @ 1.50GHz
CPU family: 6
Model: 92
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
...
-----=====-----
$ dpkg --get-selections | grep ":i386" | awk '{print $1}'
gcc-12-base:i386
libc6:i386
libcap2:i386
libcom-err2:i386
libcrypt1:i386
libdbus-1-3:i386
libgamemode0:i386
libgamemodeauto0:i386
libgcc-s1:i386
libgcrypt20:i386
libgl1-mesa-dri:i386
libgpg-error0:i386
libgssapi-krb5-2:i386
libidn2-0:i386
libk5crypto3:i386
libkeyutils1:i386
libkrb5-3:i386
libkrb5support0:i386
liblz4-1:i386
liblzma5:i386
libnsl2:i386
libnss-nis:i386
libnss-nisplus:i386
libssl3:i386
libsystemd0:i386
libtinfo6:i386
libtirpc3:i386
libunistring2:i386
libzstd1:i386
zlib1g:i386
-----=====-----
$ sudo apt-get remove --purge \
$(dpkg --get-selections | grep i386 | awk '{print $1}')
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libclang1-14 libobjc-11-dev libobjc4
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
clang* clang-14* gcc-12-base:i386* lib32gcc-s1* lib32stdc++6* libc6:i386*
libc6-i386* libcap2:i386* libclang-common-14-dev* libcom-err2:i386*
libcrypt1:i386* libdbus-1-3:i386* libgamemode0:i386* libgamemodeauto0:i386*
libgcc-s1:i386* libgcrypt20:i386* libgl1-mesa-dri:i386* libgpg-error0:i386*
libgssapi-krb5-2:i386* libidn2-0:i386* libk5crypto3:i386* libkeyutils1:i386*
libkrb5-3:i386* libkrb5support0:i386* liblz4-1:i386* liblzma5:i386*
libnsl2:i386* libnss-nis:i386* libnss-nisplus:i386* libssl3:i386*
libsystemd0:i386* libtinfo6:i386* libtirpc3:i386* libunistring2:i386*
libzstd1:i386* zlib1g:i386*
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
libcrypt1:i386 libc6:i386 (due to libcrypt1:i386)
0 upgraded, 0 newly installed, 36 to remove and 0 not upgraded.
After this operation, 122 MB disk space will be freed.
E: Removing essential system-critical packages is not permitted. This
might break the system.
More information about the ubuntu-users
mailing list