5

I'm using 64 bit Kali Linux, previously installed i386 architecture and now I want to remove it, because it downloads about 30Mb data for 32bit package every time apt update.

I tried dpkg --remove-architecture i386, it failed with

dpkg: error: cannot remove architecture 'i386' currently in use by the database

Google says the i386 packages should be removed first, but some package like "gcc-12-base:i386, libc6:i386, libcrypt1:i386, libgcc-s1:i386" cannot be removed, how to solve it?

enter image description here

2 Answers 2

8

You need to remove them simultaneously, and force their removal in spite of their “protected” status:

dpkg --purge --force-remove-protected {gcc-12-base,libc6,libcrypt1,libgcc-s1}:i386
0
0
sudo aptitude purge $(dpkg --get-selections | grep ":i386" | awk '{print $1}')
1
  • Your grep ":i386" | awk '{print $1}' could be simplified as awk '/:i386/ {print $1}' Commented Jan 20 at 9:51

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.