Skip to content

Unable to Start After Upgrade to v2.1.0 #163

Closed as not planned
Closed as not planned

Description

@Xtigyro

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

Activity

  1. Jord-JD commented on Jul 3, 2019

    @Jord-JD

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

  2. Xtigyro commented on Jul 3, 2019

    @Xtigyro
    Author

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

  3. merlinND commented on Jul 4, 2019

    @merlinND

    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
    
  4. subhokarmakar commented on Jul 4, 2019

    @subhokarmakar

    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

  5. Jord-JD commented on Jul 4, 2019

    @Jord-JD

    @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"
    
  6. liao961120 commented on Jul 4, 2019

    @liao961120

    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.

  7. subhokarmakar commented on Jul 4, 2019

    @subhokarmakar

    @liao961120 Thanks brooo It worked

  8. Jord-JD commented on Jul 4, 2019

    @Jord-JD

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

  9. liao961120 commented on Jul 6, 2019

    @liao961120

    @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

  10. immackay commented on Jul 7, 2019

    @immackay
    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.

  11. shiftkey commented on Jul 21, 2019

    @shiftkey
    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...

  12. self-assigned this
    on Jul 21, 2019
  13. bear-good commented on Aug 27, 2019

    @bear-good

    @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"
    
  14. 28 remaining items

  15. github8bits commented on Oct 3, 2019

    @github8bits

    problem still exits. please fix.

  16. github8bits commented on Oct 3, 2019

    @github8bits

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

    ubuntu 18.04

  17. ebarracchia commented on Oct 16, 2019

    @ebarracchia

    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!

  18. KiTTYsh commented on Oct 20, 2019

    @KiTTYsh

    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
    
  19. softhightech commented on Nov 2, 2019

    @softhightech

    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.

  20. Uzay-G commented on Dec 12, 2019

    @Uzay-G

    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 😄

  21. lifenstein commented on Dec 12, 2019

    @lifenstein

    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... ?

  22. Uzay-G commented on Dec 13, 2019

    @Uzay-G

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

  23. lifenstein commented on Dec 17, 2019

    @lifenstein

    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.

  24. johngrabner commented on Dec 20, 2019

    @johngrabner

    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

  25. added
    installers/snap
    on Feb 4, 2020
  26. ipkpjersi commented on Mar 8, 2020

    @ipkpjersi

    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.

  27. shiftkey commented on Mar 8, 2020

    @shiftkey
    Owner

    @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.

  28. shiftkey commented on Apr 21, 2022

    @shiftkey
    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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buginstallers/snap

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions