afadil / wealthfolio

A Beautiful Private and Secure Desktop Investment Tracking Application
https://wealthfolio.app
GNU Lesser General Public License v3.0
3.69k stars 168 forks source link

Can't install on Ubuntu 24.04.1 #44

Open dsyrstad opened 1 week ago

dsyrstad commented 1 week ago

I'm installing using:

sudo apt install wealthfolio_1.0.6_amd64.deb

And I get:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'wealthfolio' instead of 'wealthfolio_1.0.6_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wealthfolio : Depends: libwebkit2gtk-4.0-37 but it is not installable
E: Unable to correct problems, you have held broken packages.
Cydnirn commented 1 week ago

What happens when you install libwebkit2gtk-4.0-37 directly?

dsyrstad commented 1 week ago

What happens when you install libwebkit2gtk-4.0-37 directly?

@Cydnirn I get:

$ sudo apt install libwebkit2gtk-4.0-37
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libwebkit2gtk-4.0-37
E: Couldn't find any package by glob 'libwebkit2gtk-4.0-37'
kolarski commented 1 week ago

Ubuntu 24 comes with preinstalled: libwebkit2gtk-4.1-0

Cydnirn commented 1 week ago

What happens when you install libwebkit2gtk-4.0-37 directly?

@Cydnirn I get:

$ sudo apt install libwebkit2gtk-4.0-37
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libwebkit2gtk-4.0-37
E: Couldn't find any package by glob 'libwebkit2gtk-4.0-37'

Hmm, so Ubuntu 24 doesn't have the 4.0-37 version, but Ubuntu 23 does

You can try adding the previous ubuntu version in /etc/apt/sources.list.d/ubuntu.sources then try to install it again and then remove the version

Or you can try this workaround I found from https://github.com/bambulab/BambuStudio/issues/3973

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