How to fix missing webkit2gtk-4.0 when launching flutter linux application on Ubuntu
While trying to build a linux application on an old laptop upgrade to ubuntu 24.04, I encountered the following issue: Building Linux application... CMake Error at /usr/share/cmake-3.28/Modules/FindPkgConfig.cmake:619 (message): The following required packages were not found: - webkit2gtk-4.0 Trying sudo apt install libwebkit2gtk-4.0-dev was not working (package not found) The only solution I found was here: https://www.reddit.com/r/Ubuntu/comments/1dd1qxz/libwebkit2gtk4037_is_not_available_on_ubuntu_2404/ Adding Types: deb URIs: http://gb.archive.ubuntu.com/ubuntu Suites: jammy Components: main to /etc/apt/sources.list.d/ubuntu.sources then running sudo apt update sudo apt install libwebkit2gtk-4.0-dev sudo apt --fix-broken install fixes the issue