The calculated distance (air line) between Porrentruy and Lugano is approximately 132 miles respectively 212 kilometers.
By car or train, the actual journey to Lugano is certainly longer, as only the direct route (as the crow flies) between Porrentruy and Lugano has been calculated here.
Air line (approximately)
212 kilometers
115 nautical miles