Libraries have realized that they need to move away from printed books for years. Besides things like offering ebooks (and e-magazines; I read The Economist and The New Yorker free of charge thanks to my library), libraries often have various social gatherings -- story times, book clubs, etc. If physical libraries will continue into the future they will be more community centers than just warehouses of printed material. Which will never completely go away; if nothing else main libraries have rare book collections where the physical artifact of old books is of interest.