You're referring to single continuous fiber optic cables on land. Long undersea cables incorporate powered repeaters. Those can't be upgraded in situ with improved technology.
Pulling a cable up, cutting a damaged part out of it and putting a new piece in is done all the time to fix damaged cables.