Hi I had the same error. All I did was update apt-get itself then installed ipcalc after

just type in "apt-get update"