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

Unable to Start After Upgrade to v2.1.0 #163

Closed
Xtigyro opened this issue Jul 3, 2019 · 54 comments
Closed

Unable to Start After Upgrade to v2.1.0 #163

Xtigyro opened this issue Jul 3, 2019 · 54 comments
Assignees
Labels
bug installers/snap Issues related to the Snap installer

Comments

@Xtigyro
Copy link

Xtigyro commented Jul 3, 2019

Description

miroslav@xtigyro-kubuntu:~$ env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/github-desktop_github-desktop.desktop /snap/bin/github-desktop
/snap/github-desktop/63/app/github-desktop: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_date_copy

Versions

  • GitHub Desktop: v2.1.0 Linux RC1
  • Operating system: Kubuntu 18.04
  • GLib version: 2.56.4-0ubuntu0.18.04.3 amd64
root@xtigyro-kubuntu:/usr/lib/x86_64-linux-gnu# ll /usr/lib/x86_64-linux-gnu/libgobject*
lrwxrwxrwx 1 root root     26 юни  5 19:47 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.5600.4
-rw-r--r-- 1 root root 342072 юни  5 19:47 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.5600.4
@DivineOmega
Copy link

I'm facing the same issue on Ubuntu 18.04 LTS. Fresh install here, rather than upgrade.

@Xtigyro
Copy link
Author

Xtigyro commented Jul 3, 2019

@shiftkey @DivineOmega Works fine when using the AppImage - so it should be related to the snap pkg.

@merlinND
Copy link

merlinND commented Jul 4, 2019

On Fedora 29, I was unable to run the application after an auto-update of the snap to revision 63:

$ snap run github-desktop
/snap/github-desktop/63/app/github-desktop: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory

Reverting to revision 62 did the trick:

$ snap revert --revision=62 github-desktop
github-desktop reverted to 2.0.4-linux1

@subhokarmakar
Copy link

Facing the same issue

$ snap run github-desktop
> /snap/github-desktop/63/app/github-desktop: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0: undefined symbol: g_date_copy

What is this error!
@Xtigyro @DivineOmega @shiftkey

@DivineOmega
Copy link

DivineOmega commented Jul 4, 2019

@merlinND I am receiving an error when attempting to revert to revision 62.

jordan@jordan-iMac:~$ snap revert --revision=62 github-desktop
error: cannot revert "github-desktop": cannot find revision 62 for snap
       "github-desktop"

@liao961120
Copy link

liao961120 commented Jul 4, 2019

I downloaded GitHubDesktop-linux-2.0.4-linux1.snap directly from 2.0.4 release assets and installed it with snap:

snap remove github-desktop
snap install path/to/GitHubDesktop-linux-2.0.4-linux1.snap --classic

it worked for me.

@subhokarmakar
Copy link

@liao961120 Thanks brooo It worked

@DivineOmega
Copy link

@liao961120 I had to use --dangerous when installing the downloaded version to bypass the lack of signatures.

@liao961120
Copy link

@sulkhaniaba did you just copied <path/to/GitHubDesktop-linux-2.0.4-linux1.snap> literally?

You have to specify the path of the snap file on your computer, not the path posted abvoe

@immackay immackay mentioned this issue Jul 7, 2019
@immackay
Copy link

immackay commented Jul 7, 2019

diff \
    <(unsquashfs -l GitHubDesktop-linux-2.0.4-linux1.snap) \
    <(unsquashfs -l GitHubDesktop-linux-2.1.0-linux1.snap) \
        | sed -n '/x86_64-linux-gnu/s|squashfs-root||p'

Running produces this output.

@shiftkey
Copy link
Owner

@immackay thanks for that helpful script for what's changed between releases. That will help me trace what changes need to be made when packaging...

@shiftkey shiftkey self-assigned this Jul 21, 2019
@shiftkey shiftkey added the bug label Jul 21, 2019
@lucyllewy
Copy link

There's a discussion and analysis at the snapcraft forum: https://forum.snapcraft.io/t/undefined-symbol-g-date-copy-problem/12235/4

@bear-good
Copy link

@liao961120

snap install path/to/GitHubDesktop-linux-2.0.4-linux1.snap --classic

error: cannot open: "path/to/GitHubDesktop-linux-2.0.4-linux1.snap"

@immackay
Copy link

@bear-good
Say you've downloaded GitHubDesktop-linux-2.0.4-linux1.snap to ~/Downloads. Enter a shell and use these commands.

cd ~/Downloads
snap remove github-desktop
snap install GitHubDesktop-linux-2.0.4-linux1.snap --classic --dangerous

@bear-good
Copy link

@immackay ok,i will have a try

@bear-good
Copy link

@immackay I use snap install --edge github-desktop,that's ok it can run.

@immackay
Copy link

@bear-good The edge channel was last updated in April, if you're fine with a significantly older version then I suppose that works.

@bear-good
Copy link

@immackay I know now,it can't Sign in

@immackay
Copy link

Okay, going to leave this here just for clarity:

Download version 2.0.4 from here (found on the releases page). Assuming you're using a common browser, this will save the file to ~/Downloads.

