It seems like apt thinks that you've already downloaded libmagic1 but it can't find the package. Please run Code: apt-get clean and try to upgrade again!
apt-get clean