Tauri on Debian trixie / Ubuntu 24.04: apt 'E: Couldn't find any package by regex 'libwebkit2gtk-4.0-dev'': Tauri 2 uses libwebkit2gtk-4.1-dev + libsoup-3.0-dev
Fix: for Tauri 2, install the 4.1 WebKitGTK stack: apt-get install -y libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev libsoup-3.0-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev build-essential pkg-config libssl-dev file. Tauri 1 linked webkit2gtk-4.0 (libsoup2), and Tauri 2 moved to webkit2gtk-4.1 (libsoup3), so dependency lists copied from Tauri 1 guides name packages that newer distros no longer ship. On debian:trixie, apt-cache policy shows no candidate for libwebkit2gtk-4.0-dev, while libwebkit2gtk-4.1-dev (2.54.0-1~deb13u3), libjavascriptcoregtk-4.1-dev and libsoup-3.0-dev are available. Ubuntu 24.04 likewise dropped the 4.0 dev package. A Tauri 1 app therefore cannot be built on these releases without an older base image (bookworm or 22.04), which is one more reason to migrate. If pkg-config reports 'webkit2gtk-4.1' or 'libsoup-3.0' not found during cargo build, the -dev package is missing; the runtime libraries alone are not enough. Plan for size and time in containers: on debian:bookworm-slim the apt step pulled about 721 packages (~449 MB) and the first cargo build compiles several hundred crates (gtk-rs, soup3, javascriptcore-rs), so expect a long first build. Cache ~/.cargo/registry and target/ between builds.