My cable shifter couldn't be secured in place because the stub of the metal shifter clamp keeps sliding over the derailleur's metal surface when applying torque to the bolt.
The clamp, instead of pressing down on the cable, slides along the surface it's supposed to be crimping against, and doesn't tighten anything.
(I'm not sure what the small metal piece being held in place by the pinch bolt is called, but I hope it would be understandable if I call it the clamp)
(I'm gonna be replacing that broken cable later, this is an old bike I'm fixing up)
For reference here is the user's manual for cable installation for my model which I tried to follow:
However I'm not sure why this clamp isn't being held in place? From the looks of it the edges of the surface seems to be rounded. Or is it supposed to move around freely like that? I've been stumped for a couple of days now.