I just solved the problem. The file /etc/apt/preferences gives priority to ftp.scientificlinux.org so the system ignores packages that are newer from other places. Setting it to a blank file solved the problem.