I just installed Drupal 9.0 on my local Linux machine, and when I try to install a module (for instance: ctools or token) either using the URL pointing to the tar.gz tarball or by downloading it first to my machine, I get the following error:
/drupal9/core/authorize.php/core/authorize.php?batch=1&id=5&op=do_nojs&op=do
StatusText: OK
ResponseText : Error: Can only throw objects in Drupal\Core\Updater\Updater->install() (line 294 of /var/www/html/drupal9/core/lib/Drupal/Core/Updater/Updater.php).
I don't know what's wrong. I never saw this problem with Drupal 8.