[GH-ISSUE #2709] Snapcraft packages should add more system libraries to serve WSL users #1767

Open
opened 2026-02-27 00:04:46 +03:00 by kerem · 3 comments
Owner

Originally created by @linghengqian on GitHub (Dec 11, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2709

What feature you'd like to see or proposal(期望什么新功能/特性或者建议)

  • This is part of the reason for https://github.com/electerm/electerm/issues/2678 .
  • Currently, after installing electerm through sudo snap install electerm --classic under the WSL instance which opened Systemd, a batch of error logs will be collected. Executing electerm can be seen in the following log.
/snap/electerm/244/electerm: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

/home/lingh/Desktop was removed, reassigning DESKTOP to homedir
/home/lingh/Downloads was removed, reassigning DOWNLOAD to homedir
/home/lingh/Templates was removed, reassigning TEMPLATES to homedir
/home/lingh/Public was removed, reassigning PUBLICSHARE to homedir
/home/lingh/Documents was removed, reassigning DOCUMENTS to homedir
/home/lingh/Music was removed, reassigning MUSIC to homedir
/home/lingh/Pictures was removed, reassigning PICTURES to homedir
/home/lingh/Videos was removed, reassigning VIDEOS to homedir

realpath: /home/lingh/Documents: Too many levels of symbolic links

/home/lingh/Desktop was removed, reassigning DESKTOP to homedir
/home/lingh/Downloads was removed, reassigning DOWNLOAD to homedir
/home/lingh/Templates was removed, reassigning TEMPLATES to homedir
/home/lingh/Public was removed, reassigning PUBLICSHARE to homedir
/home/lingh/Documents was removed, reassigning DOCUMENTS to homedir
/home/lingh/Music was removed, reassigning MUSIC to homedir
/home/lingh/Pictures was removed, reassigning PICTURES to homedir
/home/lingh/Videos was removed, reassigning VIDEOS to homedir
sudo apt install libnss3 -y
  • Executing electerm will not log any more. I'm assuming this part of the problem needs to open another issue. The current issue only discusses missing system libraries.
  • image
  • I tried repeatedly running sudo snap install electerm --classic and sudo snap remove electerm --purge to determine part of the problem.
Originally created by @linghengqian on GitHub (Dec 11, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2709 ### What feature you'd like to see or proposal(期望什么新功能/特性或者建议) - This is part of the reason for https://github.com/electerm/electerm/issues/2678 . - Currently, after installing electerm through `sudo snap install electerm --classic` under the WSL instance which opened Systemd, a batch of error logs will be collected. Executing `electerm` can be seen in the following log. ```shell /snap/electerm/244/electerm: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory /home/lingh/Desktop was removed, reassigning DESKTOP to homedir /home/lingh/Downloads was removed, reassigning DOWNLOAD to homedir /home/lingh/Templates was removed, reassigning TEMPLATES to homedir /home/lingh/Public was removed, reassigning PUBLICSHARE to homedir /home/lingh/Documents was removed, reassigning DOCUMENTS to homedir /home/lingh/Music was removed, reassigning MUSIC to homedir /home/lingh/Pictures was removed, reassigning PICTURES to homedir /home/lingh/Videos was removed, reassigning VIDEOS to homedir realpath: /home/lingh/Documents: Too many levels of symbolic links /home/lingh/Desktop was removed, reassigning DESKTOP to homedir /home/lingh/Downloads was removed, reassigning DOWNLOAD to homedir /home/lingh/Templates was removed, reassigning TEMPLATES to homedir /home/lingh/Public was removed, reassigning PUBLICSHARE to homedir /home/lingh/Documents was removed, reassigning DOCUMENTS to homedir /home/lingh/Music was removed, reassigning MUSIC to homedir /home/lingh/Pictures was removed, reassigning PICTURES to homedir /home/lingh/Videos was removed, reassigning VIDEOS to homedir ``` - So I executed the following command based on the search results of https://packages.ubuntu.com/ . ```shell sudo apt install libnss3 -y ``` - Executing `electerm` will not log any more. I'm assuming this part of the problem needs to open another issue. The current issue only discusses missing system libraries. - ![image](https://user-images.githubusercontent.com/20187731/206931750-5b81b17a-d075-40aa-884c-76b2c7532dd3.png) - I tried repeatedly running `sudo snap install electerm --classic` and `sudo snap remove electerm --purge` to determine part of the problem.
Author
Owner

@zxdong262 commented on GitHub (Dec 12, 2022):

Have you try any other electron based apps? How about vscode? Does it works?

<!-- gh-comment-id:1345889950 --> @zxdong262 commented on GitHub (Dec 12, 2022): Have you try any other electron based apps? How about vscode? Does it works?
Author
Owner

@linghengqian commented on GitHub (Dec 12, 2022):

Have you try any other electron based apps? How about vscode? Does it works?

<!-- gh-comment-id:1345917913 --> @linghengqian commented on GitHub (Dec 12, 2022): > Have you try any other electron based apps? How about vscode? Does it works? - ~I did part of the show in the https://github.com/ubuntu/gnome-text-editor/issues/9 , the rest of the snap is normal.~ - Is there any more typical electron application besides vscode? VSCode instances outside WSL will affect WSL.
Author
Owner

@linghengqian commented on GitHub (Apr 1, 2024):

<!-- gh-comment-id:2029455991 --> @linghengqian commented on GitHub (Apr 1, 2024): - After almost 2 years of investigating I still have no clue as I have never done GUI development properly on WSL. I opened https://github.com/ubuntu/WSL/issues/452 .
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1767
No description provided.