G'day and welcome to the forums.
A few questions as you never supplied details.
What model iMac? Who told you a new drive was necessary? What operating system are you trying to install? If from discs are they they actual discs which came with the computer? If not tust they are not silver and grey install discs from another model.