If the OTA doesn't reach your device but an official 5.0 firmware exists, you can download the "factory image" or "firmware zip" and flash it manually. How to get the Android 5.0 Lollipop OTA Update
While in TWRP, connect your phone to the PC via USB. update android 4.2.2 to 5.0 download
The world of mobile technology moves at a breathtaking pace. If you are still running a device on Android 4.2.2 Jelly Bean, you are holding a piece of history. While Jelly Bean was a solid operating system in its time, the jump to Android 5.0 Lollipop was one of the most significant visual and architectural changes in Android’s history. If the OTA doesn't reach your device but an official 5
Your phone has a stock recovery that only accepts signed updates from Samsung. You need TWRP. If you are still running a device on Android 4
If your device is stuck on 4.2.2 officially, the only way to get Android 5.0 is by installing a Custom ROM. This is an advanced process that involves replacing the manufacturer's operating system with a community-built version of Android (such as CyanogenMod, LineageOS, or AOSP).