Winterreisender / webview-nodejs

A Node.js binding to webview
Apache License 2.0
85 stars 10 forks source link

libwebkit2gtk-4.0 not available in Ubuntu 24 & Debian 13 #27

Open ckir opened 3 months ago

ckir commented 3 months ago

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

Winterreisender commented 3 months ago

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