Whilst executing any commands with apt or dpkg I get the following error:
dpkg: error processing package jd-gui (--remove):
installed jd-gui package pre-removal script subprocess returned error exit status 3
Errors were encountered while processing:
jd-gui
I have looked this error up and only see answers for other errors such as:
Setting up google-chrome-stable (33.0.1750.152-1) ...
/var/lib/dpkg/info/google-chrome-stable.postinst: 124: /var/lib/dpkg/info/google-chrome-stable.postinst: update-alternatives: not found
dpkg: error processing google-chrome-stable (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up bsnes (0.088-7) ...
/var/lib/dpkg/info/bsnes.postinst: 5: /var/lib/dpkg/info/bsnes.postinst: update-alternatives: not found
dpkg: error processing bsnes (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
google-chrome-stable
bsnes
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any Ideas of how I would go about fixing this? Oh and I started recieving this error after a package didnt install correctly so I tried deleting it but started getting this error.
sudo dpkg --configure -a
andsudo apt install -f
should solve it ---