Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wont start in Ubuntu 24.04 LTS #140

Open
paulhiggs opened this issue Jul 27, 2024 · 17 comments
Open

Wont start in Ubuntu 24.04 LTS #140

paulhiggs opened this issue Jul 27, 2024 · 17 comments
Labels
bug Something isn't working

Comments

@paulhiggs
Copy link

paulhiggs commented Jul 27, 2024

I installed wireguard and wireguard-cli but trying to launch wireguard-cli fails, both in user and administrator modes...

paul@ENVY:~$ wireguard-gui
current: Err(Os { code: 2, kind: NotFound, message: "No such file or directory" })
payload: IpPayload { origin: "188.74.74.72" }
app inited
app state: AppSt(Mutex { data: <locked> })
Gtk-Message: 02:52:08.854: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(wireguard-gui:19106): Gtk-WARNING **: 02:52:08.935: GTK+ module /snap/wireguard-gui/5/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 02:52:08.935: Failed to load module "canberra-gtk-module"

(wireguard-gui:19106): Gtk-WARNING **: 02:52:08.936: GTK+ module /snap/wireguard-gui/5/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 02:52:08.936: Failed to load module "canberra-gtk-module"
libEGL fatal: DRI driver not from this Mesa build ('23.2.1-1ubuntu3.1~22.04.2' vs '23.0.4-0ubuntu1~22.04.1')

paul@ENVY:~$ 
paul@ENVY:~$ 
paul@ENVY:~$ 
paul@ENVY:~$ sudo wireguard-gui
mkdir: cannot create directory ‘/run/user/0’: Permission denied
current: Err(Os { code: 2, kind: NotFound, message: "No such file or directory" })
payload: IpPayload { origin: "188.74.74.72" }
app inited
app state: AppSt(Mutex { data: <locked> })
Authorization required, but no authorization protocol specified

(wireguard-gui:19222): Gtk-WARNING **: 02:52:20.063: cannot open display: :0

Am i missing some prerequisite? I dont want to develop or build, just run it

@paulhiggs
Copy link
Author

paulhiggs commented Jul 27, 2024

Note that snap install wireguard-gui installs 0.1.1

paul@ENVY:~$ snap install wireguard-gui
wireguard-gui 0.1.1 from leone (leonev) installed

so I downloaded the 0.1.2 package and find a missing dependency libwebkit2gtk-4.0-37

paul@ENVY:~/Downloads$ sudo dpkg -i wireguard-gui_0.1.2_amd64.deb 
Selecting previously unselected package wireguard-gui.
(Reading database ... 172258 files and directories currently installed.)
Preparing to unpack wireguard-gui_0.1.2_amd64.deb ...
Unpacking wireguard-gui (0.1.2) ...
dpkg: dependency problems prevent configuration of wireguard-gui:
 wireguard-gui depends on libwebkit2gtk-4.0-37; however:
  Package libwebkit2gtk-4.0-37 is not installed.

dpkg: error processing package wireguard-gui (--install):
 dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...
Errors were encountered while processing:
 wireguard-gui

This is solved by

  1. adding deb http://gb.archive.ubuntu.com/ubuntu jammy main into /etc/apt/sources.list
  2. running sudo apt update
  3. running sudo apt-get install libcanberra-gtk-module libjavascriptcoregtk-4.0-18 libicu70 libwebkit2gtk-4.0-37

Perhaps some information on installing prerequisites (or having them in the install package) should be provided

@paulhiggs paulhiggs changed the title Wont start in Ubuntu 20.04 LTS Wont start in Ubuntu 24.04 LTS Jul 27, 2024
@leon3s
Copy link
Owner

leon3s commented Aug 3, 2024

Hey thanks for the report, the snap version doesn't work properly currently.

The missing dependencies such as libcanberra-gtk-module libjavascriptcoregtk-4.0-18 libicu70 libwebkit2gtk-4.0-37 is weird i didn't had to install them on a fresh install, i'll add them in the prerequise in the readme

@leon3s
Copy link
Owner

leon3s commented Aug 4, 2024

I have updated the readme, closing this issue.

@melroy89
Copy link
Contributor

melroy89 commented Aug 6, 2024

@paulhiggs so the deb file is broken for 24.04 you say? Since I don't have these issues either. However I installed the deb on Linux mint 21.3, which is actually based on a older Ubuntu: Ubuntu 22.04.

Ps. I do expect libwebkit2gtk to be required indeed. But not all listed deps above are required I believe.

Also the build system should have the debs listed in the deb file. However, maybe the deb file is only valid for Ubuntu 22.04.

@leon3s leon3s reopened this Aug 6, 2024
@leon3s leon3s added the bug Something isn't working label Aug 9, 2024
@melroy89
Copy link
Contributor

melroy89 commented Sep 2, 2024

This is the error I see when trying to install the deb:

image

@leon3s
Copy link
Owner

leon3s commented Sep 3, 2024

I guess extending the dependencies will fix that i'll add it in 0.1.4 release

@leon3s
Copy link
Owner

leon3s commented Sep 3, 2024

0.1.4 is release and should fix the problem

@melroy89
Copy link
Contributor

melroy89 commented Sep 4, 2024

Well not this deb file installation error:

image

@melroy89
Copy link
Contributor

melroy89 commented Sep 4, 2024

So under Ubuntu 24.04 this package is now called: libwebkit2gtk-4.1-0. https://packages.ubuntu.com/noble/libwebkit2gtk-4.1-0

@melroy89
Copy link
Contributor

melroy89 commented Sep 4, 2024

So in the package depends for Ubuntu you need to use an "OR" syntax basically like : libwebkit2gtk-4.0-37 | libwebkit2gtk-4.1-0. So on older Ubuntu releases it might need to install and find the 4.0-37 version, while on newer ubuntu releases it's able to find and install 4.1.0 of this package dependency.

I hope that is possible to do that in Nextauri, I use CMake and with CMake I can use this | pipe symbol for this purpose.. Here a real-life example of my WineGUI project: https://gitlab.melroy.org/melroy/winegui/-/blob/main/cmake/packaging.cmake?ref_type=heads#L40

@leon3s
Copy link
Owner

leon3s commented Sep 11, 2024

I doubt this is possible i'll see what i can do

@melroy89
Copy link
Contributor

@osering
Copy link

osering commented Oct 7, 2024

On Lubuntu 24.04.01 v0.1.5 .deb also has unsatisfiable dependencies.
instead of libjavascriptcoregtk-4.0-18 needs 4.1-0 or 6.1-0
instead of libicu70, needs 74
instead of libwebkit2gtk-4.0-37 needs 4.1-0
P.S. Appimage functions.

@melroy89
Copy link
Contributor

melroy89 commented Oct 7, 2024

On Lubuntu 24.04.01 v0.1.5 .deb also has unsatisfiable dependencies.

Yes well. It's the same issue, since Lubuntu 24.04 is based on Ubuntu 24.04 (Noble Numbat).

@cloudy-sfu
Copy link

I'm using Ubuntu 24.04.1 LTS.
@osering method works, but the release v0.1.5 stable still sticks on libwebkit2gtk-4.0-37. Even used dpkg -i --force-all to skip, the installed program still cannot run.

@melroy89
Copy link
Contributor

melroy89 commented Oct 8, 2024

Even used dpkg -i --force-all to skip, the installed program still cannot run.

Of course that won't fix the issue. Now you need to make sure you manually install all package dependencies. Like
libjavascriptcoregtk, libicu and libwebkit2gtk. And most likely more.

@leon3s
Copy link
Owner

leon3s commented Oct 9, 2024

I'll create a build workflow that run on ubuntu 24 to fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants