Assuming you already know undergraduate algebra (and maybe a little basic homological algebra already), the book Methods of Homological Algebra by Gelfand and Manin is a good source for the kinds of things in the first chapter or so of Kashiwara-Schapira, i.e. derived categories, derived functors.