A coupled thermo-hydro-mechanical model of dual-porosity medium for saturated-unsaturated ubiquitous-joint rock mass was established, and the relative two-dimensional FEM program was developed. Taking a hypothetical nuclear waste repository in an unsaturated dual-porosity rock mass as example, Three different operating cases were simulated numerically. Those factors, the temperatures, pore pressure, saturations, flow velocities, principal stresses, etc, in the rock mass were investigated. The results show: 1) the temperature fields and the stress fields under three cases are almost same; 2) when the thermal water diffusivity of rock mass is larger, the negative pore pressures in near field reach very high values, while the negative fracture pressures decrease a little and the saturate degrees change accordingly; 3) after the thermal water diffusivity becomes small to a certain value its influence will disappear.