web-dev-qa-db-ja.com

Wireshark-現在の画面リソースを取得できませんでした

次のコマンドでwiresharkを使用しようとすると、ssh with(-X)ssh -X 192.168.1.128を使用してubuntuサーバー(16.04.1 LTS)に接続しています:controller@controller:~$ wireshark

次のエラーを返します:

failed to get the current screen resources
The X11 connection broke: I/O error (code 1)
XIO:  fatal IO error 2 (No such file or directory) on X server "localhost:10.0"
      after 349 requests (349 known processed) with 0 events remaining.
controller@controller:~$

この問題を解決するのを手伝ってもらえますか?

ご清聴ありがとうございました、カルロスシルバ

wiresharkをインストールするには、次のコマンドを使用します:

Sudo apt-get install -y software-properties-common python-software-properties
Sudo add-apt-repository ppa:pi-rho/security 
Sudo apt-get update
Sudo apt-get install wireshark 
3
user707965

Wireshark-gtkをインストールして、wiresharkの代わりに使用できます。

ubuntu@mrouter02:~$ Sudo apt install wireshark-gtk
...
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Setting up wireshark-gtk (2.2.6+g32dac6a-2ubuntu0.16.04)
...

ubuntu@mrouter02:~$ wireshark /tmp/dbus.pcap 

failed to get the current screen resources
The X11 connection broke: I/O error (code 1)
XIO:  fatal IO error 2 (No such file or directory) on X server "localhost:11.0"
  after 349 requests (349 known processed) with 0 events remaining.

ubuntu@mrouter02:~$ wireshark-gtk /tmp/dbus.pcap 

** (wireshark-gtk:8621): WARNING **: Couldn't register with accessibility     
bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, 
the message bus security policy blocked the reply, the  reply timeout expired, or the network connection was broken.

ubuntu@mrouter02:~$ 

警告はwireshark-gtkのユーザビリティに影響を与えていません。

1
kenga13