Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglasmiranda/e5bd76d0b85a95f74b38b94528c52910 to your computer and use it in GitHub Desktop.
Save douglasmiranda/e5bd76d0b85a95f74b38b94528c52910 to your computer and use it in GitHub Desktop.
Fix: dpkg: error: cannot remove architecture X currently in use by the database
# You try:
sudo dpkg --remove-architecture armhf
# and get:
# dpkg: error: cannot remove architecture 'armhf' currently in use by the database
# So you have to remove the armhf packages installed to be able to `dpkg --remove-architecture armhf`
apt-get remove --purge `dpkg --get-selections | grep armhf | awk '{print $1}'`
# Then:
sudo dpkg --remove-architecture armhf
# SUCCESS!!!
# https://unix.stackexchange.com/questions/295241/dpkg-error-cannot-remove-architecture-i386-currently-in-use-by-the-database
@in-sympathy
Copy link

Thanks 🙏

@sh1sh1n11
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment