Quite a few Shore Establishments were named as HMS Victory.
There were 8 of them in WW1!
The main barracks were in Queen Street, Portsmouth and named HMS Victory.
Naval Regulations insist that every sailor is allocated to a "ship".
It's now called HMS Nelson, and is Portsmouth Naval Barracks. The Barracks opened in 1903, when the Flag CinC Portsmouth moved from HMS Excellent to HMS Victory(ship) then to shore. The Barracks were then called HMS Victory but was renamed HMS Nelson(1.8.1974).