Lost in Space (Classic)
War of the Robots
S1 E20:
The family's robot is seemingly replaced when Will repairs a robotoid from an advanced civilization - until the new machine wreaks havoc by trying to take over the ship.
Starring
Hal John Norman, Ollie O'Toole, William Bramley