$ sudo snap install devpack-for-rust --classic

Ubuntu 26.10 distributes the latest developer toolchains from upstream, including Rust 1.97.1.

The Devpack for Rust snap brings a collection of tools to get started with Rust, including Rustup for toolchain management, an IDE of your choice, and a suite of command-line utilities.

Learn more: https://canonical.com/blog/canonical-releases-ubuntu-26-10-stonking-stingray