What you are suggesting may seem like a good idea but humans will always try to be lazy when they can, and a universal free textbook make it almost too easy for them. In reality, everyone's gonna read from the same book without many people knowing the full extent of the subjects. I think this will only speed up the reduction in the number of expert. If you need any proof just look at Stack Overflow and the js community.
The number of experts in CS is not constrained by availability of resources (though that might not be the case for every field), but the number of people that have: 1. a minimum of inteligence to get through it, and 2. The motivation and determination to strive at reaching expert level over a long period of time.
So, throwing more resources at this will only marginally increase with the production of experts. Maybe it will lower the bar of #1 a bit, but the bottleneck is really in #2 and the people that are not willing to work hard and keep working hard despite apparent failure will drop off anyways.
It is the same with open source community. By now, we should be literally swiming in free software. Instead, what happened is that society use of open source increased, but hackers willing to volunteer their time remained the same or even diminished over the years (every kid dreams with being an entrepraeneur and hit it rich these days, nobody wants to be a dirty hippy anymore). The slack has been picked up by paid employees from sponsor companies instead.
They're not up to snuff, but these do exist:
* https://en.wikibooks.org/wiki/Main_Page
* https://en.wikiversity.org/wiki/Wikiversity:Main_Page
Plus, of course, https://www.khanacademy.org/
As for open source textbooks, here is one such initiative: https://openstax.org/
in my opinion, it would be very good for there to be a universal textbook that would not only contain all of mans information, but accompany that information with friendly and thorough explanations and guidance. it would foster understanding by being concise and structuring all its information is the simplest and most straightforward way possible. that is to say, it would be user-friendly. it might also include training programs designed to make anyone a good programmer, musician, physicist, etc. this would be a gigantic undertaking but wikipedia has done something similar so i think its possible.