I want to read certain books & I know they will not be available within my library mainly because of corruption. If I download the ebook(piracy), am I stealing? Will I be held responsible by Allah or will the government get the blame?
Every soul, for what it has earned, will be retained (74:38)
Here are two issues so each party would be blamed for what they are responsible for, you for stealing and those who are corrupt for their corruption (read for example in sahih al-Bukhari about stealing from public funds or doing wrong with it in any way). The government is responsible for what ever they have done or ordered, if they ordered it correctly and somebody didn't follow the orders maybe they might be blamed for not asking digging deeper or following the issues, but only as far as each person is responsible. Anybody in a high position should be aware of this verse before handling unjustly with public funds or taking unlawfully from it:
It is not [attributable] to any prophet that he would act unfaithfully [in regard to war booty]. And whoever betrays, [taking unlawfully], will come with what he took on the Day of Resurrection. Then will every soul be [fully] compensated for what it earned, and they will not be wronged. (3:161)
See also this hadith in sahih al-Bukhari.
This hadith shows the first step of repentance from unlawful taking from public funds.
Scholars say that stealing from a public fund is haram, if somebody does so he would be punishable by ta'zeer التعزير (see also islamqa #138334 in Arabic), this is a punishment which the Qadi (the judge) needs to evaluate, but -in general- it wouldn't be set equal to stealing, as there's a suspicion of co-ownership. This verdict won't take away the sin he/she committed.
But if this fund was specified for example for poor people, orphans etc. and the person who stole is not among this specified group of people what he/she has done is considered a robbery and the punishment according shari'a should be cutting his hand (5:38)if all necessary conditions for applying this hadd (punishment) were met.
Read for example:
... And whoever, [when acting as guardian], is self-sufficient should refrain [from taking a fee]; and whoever is poor - let him take according to what is acceptable. ... (4:6)
Also be aware that taking or stealing from public fund is a bigger crime or sin than stealing from a private person! (Source in Arabic fatwa islamweb #14984 )