0

After following this article, https://askubuntu.com/questions/101802/packages-having-unmet-dependencies-broken-packages, to fix an issue on my RPi when compiling QEMU, I ran sudo apt-get remove glib2* and it started to remove all upgraded packages. Can I simply fix this by running sudo apt-get upgrade or is there something else I need to do.

Edit One

Also it uninstalled Chromium, but I am posting this from Chromium; how does this work???

Edit Two

The operation was interrupted and I got:
E: Sub-process /usr/bin/dpkg returned error code (1)
W: Operation was interrupted before it could finish

Now my computer is missing some of its icons and some of the programs are missing. Some icons look different. Chromium is still running even though it was supposedly uninstalled.

Edit Three

I have now also run sudo apt-get -f install and sudo apt-get update to no avail and am now running sudo apt-get upgrade.

8
  • 2
    As your system seems to be in an unknown state, I would suggest reflashing the SD card and starting fresh. Not doing so you risk a whole series of difficult to debug issues and lots of frustration. Commented Jul 25, 2018 at 22:20
  • What is glib2*? On my Raspbian Stretch I do not find any packet that is named glib2*; looked with apt list glib2*. Chromium still works because its deinstallation was interrupted as you wrote. Now you have a half installed Chromium. It is integral part of the GUI. Deinstalling it is the hard way to learn that it breaks your system.
    – Ingo
    Commented Jul 25, 2018 at 22:33
  • @Ingo Don't do this, but if you run sudo apt-get install glib2*, it will install all the files that begin with glib2.
    – ds_secret
    Commented Jul 25, 2018 at 22:36
  • @Ingo @Steve Robillard Could it be because regex parsed the * in glib2* as delete all packages.
    – ds_secret
    Commented Jul 25, 2018 at 22:36
  • As I told there are no packets beginning with glib2* in the default Raspbian Stretch repository so I cannot install them even if I wish. Where do you get it from? Btw. the best is what Steve suggested: reflash.
    – Ingo
    Commented Jul 25, 2018 at 22:47

1 Answer 1

0

Just flash your RPI with Rapsbian again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.