Please open a terminal by pressing 'Ctrl' 'Alt' and 'T' together
In the terminal window type or paste in this command
sudo dpkg --configure -a
followed by return/enter. When asked for your password, type it in followed by return/enter.
Then try running your preferred method to update/upgrade