You can then uninstall 2.1.0 and install 2.0.4 using the shell commands

cd ~/Downloads
snap remove github-desktop
snap install GitHubDesktop-linux-2.0.4-linux1.snap --classic --dangerous

@krushnaj
Copy link

I still cannot open github desktop. I'm currently using Ubuntu 19.04. when I run snap run github-desktop i get Segmentation fault (core dumped) error. Any way I can solve this?

@immackay
Copy link

@krushnaj have you followed the instructions for installing 2.0.4? There has not been a release fixing this issue as of yet

@prensmiskin
Copy link

@ immackay kullanıyorum snap install --edge github-desktop, çalıştırılabilir.

thanks it worked for me.

@krushnaj
Copy link

@immackay no i haven't tried it yet. Will try it now.

@didorg
Copy link

didorg commented Sep 21, 2019

I downloaded GitHubDesktop-linux-2.0.4-linux1.snap directly from 2.0.4 release assets and installed it with snap:

snap remove github-desktop
snap install path/to/GitHubDesktop-linux-2.0.4-linux1.snap --classic

it worked for me.

Also they have GitHubDesktop-linux-2.0.4-linux1.deb now

@krushnaj
Copy link

@immackay thanks Github desktop 2.0.4 works fine.

@Mannshoch
Copy link

Is there any progress in updating the Snapstore file?

@github8bits
Copy link

problem still exits. please fix.

@github8bits
Copy link

snap revert --revision=62 github-desktop
error: cannot revert "github-desktop": cannot find revision 62 for snap
"github-desktop"

ubuntu 18.04

@ebarracchia
Copy link

Okay, going to leave this here just for clarity:

Download version 2.0.4 from here (found on the releases page). Assuming you're using a common browser, this will save the file to ~/Downloads.

You can then uninstall 2.1.0 and install 2.0.4 using the shell commands

cd ~/Downloads
snap remove github-desktop
snap install GitHubDesktop-linux-2.0.4-linux1.snap --classic --dangerous

That's one worked for me. Thanks!

@KiTTYsh
Copy link

KiTTYsh commented Oct 20, 2019

Can confirm that version 2.1.0 installed on Gentoo via snapcraft complains of missing libpcre.so.3

/snap/github-desktop/63/app/github-desktop: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory

@softhightech
Copy link

this works for me on ubuntu 19.
after download the file login into download folder .
open terminal & write
cd ~
cd Downloads
snap install GitHubDesktop-linux-2.0.4-linux1.snap --classic --dangerous

then find github and run it it works.

@Uzay-G
Copy link

Uzay-G commented Dec 12, 2019

Hey could someone please help. I have followed all the steps and have the file installed but when I run the snap install GitHubDesktop-linux-2.0.4-linux1.snap --classic --dangerous command. I get the response: error: cannot read snap file: exit status 1

Does anyone have any ideas about why this might be happening?
Thanks 😄

@lifenstein
Copy link

Hey could someone please help. I have followed all the steps and have the file installed but when I run the snap install GitHubDesktop-linux-2.0.4-linux1.snap --classic --dangerous command. I get the response: error: cannot read snap file: exit status 1

Does anyone have any ideas about why this might be happening?
Thanks

That should work if you have the file GitHubDesktop-linux-2.0.4-linux1.snap in the directory you're running the command in. Did you download it? Can you see it if you run ls GitHub*.snap before running the snap install... ?

@Uzay-G
Copy link

Uzay-G commented Dec 13, 2019

Yeah no @lifenstein I checked and I have the file. I don't understand where this comes from.

@lifenstein
Copy link

Yeah no @lifenstein I checked and I have the file. I don't understand where this comes from.

Check the file permissions just in case to make sure you can read it, and then try referring to the file with explicit relative path (snap install ./GitHubDesktop ...) - just in case you have unusual ordering of paths in the PATH variable.

@johngrabner
Copy link

I have a fresh version of ubuntu 18.04 with git being the first installed program and github-desktop being the second. Instructions from immackay on Aug 26 resulted in error libcurl3 missing. I needed to add

sudo apt-get install libcurl3 -y

@ipkpjersi
Copy link

Don't mean to bug you but I'm just wondering where we're at with this? I definitely understand something like this can be quite tricky to solve.

@shiftkey
Copy link
Owner

shiftkey commented Mar 8, 2020

@ipkpjersi I want to bring it back (see #202) but diagnosing how it's failing and how to package it correctly was a huge timesink that lead to me falling behind with updates.

I think the simplest way forward would be to generate the Snap installer from the working deb package (guide here: https://www.electronjs.org/docs/tutorial/snapcraft#using-an-existing-debian-package) but I fear that won't completely resolve these issues with missing symbols.

That would leave crafting the package configuration by hand, and while I did look at how VSCode does this months ages ago it's not something I was able to port easily for my use case.

@shiftkey
Copy link
Owner

Closing this out as I don't have the bandwidth to revisit this in the short or medium term. If someone else wants to have a shot at this I've added notes in #202 which are from the last time I thought about Snap packaging...

@shiftkey shiftkey closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug installers/snap Issues related to the Snap installer
Projects
None yet
Development

No branches or pull requests