就我的经验来说,我无法scala-swing.jar
在 Ubuntu 存储库的任何地方找到包含该文件的包。我尝试了以下方法:
sudo apt update
apt search scala-swing
apt search scala | grep -i swing
apt-file update
apt-file search scala-swing.jar
apt-file search scala | grep -i swing
我已正确安装了scala
和scala-library
软件包,但它们都不包含scala-swing.jar
:(
# dpkg -L scala
/.
/usr
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/scala
/usr/share/java
/usr/share/java/scalap-2.11.6.jar
/usr/share/java/scala-compiler-2.11.6.jar
/usr/share/maven-repo
/usr/share/maven-repo/org
/usr/share/maven-repo/org/scala-lang
/usr/share/maven-repo/org/scala-lang/scala-compiler
/usr/share/maven-repo/org/scala-lang/scala-compiler/2.11.x
/usr/share/maven-repo/org/scala-lang/scala-compiler/2.11.x/scala-compiler-2.11.x.pom
/usr/share/maven-repo/org/scala-lang/scala-compiler/2.11.6
/usr/share/maven-repo/org/scala-lang/scala-compiler/2.11.6/scala-compiler-2.11.6.pom
/usr/share/doc
/usr/share/doc/scala
/usr/share/doc/scala/copyright
/usr/share/scala-2.11
/usr/share/scala-2.11/bin
/usr/share/scala-2.11/bin/scalap
/usr/share/scala-2.11/bin/scalac
/usr/share/scala-2.11/bin/scaladoc
/usr/share/scala-2.11/bin/scala
/usr/share/scala-2.11/bin/fsc
/usr/share/scala-2.11/lib
/usr/share/scala-2.11/man
/usr/share/scala-2.11/man/man1
/usr/share/scala-2.11/man/man1/scalac.1.gz
/usr/share/scala-2.11/man/man1/scalap.1.gz
/usr/share/scala-2.11/man/man1/scaladoc.1.gz
/usr/share/scala-2.11/man/man1/fsc.1.gz
/usr/share/scala-2.11/man/man1/scala.1.gz
/usr/share/java/scala-compiler-2.11.jar
/usr/share/java/scala-compiler.jar
/usr/share/java/scalap.jar
/usr/share/java/scalap-2.11.jar
/usr/share/scala
/usr/share/maven-repo/org/scala-lang/scala-compiler/2.11.x/scala-compiler-2.11.x.jar
/usr/share/maven-repo/org/scala-lang/scala-compiler/2.11.6/scala-compiler-2.11.6.jar
/usr/share/doc/scala/changelog.Debian.gz
/usr/share/scala-2.11/lib/scala-library.jar
/usr/share/scala-2.11/lib/jline.jar
/usr/share/scala-2.11/lib/scala-xml.jar
/usr/share/scala-2.11/lib/scala-actors.jar
/usr/share/scala-2.11/lib/scala-compiler.jar
/usr/share/scala-2.11/lib/jansi.jar
/usr/share/scala-2.11/lib/scala-parser-combinators.jar
/usr/share/scala-2.11/lib/scala-reflect.jar
/usr/share/scala-2.11/lib/scalap.jar
/usr/share/scala-2.11/lib/hawtjni-runtime.jar
# dpkg -L scala-library
/.
/usr
/usr/share
/usr/share/java
/usr/share/java/scala-library-2.11.6.jar
/usr/share/java/scala-actors-2.11.6.jar
/usr/share/java/scala-reflect-2.11.6.jar
/usr/share/maven-repo
/usr/share/maven-repo/org
/usr/share/maven-repo/org/scala-lang
/usr/share/maven-repo/org/scala-lang/scala-reflect
/usr/share/maven-repo/org/scala-lang/scala-reflect/2.11.x
/usr/share/maven-repo/org/scala-lang/scala-reflect/2.11.x/scala-reflect-2.11.x.pom
/usr/share/maven-repo/org/scala-lang/scala-reflect/2.11.6
/usr/share/maven-repo/org/scala-lang/scala-reflect/2.11.6/scala-reflect-2.11.6.pom
/usr/share/maven-repo/org/scala-lang/scala-actors
/usr/share/maven-repo/org/scala-lang/scala-actors/2.11.x
/usr/share/maven-repo/org/scala-lang/scala-actors/2.11.x/scala-actors-2.11.x.pom
/usr/share/maven-repo/org/scala-lang/scala-actors/2.11.6
/usr/share/maven-repo/org/scala-lang/scala-actors/2.11.6/scala-actors-2.11.6.pom
/usr/share/maven-repo/org/scala-lang/scala-library
/usr/share/maven-repo/org/scala-lang/scala-library/2.11.x
/usr/share/maven-repo/org/scala-lang/scala-library/2.11.x/scala-library-2.11.x.pom
/usr/share/maven-repo/org/scala-lang/scala-library/2.11.6
/usr/share/maven-repo/org/scala-lang/scala-library/2.11.6/scala-library-2.11.6.pom
/usr/share/doc
/usr/share/doc/scala-library
/usr/share/doc/scala-library/copyright
/usr/share/doc/scala-library/changelog.Debian.gz
/usr/share/java/scala-reflect-2.11.jar
/usr/share/java/scala-library.jar
/usr/share/java/scala-library-2.11.jar
/usr/share/java/scala-actors.jar
/usr/share/java/scala-actors-2.11.jar
/usr/share/java/scala-reflect.jar
/usr/share/maven-repo/org/scala-lang/scala-reflect/2.11.x/scala-reflect-2.11.x.jar
/usr/share/maven-repo/org/scala-lang/scala-reflect/2.11.6/scala-reflect-2.11.6.jar
/usr/share/maven-repo/org/scala-lang/scala-actors/2.11.x/scala-actors-2.11.x.jar
/usr/share/maven-repo/org/scala-lang/scala-actors/2.11.6/scala-actors-2.11.6.jar
/usr/share/maven-repo/org/scala-lang/scala-library/2.11.x/scala-library-2.11.x.jar
/usr/share/maven-repo/org/scala-lang/scala-library/2.11.6/scala-library-2.11.6.jar
以下是我的资料来源:
cat /etc/apt/sources.list | egrep -v "(^#.*|^$)"
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial main restricted
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial-updates main restricted
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial universe
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial-updates universe
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial multiverse
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial-updates multiverse
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial-backports main restricted universe multiverse
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial-security main restricted
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial-security universe
deb http://mirrors.ircam.fr/pub/ubuntu/archive/ xenial-security multiverse
显然,回来在 Ubuntu 14.04 LTS 中,该文件存在在 scala-library` 包中,但是不再是 16.04:( 安装这个文件的正确方法是什么?
答案1
Ubuntu Xenial (16.04) 中没有软件包提供scala-swing.jar
文件。但是,如果你真的需要,你可以从java2s 网站。