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

Ubuntu 24.04 LTS: error while loading shared libraries: libwebkit2gtk-4.0.so.37 #3973

Open
2 tasks
mhoellein opened this issue Apr 28, 2024 · 27 comments
Open
2 tasks
Assignees
Labels
bug Something isn't working

Comments

@mhoellein
Copy link

Bambu Studio Version

1.9.1 Public Beta 4

Where is the application from?

Bambu Lab github releases

OS version

Ubuntu 24.04

Additional system information

No response

Printer

Bambu Lab X1

How to reproduce

start the AppImage

Actual results

error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory

Expected results

BambuStudio should start

Project file & Debug log uploads

log.zip

Checklist of files to include

  • Log file
  • Project file
@mhoellein mhoellein added the bug Something isn't working label Apr 28, 2024
@Bjoernsen
Copy link

I recently updated from 23.10 to 24.04 and have exactly the same error message. Everything worked with 23.10. I already install libwebkit2gtk-4.1-dev (4.0 does not exist) via apt without success.

@lanewei120 lanewei120 self-assigned this Apr 30, 2024
@mampaiva
Copy link

I solved this problem by adding the previous lts repository and installing version 4.0.
For this I changed the file sudo vim /etc/apt/sources.list.d/ubuntu.sources
Add the follow line:
`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`

then update the repositories with apt update and go to synaptic to search and install the correct version of libwebkit2gtk

Screenshot from 2024-04-30 11-27-03

@ajft
Copy link

ajft commented Apr 30, 2024

thanks @mampaiva - you've solved a problem I'm experiencing with Cisco AnyConnect VPN software that gives the same webkit error

@sanity
Copy link

sanity commented May 6, 2024

Recently updated to Ubuntu 24.04 and experiencing the same issue.

@lanewei120
Copy link
Collaborator

please try following commands on ubuntu 24.04 to solve this issue currently

sudo ln -sf /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37
sudo ln -sf /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

we are also trying to solve this issue without the above workarounds

@LuisPortanel
Copy link

Thanks, @mampaiva . I recently upgraded to Ubuntu 24.04 and I had issues with my Pulse Secure VPN / Ivanti Secure VPN installation. With your workaround, I could finally install the VPN.
Thanks!

@mechano
Copy link

mechano commented May 11, 2024

Creating the links doesn't work on my Ubuntu 24.04

sudo ln -sf /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37
sudo ln -sf /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

I've a core dump.

But it works for me this command from terminal:

WEBKIT_DISABLE_COMPOSITING_MODE=1 .appImage/OrcaSlicer.AppImage

I've added to the desktop icon I've created under .local/share/applications

[Desktop Entry]
Name=OrcaSlicer
GenericName=3D Printing Software
Icon=OrcaSlicer
Exec="WEBKIT_DISABLE_COMPOSITING_MODE=1 /home/mechano/.appImage/OrcaSlicer.AppImage" %F
Terminal=false
Type=Application
MimeType=model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;application/x-amf;
Categories=Graphics;3DGraphics;Engineering;
Keywords=3D;Printing;Slicer;slice;3D;printer;convert;gcode;stl;obj;amf;SLA
StartupNotify=false
StartupWMClass=OrcaSlicer

@lanewei120
Copy link
Collaborator

I have also added those webkit libraries into appImage which can be executed without any modification
here is the link
https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip
Copy link

DipFlip commented May 14, 2024

please try following commands on ubuntu 24.04 to solve this issue currently

sudo ln -sf /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37
sudo ln -sf /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.1.so.0 /usr/lib/x86_64-linux-gnu/libjavascriptcoregtk-4.0.so.18

we are also trying to solve this issue without the above workarounds

This results in the following error for me (Ubuntu 24.04)

(process:79503): libsoup-ERROR **: 13:25:25.773: libsoup2 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported.

@lanewei120
Copy link
Collaborator

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

@DipFlip
Copy link

DipFlip commented May 15, 2024

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

Thank you @lanewei120 but I'm actually trying to run another program - Cisco Anyconnect. It also throws the same error so that's how I ended up on this thread.

@jinzzasol
Copy link

I solved this problem by adding the previous lts repository and installing version 4.0. For this I changed the file sudo vim /etc/apt/sources.list.d/ubuntu.sources Add the follow line: `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`

then update the repositories with apt update and go to synaptic to search and install the correct version of libwebkit2gtk

Screenshot from 2024-04-30 11-27-03

This is the best solution. Thank you.

@MackBambu
Copy link
Contributor

On Ubuntu, each release has its own versions of software. When a new LTS release is published, older releases no longer receive updates for their software. However, our software cannot operate in this manner. Supporting an increasing number of Linux distributions can lead to larger and more cumbersome software packages.
I propose creating a script that detects different distributions and corrects their inconsistencies.

@thaowl
Copy link

thaowl commented Jun 8, 2024

Using building on Ubuntu 24.04 tauri-apps/tauri#9662 helps.

