The Red Dwarf TV show, is a strange entity, its comedy sci fi by but doesn't lean one way or the others, it mixes both equally. the first season takes a while to get into. I hope you stick with it and enjoy it, as IMO it get just kept getting better.
In relation to the books, although they have elements from the TV show and the characters, they are very different.