[Bug]: Can't install rust; pkg upgrade
tries to remove it if it's already installed (libllvm too new)
#18164
Labels
bug report
Something is not working properly
Problem description
I was trying to run
pkg upgrade
, and discovered that apt wanted to remove rust for some reason. I eventually figured out that libllvm was trying to upgrade to version 17.x, and rust was still 1.72.1 and wouldn't work with that. (See also #17751, #18027.) Sincepkg
usesapt full-upgrade
rather thanapt upgrade
, it's willing to uninstall any package that gets in the way of upgrading other packages.If I move
.../usr
aside and relaunch to get a fresh prefix, I can't install rust at all because of the version mismatch.For now, I've used
apt-mark hold libllvm
to make it ignore that upgrade (and the matching clang, etc. upgrades) and go ahead with everything else. I'll runapt-mark unhold libllvm
once the new version of rust is available.(I wasn't sure whether to file this as a 'bug report', or a 'package request' for the new version of rust. I went with 'bug report' because of the effect it was having on upgrading, but feel free to change it if that wasn't right.)
What steps will reproduce the bug?
With rust (and libllvm 16) already installed:
$ pkg upgrade
Without rust installed (e.g. in fresh prefix):
$ pkg install rust
What is the expected behavior?
No response
System information
termux-info:
The text was updated successfully, but these errors were encountered: