Currently, a swift toolchain is installed under /usr/bin
.
https://github.com/apple/swift-docker/blob/88941f87eaded894699adae832cd0a820ee544ae/nightly-6.0/ubuntu/22.04/Dockerfile#L62
This is a problem because apt packages overwrites them. For example, apt-get install llvm
overwrites Swift's builtin LLVM tools by themselves so that LLVM tools is downgraded from 17 to 14.