Agree that both Ripoll and Jaca are both good places to stay and use as a base. My favourite along that road (N260) is Ainsa. On a cross roads, lots of hotels, with a good place to buy and get tyres changed. They have a dedicated bike tyre fitter and had tyres to fit in stock.
Neumáticos Aragón is on the left leaving town on the N260 heading east. (Their address is not helpful, but is P.I. Sobrarbe, Nave 13-14, 22330 Ainsa.
There is also a medieval old town up on the hill with interesting streets, plaza and castle. I usually stay at Hotel Dos Rios
Avenida Central, 4, 22330
Aínsa, Spain
Phone: +34 974 50 09 61
GPS coordinates: N 042° 24.877, E 00° 8.443
The hotel also has a Hostel next door which is cheaper. Neither is expensive. Bikes can park in a secure private garage for free, 200 meters from the hotel. The restaurant / cafe is popular with locals and has a nice vibe.