我在尝试为 Scala 版本 2.10.2 安装 .deb 文件时遇到问题。
我收到以下错误:
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 372442 files and directories currently installed.)
Preparing to replace scala 2.9.1.dfsg-3 (using .../Downloads/scala-2.10.2.deb) ...
Unpacking replacement scala ...
dpkg: error processing /home/chris/Downloads/scala-2.10.2.deb (--install):
trying to overwrite '/usr/share/java/scala-library.jar', which is also in package scala-library 2.9.1.dfsg-3
dpkg-deb (subprocess): data: internal gzip write error: Broken pipe
dpkg-deb (subprocess): failed in write on buffer copy for failed to write to pipe in copy: Broken pipe
dpkg-deb: error: subprocess <decompress> returned error exit status 2
Processing triggers for man-db ...
Errors were encountered while processing:
/home/chris/Downloads/scala-2.10.2.deb
你们知道我为什么会得到这个吗?