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

Could not install on ubuntu 2024 #4914

Closed
emadbaqeri opened this issue Sep 14, 2024 · 13 comments
Closed

Could not install on ubuntu 2024 #4914

emadbaqeri opened this issue Sep 14, 2024 · 13 comments
Labels
bug Something isn't working distribution Something related to the packaged binaries, app-images and installers

Comments

@emadbaqeri
Copy link

emadbaqeri commented Sep 14, 2024

Version

0.12.25

Operating System

Linux

Distribution Method

deb (Linux)

Describe the issue

I've downloaded the app .deb file on the fresh Ubuntu 24.04.1 LTS and want to install it using sudo apt install ./git-butler_0.12.25_amd64.deb but I end up with this output from the command:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'git-butler' instead of './git-butler_0.12.25_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:
 git-butler : Depends: libwebkit2gtk-4.0-dev but it is not installable
              Depends: libwebkit2gtk-4.0-37 but it is not installable
E: Unable to correct problems, you have held broken packages.

How to reproduce

Download the .deb file and try installing it on Ubuntu 24.04.1 LTS x86_64 using sudo apt install ./git-butler_0.12.25_amd64.deb

Expected behavior

I just want it to install normally as it should.

Relevant log output

.-/+oossssoo+/-.               emad@obonto
        `:+ssssssssssssssssss+:`           -----------
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 24.04.1 LTS x86_64
    .ossssssssssssssssssdMMMNysssso.       Host: 81BF Lenovo ideapad 520-15IKB
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 6.8.0-44-generic
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 8 mins
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 1722 (dpkg), 7 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.2.21
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 46.0
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru-dark [GTK2/3]
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru-dark [GTK2/3]
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: WarpTerminal
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i7-8550U (8) @ 1.800GHz
    .ossssssssssssssssssdMMMNysssso.       GPU: NVIDIA GeForce MX150
      -+sssssssssssssssssyyyssss+-         GPU: Intel UHD Graphics 620
        `:+ssssssssssssssssss+:`           Memory: 2521MiB / 15774MiB
            .-/+oossssoo+/-.
@emadbaqeri emadbaqeri added the bug Something isn't working label Sep 14, 2024
@emadbaqeri
Copy link
Author

emadbaqeri commented Sep 14, 2024

I've also checked this blog post on tauri blog and did what said there, but also it's not working

@emadbaqeri
Copy link
Author

this issue also closed but this is true for my case and it's not been resolved

@emadbaqeri
Copy link
Author

I've also installed the libwebkit2gtk using synaptics GUI but still have the issue

image

@Byron Byron added the distribution Something related to the packaged binaries, app-images and installers label Sep 15, 2024
@Byron
Copy link
Collaborator

Byron commented Sep 15, 2024

Thanks a lot for reporting, and for not giving up in getting the installation to work!

@ndom91 also works on Linux and might have an idea as to what might be happening here.

@ndom91
Copy link
Contributor

ndom91 commented Sep 15, 2024

Hey yeah thanks for reaching out.

Unfortunately Ubuntu 24.04 no longer provides libwebkit2gtk-4.0-dev in their repositories. Only the 4.1 version.

Tauri v1 applications, like ours, require -4.0 and tauri v2 apps require -4.1.

I see in your synaptics screenshot you've only installed libwebkit2gtk-4.0-docs and the 4.1-dev package. You'll need the 4.0-dev package, the exact package mentioned toward the bottom of the original log output you shared above.

There is a pinned issue in the Tauri repository which talks about this specific issue if you want some more info. Long story short, you'll have to install libwebkit2gtk-4.0-dev manually somehow, or alternatively you could give our AppImage release a shot 🙏

@emadbaqeri
Copy link
Author

Thanks @ndom91 and @Byron, I'll be using AppImage ;)
Is there any plan for migrating from tauri 1.0 to 2.0? If there is I would love to contribute with that

@ndom91
Copy link
Contributor

ndom91 commented Sep 15, 2024

@emadbaqeri Glad to hear the appimage works for you!

Regarding a Tauri v2 update - we were about to pull the trigger on that upgrade last week actually (PR), but it turns out that the tauri updater plugin changed the way the name of the binary is generated.

This is an issue when updating from v1 to v2 on MacOS, for example, because the app will refuse to finish the upgrade process and launch a binary that is of a different name than the one that's currently running (itself), more details here: gitbutlerapp/tauri#1

EDIT: Latest update seems to be that someone from the Tauri team is looking into it, so hopefully we can continue with the v2 upgrade soon 🤞 (Source)

@ndom91
Copy link
Contributor

ndom91 commented Oct 30, 2024

We've merged the Tauri v2 upgrade and would love it if you cuold give the latest nightly a try to let us know if this issue is still present for you.

Should be 0.5.849 at the time of writing - https://app.gitbutler.com/downloads

@mbtuckersimm
Copy link

0.5.849 installed fine for me on Linux Mint 22.

@soundslocke
Copy link

Same here, the 0.5.849 nightly deb works now for me in Ubuntu 24.04. I had been using the AppImage to work around this.

@ndom91
Copy link
Contributor

ndom91 commented Oct 31, 2024

Okay great, thanks for confirming folks!

I'll close this issue as we've seemingly nailed down the underlying issue and upgraded to Tauri v2.

A quick summary for folks just catching up:

  • Tauri v1 uses libwebkit2gtk-4.0 and that's only natively supported in Ubuntu 22.04 (or similar) or earlier
  • Tauri v2 (which we're on now as of nightly 0.5.841) is only supported on Ubuntu 22.04 (or similar) and greater

@ndom91 ndom91 closed this as completed Oct 31, 2024
@Masber
Copy link

Masber commented Nov 2, 2024

Hi, Ubuntu 24.10 not working

sudo dpkg -i Downloads/GitButler_Nightly_0.5.856_amd64.deb
Selecting previously unselected package git-butler-nightly.
(Reading database ... 338697 files and directories currently installed.)
Preparing to unpack .../GitButler_Nightly_0.5.856_amd64.deb ...
Unpacking git-butler-nightly (0.5.856) ...
dpkg: dependency problems prevent configuration of git-butler-nightly:
 git-butler-nightly depends on libwebkit2gtk-4.1-dev; however:
  Package libwebkit2gtk-4.1-dev is not installed.

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

@ndom91
Copy link
Contributor

ndom91 commented Nov 3, 2024

Hi, Ubuntu 24.10 not working

sudo dpkg -i Downloads/GitButler_Nightly_0.5.856_amd64.deb
Selecting previously unselected package git-butler-nightly.
(Reading database ... 338697 files and directories currently installed.)
Preparing to unpack .../GitButler_Nightly_0.5.856_amd64.deb ...
Unpacking git-butler-nightly (0.5.856) ...
dpkg: dependency problems prevent configuration of git-butler-nightly:
 git-butler-nightly depends on libwebkit2gtk-4.1-dev; however:
  Package libwebkit2gtk-4.1-dev is not installed.

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

Looks like you're missing a dependency, libwebkit2gtk-4.1-dev.

You should be able to install it with sudo apt install -f after having tried installing GitButler as you've shown above since we have it listed as an explicit dependency. Otherwise, you can manually install that package with apt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working distribution Something related to the packaged binaries, app-images and installers
Projects
None yet
Development

No branches or pull requests

6 participants