How to fix WordPress errors when installing the Debug Bar plugin

Solution:

I faced the same issue and found this fix: GitHub commit reference
.

To resolve it, edit the class-empty-upgrader-skin.php file located in:

plugins/developer/include/

Add the following parameters to the relevant function or constructor:

$context = false;
$allow_relaxed_file_ownership = false;

This should fix the problem.