Reminds me of old joke. Guy says to doctor, "it hurts when I do this!" Doctor says "stop doing that."
You probably have several broken packages. Dpkg is trying to alter something required by the display. 'dpkg' is a blunt instrument. It cannot pull in additional packages to get what it needs. You need fix the breakage before configuring. minecraft is probably tickling same breakage.
For me, it is usually better to remove broken packages (later to reinstall) than to repair/reconfigure: How do I locate and remove Broken Packages that I have installed?
For years, I've not needed to run that dpkg configure you are trying. Needing that is a sign you have done something incorrectly, something deeper is wrong for which you need a light fingered solution. Best answer is to remove the incompletely installed trouble packages,e.g nvidia
sudo apt-get remove --purge nvidia*
Importance of 'purge' is to get rid of settings. Watch the errors when that runs. You may need to reinstall something that was damaged. (Bad news. If packages required by the currently running graphics display must be fiddled, your display may crash. You might need to log out, then try Alt-Ctl-F1 to get to VT1 and try apt-get commands there. Reboot from VT1.)
DO not reinstall nvidia yet. Check for broken packages.
Oh, and... I am a doctor. Quit playing minecraft. Run programs that are safer.
Before running something that has failed, open terminal and run it with ldd, as in
ldd minecraft
ldd shows all shared libraries a program needs, and which are missing. Run that on a program that works, you'll see what I mean.
Admittedly, most of us don't see such exciting trouble as you see. It will get better, I expect. Funny coincidence. Reading your message crashed my Android tablet.
http://paste.ubuntu.com/23128825/
– mohamadc Sep 03 '16 at 16:47the reason i typed dkg --configure -a is because when i try to do sudo apt-get remove --purge nvidia-* it tells me to do that command
– mohamadc Sep 03 '16 at 17:07sudo apt install ppa-purge
then im going to type sudo ppa-purge ppa:graphics-drivers/ppa
When i try to type apt install ppa-purge, it gives me this
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
– mohamadc Sep 03 '16 at 17:15