I have installed WordPress on my Ubuntu Server 20.04 VM (host machine runs Linux Mint 19). I've able to view wp-admin and the sample website without issue. I'm using Firefox to access wp-admin, the browser is up to date, and the browser clears the cache/history each time I close it.
When I click Themes in wp-admin, the page opens just fine. But when I click Add New, a progress bar keeps spinning, and then I get the following message:
An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration.
I found another StackExchange post that suggests adding some lines to the wp-config.php file, so that I could debug my issue. I've added these lines, saved the file, ran
sudo service apache2 restart for good measure, closed the browser, then reopened it. I didn't get any log info posted in the browser, and I don't see any log files saved in the wp-content directory.
So I can't add a new WordPress theme, and I can't debug the issue using WordPress tools either.
Please know I'm a beginning engineer, with light experience with html/css, python, and bash. I'd appreciate any help I'm able to get. Thanks!