webview-nodejs icon indicating copy to clipboard operation
webview-nodejs copied to clipboard

libwebkit2gtk-4.0 not available in Ubuntu 24 & Debian 13

Open ckir opened this issue 1 year ago • 1 comments

Since libwebkit2gtk-4.0 is not available in Ubuntu 24 & Debian 13 (moved to libwebkit2gtk-4.1) I'm leaving this here as a possible solution for Ubuntu.

The solution is as follows:

1.- Update the sources file (sudo vim /etc/apt/sources.list.d/ubuntu.sources) and add the following lines:

Types: deb URIs: http://br.archive.ubuntu.com/ubuntu/ Suites: jammy noble-updates noble-backports Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb URIs: http://security.ubuntu.com/ubuntu/ Suites: jammy-security Components: main restricted universe multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

2.- Execute sudo apt update 3.-Execute sudo apt install libwebkit2gtk-4.0-dev

After that, your installation should go smoothly.

P.S. After install you can edit /etc/apt/sources.list.d/ubuntu.sources and remove the above lines

ckir avatar Jun 14 '24 15:06 ckir

You may also check webview/webview#1110 , we'll follow the upstream's solutions

Winterreisender avatar Jun 15 '24 07:06 Winterreisender

Upstream project (https://github.com/webview/webview) suggests use libwebkit2gtk-4.1-dev for Ubuntu 24.04, you may have a try

Winterreisender avatar Nov 02 '24 02:11 Winterreisender

Upstream project now have a detailed guide for Ubuntu 24 and Debian 13. Since we just added a link to that, there's no need to change the README.

Winterreisender avatar Nov 21 '24 11:11 Winterreisender