Issue 125495
Summary Restrict apt to the necessary architecture and signature.
Labels packaging, platform:linux
Assignees
Reporter SunBlack
    I just added LLVM 20 to my package sources and on first `apt update` I saw this:
```
Get:9 https://apt.llvm.org/jammy llvm-toolchain-jammy-20/main amd64 Packages [13,1 kB]
Get:10 https://apt.llvm.org/jammy llvm-toolchain-jammy-20/main i386 Packages [3.074 B]
```

As my machine is amd64 I think the `i386` will be never relevant. I think the `llvm.sh` script should create this line:

```
deb [arch=amd64 signed-by=/etc/apt/keyrings/apt.llvm.org.asc] http://apt.llvm.org/jammy/ llvm-toolchain-jammy-20 main
```

Note: On this way it is also not necessary to have the keyring within `trusted.gpg.d`.

See [installation guide of docker](https://docs.docker.com/engine/install/ubuntu/), which is using this restriction.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to