Computer Tips - This happened to me when I didn't have permission to write to those files.

Date: 2024may22 OS: Linux A. wget: Failed to write to OCSP hosts
Failed to open tmpfile '/root/.local/share/wget/.wget-ocsp_hostsnQKtZd' (2) Failed to write to OCSP hosts to '/root/.local/share/wget/.wget-ocsp_hosts' Failed to open tmpfile '/root/.local/share/wget/.wget-ocsp0tHRiU' (2) Failed to write to OCSP fingerprints to '/root/.local/share/wget/.wget-ocsp'
Q. This happened to me when I didn't have permission to write to those files. Adding --no-local-db to the wget command line avoided the errors.