[GH-ISSUE #2447] Ubuntu下无法运行 #1567

Closed
opened 2026-02-27 00:04:03 +03:00 by kerem · 8 comments
Owner

Originally created by @atomxw on GitHub (Apr 13, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2447

Electerm Version(Electerm版本)

1.21.18

Platform detail (平台详情)

linux

What steps will reproduce the bug?(重新问题的详细步骤)

$electerm
error: unknown option '--no-sandbox'
09:06:00 debug › electerm start
09:06:00 info › server runs on 127.0.0.1 30975
09:06:00 debug › error parsing $HOME/.ssh/config
09:06:00 debug › maybe no $HOME/.ssh/config, but it is ok
Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu')
at initApp (/snap/electerm/188/resources/app.asar/lib/init-app.js:34:19)
at Object.init (/snap/electerm/188/resources/app.asar/lib/ipc.js:83:5)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async node:electron/js2c/browser_init:193:563

What should have happened?(期望的结果)

11

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

Originally created by @atomxw on GitHub (Apr 13, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2447 ### Electerm Version(Electerm版本) 1.21.18 ### Platform detail (平台详情) linux ### What steps will reproduce the bug?(重新问题的详细步骤) $electerm error: unknown option '--no-sandbox' 09:06:00 debug › electerm start 09:06:00 info › server runs on 127.0.0.1 30975 09:06:00 debug › error parsing $HOME/.ssh/config 09:06:00 debug › maybe no $HOME/.ssh/config, but it is ok Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu') at initApp (/snap/electerm/188/resources/app.asar/lib/init-app.js:34:19) at Object.init (/snap/electerm/188/resources/app.asar/lib/ipc.js:83:5) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async node:electron/js2c/browser_init:193:563 ### What should have happened?(期望的结果) 11 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
kerem closed this issue 2026-02-27 00:04:03 +03:00
Author
Owner

@blankhang commented on GitHub (Apr 13, 2022):

+1

<!-- gh-comment-id:1097502009 --> @blankhang commented on GitHub (Apr 13, 2022): +1
Author
Owner

@hmahdiany commented on GitHub (Apr 13, 2022):

I have the same problem and there is only one error:
Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu')
Electerm was working just fine until I updated my Ubuntu system.
My system kernel version now is 5.13.0-39-generic and Electerm version is 1.21.18

<!-- gh-comment-id:1097622398 --> @hmahdiany commented on GitHub (Apr 13, 2022): I have the same problem and there is only one error: `Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu')` Electerm was working just fine until I updated my Ubuntu system. My system kernel version now is `5.13.0-39-generic` and Electerm version is `1.21.18`
Author
Owner

@blankhang commented on GitHub (Apr 13, 2022):

I have the same problem and there is only one error: Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu') Electerm was working just fine until I updated my Ubuntu system. My system kernel version now is 5.13.0-39-generic and Electerm version is 1.21.18

by now just remove the 1.21.18 version and then reinstall the 1.21.14 version and don't upgrade until the problem was solved

<!-- gh-comment-id:1097651567 --> @blankhang commented on GitHub (Apr 13, 2022): > I have the same problem and there is only one error: `Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu')` Electerm was working just fine until I updated my Ubuntu system. My system kernel version now is `5.13.0-39-generic` and Electerm version is `1.21.18` by now just remove the 1.21.18 version and then reinstall the 1.21.14 version and don't upgrade until the problem was solved
Author
Owner

@hmahdiany commented on GitHub (Apr 13, 2022):

I have the same problem and there is only one error: Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu') Electerm was working just fine until I updated my Ubuntu system. My system kernel version now is 5.13.0-39-generic and Electerm version is 1.21.18

by now just remove the 1.21.18 version and then reinstall the 1.21.14 version and don't upgrade until the problem was solved

Thank you @blankhang
Version 1.21.14 is working fine. But I have one follow up question: Is there any way to restore my bookmarks? Now I lost all of them

<!-- gh-comment-id:1097715787 --> @hmahdiany commented on GitHub (Apr 13, 2022): > > I have the same problem and there is only one error: `Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu')` Electerm was working just fine until I updated my Ubuntu system. My system kernel version now is `5.13.0-39-generic` and Electerm version is `1.21.18` > > by now just remove the 1.21.18 version and then reinstall the 1.21.14 version and don't upgrade until the problem was solved Thank you @blankhang Version `1.21.14` is working fine. But I have one follow up question: Is there any way to restore my bookmarks? Now I lost all of them
Author
Owner

@blankhang commented on GitHub (Apr 13, 2022):

I have the same problem and there is only one error: Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu') Electerm was working just fine until I updated my Ubuntu system. My system kernel version now is 5.13.0-39-generic and Electerm version is 1.21.18

by now just remove the 1.21.18 version and then reinstall the 1.21.14 version and don't upgrade until the problem was solved

Thank you @blankhang Version 1.21.14 is working fine. But I have one follow up question: Is there any way to restore my bookmarks? Now I lost all of them

you should always use github gist sync functin to backup all your bookmarks to cloud!

<!-- gh-comment-id:1097718762 --> @blankhang commented on GitHub (Apr 13, 2022): > > > I have the same problem and there is only one error: `Error occurred in handler for 'async': TypeError: Cannot read properties of undefined (reading 'setMenu')` Electerm was working just fine until I updated my Ubuntu system. My system kernel version now is `5.13.0-39-generic` and Electerm version is `1.21.18` > > > > > > by now just remove the 1.21.18 version and then reinstall the 1.21.14 version and don't upgrade until the problem was solved > > Thank you @blankhang Version `1.21.14` is working fine. But I have one follow up question: Is there any way to restore my bookmarks? Now I lost all of them you should always use github gist sync functin to backup all your bookmarks to cloud!
Author
Owner

@zxdong262 commented on GitHub (Apr 13, 2022):

fixed in 1.21.20

<!-- gh-comment-id:1097905348 --> @zxdong262 commented on GitHub (Apr 13, 2022): fixed in 1.21.20
Author
Owner

@tiger7chan commented on GitHub (Jul 14, 2022):

在ubuntu18.04下面,安装最新的1.21.93版本,一直卡在启动界面了

<!-- gh-comment-id:1183897939 --> @tiger7chan commented on GitHub (Jul 14, 2022): 在ubuntu18.04下面,安装最新的1.21.93版本,一直卡在启动界面了
Author
Owner

@zxdong262 commented on GitHub (Jul 15, 2022):

在ubuntu18.04下面,安装最新的1.21.93版本,一直卡在启动界面了

可以命令行运行看看什么信息吗

<!-- gh-comment-id:1185184959 --> @zxdong262 commented on GitHub (Jul 15, 2022): > 在ubuntu18.04下面,安装最新的1.21.93版本,一直卡在启动界面了 可以命令行运行看看什么信息吗
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#1567
No description provided.