Windows 10 上 Ubuntu 中的 Atom 核心轉儲

Windows 10 上 Ubuntu 中的 Atom 核心轉儲

我想使用 Windows 上不支援的 Atom 套件...但有一個問題 - 我想在 Windows 上使用它。

這就是我所做的:

我已經走到了這一步,現在卻失敗了!

root@CHERNIKHOV:~# sudo atom
sudo: unable to resolve host CHERNIKHOV
root@CHERNIKHOV:~# /usr/bin/atom: line 119:   117 Aborted                 (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
[117:0114/120453:FATAL:render_sandbox_host_linux.cc(40)] Check failed: 0 == shutdown(renderer_socket_, SHUT_RD). shutdown: Invalid argument
#0 0x000001e09b2e <unknown>
#1 0x000001e1f73b <unknown>
#2 0x000001e1fcfd <unknown>
#3 0x000002893352 <unknown>
#4 0x00000265e7f9 <unknown>
#5 0x000002664dbf <unknown>
#6 0x00000265de96 <unknown>
#7 0x000001204397 <unknown>
#8 0x000001202e70 <unknown>
#9 0x0000033a9803 main
#10 0x7f0ccb101f45 __libc_start_main
#11 0x000000575279 <unknown>

歡迎提出修復或下一步調試的想法。

編輯:更多調試...

我在 VirtualBox 中使用預設設定創建了兩個 Ubuntu 64 位元虛擬機,網路設定為橋接,並在其中一個中安裝了 Ubuntu Server 16.04.01,在另一個中安裝了 Ubuntu Desktop 16.04.01。我在兩者上安裝了atom和openssh-server。 Atom 在 Ubuntu 桌面中啟動。然而,當使用 PuTTy 和 Xming 嘗試在 Windows 中渲染 Atom 時,結果總是很糟糕。一個簡單的 X Windows 應用程式 xclock 在兩種環境中都可以透過 SSH 和 Xming 正常運作。

烏班圖伺服器:

root@Farnum:~# atom
root@Farnum:~# /usr/bin/atom: line 119:  1506 Aborted                 (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
atom --executed-from=/home/voidstar --pid=1493: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Failed to get crash dump id.
Report Id:

Ubuntu 桌面:

root@Ylva:~# atom
root@Ylva:~# /usr/bin/atom: line 119:  7610 Aborted                 (core dumped) nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1

(atom:7610): IBUS-WARNING **: The owner of /home/voidstar/.config/ibus/bus is not root!
Home directory not accessible: Permission denied
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
atom --executed-from=/home/voidstar --pid=7597: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Failed to get crash dump id.
Report Id:

編輯:使用 mobaxterm 而不是 Xming,我能夠讓 Atom 顯示在遠離我的 Ubuntu VM 的 Windows 中,但在 Windows 上使用 Ubuntu 仍然沒有什麼樂趣。如果你想嘗試調試這個 - 我建議 mobaxterm。

答案1

由於 Windows 上的 Bash 是測試版,因此會出現一些問題。谷歌搜索,我發現,與您的錯誤相符。該線程表示關閉系統呼叫未實現。

答案2

你嘗試過這個嗎?http://www.howtogeek.com/261449/how-to-install-linux-software-in-windows-10s-ubuntu-bash-shell/http://www.howtogeek.com/261449/how-to-install-linux-software-in-windows-10s-ubuntu-bash-shell/

你的問題對我來說很有趣,我從未聽說過有哪個軟體有適用於 debian 和 redhat 發行版的軟體包,但沒有適用於 Windows 的軟體包。 (通常是相反的)我個人對解決這個問題很感興趣,因為它對我來說非常不尋常,但又非常有趣,特別是它可以透過 windows bash 等實現。如果我完全弄清楚但想同時發布此內容,我將用簡化的說明更新此答案。

在評論另一個答案時,我有一種感覺,根據我在谷歌上搜尋到的內容,Linux 子系統支援將是問題所在。我記得有一次在朋友的電腦上測試指令,發現尚未實現所有標準 bash 指令。我之前不想這麼說,因為我希望情況並非如此,但根據提問者的回答,聽起來你可能要等到微軟為 Linux 子系統提供更多支援。我會把這個放在對該答案的評論中,但我沒有代表。

可能的臨時解決方案:同時,如果您確實想使用該編輯器,您可能會運行輕量級 debian 衍生品(如 Lubuntu)的虛擬機http://lubuntu.net/我知道這可能不理想,但想提一下以防萬一。

相關內容