--
I worked around this by adding the following line to /etc/apt/sources.list:

deb http://gb.archive.ubuntu.com/ubuntu jammy main

Then doing:

sudo apt update
sudo apt install libwebkit2gtk-4.0-dev

--
remove added line from sources.list after installation to keep enviroment sane.

Then build deps and BambuStudio.
Altough deps do build with libwebkit2gtk-4.1, building BambuStudio later will fail.
Works for me.

@MWWorks
Copy link

MWWorks commented Jun 13, 2024

Confirm that the new 1.9.2 release also has this issue, it is unable to run on eg Ubuntu 24.04.

Also confirm that the patched version provided above by @lanewei120 seems to work - so please patch the 1.9.2 - and ideally include it going forward, the appimage should have all dependencies :)

@caco3
Copy link

caco3 commented Jun 14, 2024

Same issue for me on Ubuntu 24.04

@hainjedaf
Copy link

Same issue on Debian unstable/Sid/Trixie

since 1.09 no BambuSLicer runs. All crash with following error:
[code]
/tmp/.mount_bambu-L82HJc/bin/bambu-studio: error while loading shared libraries: libwebkit2gtk-4.0.so.37: cannot open shared object file: No such file or directory
[/code]

Unpacking the AppImage and running the executable, causes same error

@lanewei120
Copy link
Collaborator

Confirm that the new 1.9.2 release also has this issue, it is unable to run on eg Ubuntu 24.04.

Also confirm that the patched version provided above by @lanewei120 seems to work - so please patch the 1.9.2 - and ideally include it going forward, the appimage should have all dependencies :)

that version can not work on some linux versions also, we will find a final solution later

currently please use the workaround solution or the flathub version https://flathub.org/apps/com.bambulab.BambuStudio

@Andrew-Pynch
Copy link

@mampaiva this worked, thank you so much!

@MackBambu
Copy link
Contributor

https://github.com/MackBambu/BambuStudio/actions/runs/9691686545/artifacts/1643561459
This appimage was built using libwebkit2gtk-4.1.

@hainjedaf
Copy link

hainjedaf commented Jun 27, 2024

It works on Debian 12 Sid/Unstable.

No it doesn't....
-Opening a file over a network connection (e.g. gvfs smb) causes some files to report 'file contains no geometric data'
Copy same file to local drive. Opens flawlessly.

-Slicing the Upgraded Bambu Spoolwinder I get:
boost::filesystem::create_directory: No such file or directory [system:2]:
"/tmp/bamboo_model/Thu_Jun_27/21_12_35#109292#47/Metadata"

@leodrostes
Copy link

I solved this problem by adding the previous lts repository and installing version 4.0. For this I changed the file sudo vim /etc/apt/sources.list.d/ubuntu.sources Add the follow line: `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`

then update the repositories with apt update and go to synaptic to search and install the correct version of libwebkit2gtk

Screenshot from 2024-04-30 11-27-03

it worked for me too. Thanks!

@m1ndcr4ck
Copy link

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

Thank you @lanewei120 but I'm actually trying to run another program - Cisco Anyconnect. It also throws the same error so that's how I ended up on this thread.

@DipFlip , I'm trying the same, any luck to solve this issue?

@DipFlip
Copy link

DipFlip commented Aug 14, 2024

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

Thank you @lanewei120 but I'm actually trying to run another program - Cisco Anyconnect. It also throws the same error so that's how I ended up on this thread.

@DipFlip , I'm trying the same, any luck to solve this issue?

@m1ndcr4ck yes thaowl's solution worked for me so now i have Anyconnect installed on Ubuntu 24.04 and it's working fine!

@m1ndcr4ck
Copy link

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

Thank you @lanewei120 but I'm actually trying to run another program - Cisco Anyconnect. It also throws the same error so that's how I ended up on this thread.

@DipFlip , I'm trying the same, any luck to solve this issue?

@m1ndcr4ck yes thaowl's solution worked for me so now i have Anyconnect installed on Ubuntu 24.04 and it's working fine!

@DipFlip thanks so much, currently, I was able to run it using this workaround #3973 (comment), however, I still need it on a different Linux distro "Kali"

@jmcbri
Copy link

jmcbri commented Sep 15, 2024

I have also added those webkit libraries into appImage which can be executed without any modification here is the link https://github.com/bambulab/BambuStudio/actions/runs/9040304943/artifacts/1493056554

@DipFlip how about trying this appImage which includes the libwebkit libraries

Thank you @lanewei120 but I'm actually trying to run another program - Cisco Anyconnect. It also throws the same error so that's how I ended up on this thread.

DipFlip - Did you get Citrix to run? If so, how. (Sorry!)

@xandark
Copy link

xandark commented Oct 13, 2024

My fix was simple and didn't need to mess with changing repository sources, rather in 24.04 I just installed one package:

sudo apt install libwebkit2gtk-4.1-0

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