If you are working with computer, once in a while you will encounter an error when you are trying to install or upgrade a program/package/library/etc, my solutions at the moment are:
- Look for solutions in StackOverflow or similar sites.
- Reinstall it. Possibly requires completely deleting/purging all previous installed files.
- Reboot the machine. Possibly requires to do step 2 again.
- Read the installation/error log, infer the problem from there, and fix it.
- Use another.
Solution no 4 is actually the most efficient of all but it requires time and hard works.
disclaimer: i am not a sysadmin.