我是 Ubuntu 的新手,我正在尝试在 Ubuntu 中安装 Apache ANT
我下载了包 (apache-ant-1.9.4-bin.tar.gz) 并在终端中给出了这样的命令
sudo apt-get install apache-ant-1.9.4-bin.tar.gz
Run Code Online (Sandbox Code Playgroud)
我收到了这两个错误
E: Unable to locate package apache-ant-1.9.4-bin.tar.gz
E: Couldn't find any package by regex 'apache-ant-1.9.4-bin.tar.gz'
Run Code Online (Sandbox Code Playgroud)
如果我使用
/etc/apt/sources.list
1 deb-src http://ppa.launchpad.net/klaus-vormweg/bluefish/ubuntu trusty main$
2 sudo apt-get install python-software-properties$
3 # deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted$
4 $
5 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to$
6 # newer versions of the distribution.$
7 $
8 ## Major bug …Run Code Online (Sandbox Code Playgroud) 我想从下载的 zip 安装 ANT:apache-ant-1.9.6-bin.zip。怎么做 ?
我的 Ubuntu 14 上需要 Apache Ant 1.8。但只有一个版本可用:
$ apt-cache madison ant
ant | 1.9.3-2build1 | http://de.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Run Code Online (Sandbox Code Playgroud)
我在哪里或如何获得旧版本的 Apache Ant?