Tver Governorate
Yung was from the local nobility of Tver Governorate. In 1872 he entered the Sea Cadet Corp and was accepted into the Imperial Russian Navy in 1873. He graduated from the Naval Academy in 1876 ranked 18th in his class.