Я не уверен, решит ли это вашу проблему, но обычный подход состоит в том, чтобы создать мост в основном пространстве имен и просто сделать veth1_0
и veth2_0
членами моста.
Затем вы дали veth1
и veth2
правильные IP-адреса в соответствующих пространствах имен, при необходимости добавили маршрутизацию, позволили стеку IP делать свое дело и перестали беспокоиться о пакетах Ethernet. В частности, не используйте ничего похожего на pcap.
Я попытался собрать версию вручную, используя инструкции из Building Ant (Ant manual)в сочетании с Установка Apache Ant (BLFS 8.4)и получил вашу ошибку:
$ export JAVA_HOME=/path/to/my/java-11-openjdk-amd64
$./bootstrap.sh
$ bootstrap/bin/ant -f fetch.xml -Ddest=optional
...
[artifact:dependencies] Downloading: org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.pom from repository central at http://repo1.maven.org/maven2/
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.pom
[artifact:dependencies] [WARNING] Unable to get resource 'org.apache.ant:ant-antunit:pom:1.4' from repository central (http://repo1.maven.org/maven2/): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.pom
[artifact:dependencies] Downloading: org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.jar from repository central at http://repo1.maven.org/maven2/
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.jar
[artifact:dependencies] [WARNING] Unable to get resource 'org.apache.ant:ant-antunit:jar:1.4' from repository central (http://repo1.maven.org/maven2/): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.jar
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
...
Если вы откроете http://repo1.maven.org/maven2/org/apache/ant/ant-antunit/1.4/ant-antunit-1.4.pom, вы увидите, что https требуется.
Отредактируйте ./lib/libraries.properties
и измените URL m2.repo
с http
наhttps
(строку 29)
# Repository to use by default for fetching dependencies.
m2.repo=https://repo1.maven.org/maven2/
и запустите
bootstrap/bin/ant -f fetch.xml -Ddest=optional
снова.