Speedometer jumping around help

Try greasing the cable. Friction is grabbing it and the end/ends that are squared off that drive the cable/speedometer are skipping in their prospective sockets. If that don’t work new cable and drive sockets, as in new Speedo and gear.
how would I go about that procedure and what do you use to grease it?