That is very good but then I have no idea how you ended up with the rrd package trying to find a library that has not been used for 4 years.
Something very wrong must have happened in the update.
As it is not clear what could have gone wrong then there is no easy way to fix it so the easiest approach would be to do a fresh install and then do a restore from your latest backup.