This is evergreen when talking about Hyperloop: http://www.cat-bus.com/2017/12/gadgetbahn/ The problems with building this have nothing to do with technology but with right-of-way, investment, and politics. If those factors were solved, we'd already have high-speed rail in places where Hyperloop has been proposed. The fact that we don't says that Hyperloop is unlikely to be feasible as well.
Three words: vacuum expansion seals.
1) Bury the lines. Basically isothermal at depth.
2) insulate the tube and maintain stable temperature
3) use materials that don’t drastically change length with temperature
3) allow the tubes to change length. Put them on rollers.
4) use vacuum expansion joints just like us common in vacuum engineering.
People act like vacuum is this new thing. Physicists (well, Engineers/technicians hired by physics projects) have been making really long tubes with extremely high vacuum and incredibly high tolerances. This is easy in comparison.