The other deceased was a 40-year-old from Sunder Nagar in Hoshiarpur and was facing trial in a narcotics case.
Their bodies were recovered from the bathroom of barrack number 23. A jail warder noticed the bodies in the morning and informed his seniors.
Judicial officers visited the jail and gathered information from the staff. No jail official was available for comment.
The jail superintendent, Joginder Pal Singh, was placed under suspension in another case on Thursday.
The bodies were taken to the civil hospital for post-mortem, which confirmed death by hanging.
City station house officer Sanjeevan Kumar said that investigation under Section 176 CrPC would be undertaken.
If you need support or know someone who does, please reach out to your nearest mental health specialist. Helplines: Sneha India Foundation: +914424640050 and Sanjivini: 011-24311918.