During these stormy years , the castle of Edinburgh was occupied several times by English garrisons .
English garrisons have taken over Edinburgh castle several times , but they were never able to keep the castle for long .