The YouTube app was discontinued on iOS 5.1 due to compatibility issues. The app requires a minimum of iOS 6.0 to run, which is not compatible with your device.
Open , go to Sources , and add cydia.invoxiplaygames.uk or cydia.skylot.es . Install TubeFixer (or TubeRepair ). youtube ipa for ios 511