wireshark - gagal mendapatkan sumber daya layar saat ini

2

Saya menggunakan ssh dengan (-X) ssh -X 192.168.1.128 untuk menghubungkan server ubuntu (16.04.1 LTS), ketika saya mencoba menggunakan wireshark dengan perintah ini: controller@controller:~$ wireshark.

Ini mengembalikan kesalahan berikutnya:

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:~$

Bisakah Anda membantu saya menyelesaikan masalah ini?

Terima kasih atas perhatian Anda, Carlos Silva

Untuk menginstal wireshark saya menggunakan perintah berikut:

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 
user707965
sumber
Saya memiliki masalah yang sama persis dengan wireshark 2.2.6 + g32dac6a-2ubuntu0.16.04 di desktop jarak jauh (x2go)
Eiver

Jawaban:

0

Anda dapat menginstal wireshark-gtk dan menggunakannya sebagai ganti 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:~$ 

Peringatan tidak memengaruhi kegunaan wireshark-gtk.

kenga13
sumber