Fixing a Broken Ubuntu Install

Pop! OS(which is based on Ubuntu) is my daily driver distribution. I’m not sure how I got into this state, but over the course of upgrading and tinkering, I landed in dependency hell with an error preventing me from installing the latest OS version.

dpkg: error processing package libglib2.0-0:i386 (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:
 libglib2.0-0:i386 depends on libpcre3; however:
  Package libpcre3:i386 is not configured yet.

I tried fixing the broken install and various other remedies from the internet. It turned out to be fairly simple, just needed to configure dpkg before fixing the install.

$ sudo dpkg --configure -a

$ sudo apt --fix-broken install