/usr/share/java/scala-library.jar
is in package scala-library
. You must remove both then install the 2.10.2 package:
apt-get remove scala-library scala
dpkg -i /home/chris/Downloads/scala-2.10.2.deb
In more details, plagiarizing your output log:
1) dpkg
is installing a new version of the scala
package:
Unpacking replacement scala ...
2) While checking if everything will go well, it realised that if unpacking the scala
package, it will replace a file from another package named scala-library
:
trying to overwrite '/usr/share/java/scala-library.jar', which is also in package scala-library 2.9.1.dfsg-3
3) It desided to stop before doing bad things.