Geckodriver 破坏了 Ubuntu 23.10 上 Firefox、Snap store 和 Pycharm Community 的运行进程

Geckodriver 破坏了 Ubuntu 23.10 上 Firefox、Snap store 和 Pycharm Community 的运行进程

使用 apt 安装 geckodriver 和 Firefox 以及来自 snap store 的 Firefox 后,我无法运行 Firefox、Snap store 和 Pycharm Community。系统启动后,当我尝试运行任何应用程序时,它会抛出错误:

~$ pycharm-community
pycharm-community: error: Address in use (os error 98)
WebDriver implementation for Firefox

Usage: 

Options:
      --allow-hosts <ALLOW_HOSTS>...
          List of hostnames to allow. By default the value of --host is allowed,
          and in addition if that's a well known local address, other variations
          on well known local addresses are allowed. If --allow-hosts is
          provided only exactly those hosts are allowed.
      --allow-origins <ALLOW_ORIGINS>...
          List of request origins to allow. These must be formatted as
          scheme://host:port. By default any request with an origin header is
          rejected. If --allow-origins is provided then only exactly those
          origins are allowed.
      --android-storage <ANDROID_STORAGE>
          Selects storage location to be used for test data (deprecated).
          [possible values: auto, app, internal, sdcard]
  -b, --binary <BINARY>
          Path to the Firefox binary
      --connect-existing
          Connect to an existing Firefox instance
  -h, --help
          Prints this message
      --host <HOST>
          Host IP to use for WebDriver server [default: 127.0.0.1]
      --jsdebugger
          Attach browser toolbox debugger for Firefox
      --log <LEVEL>
          Set Gecko log level [possible values: fatal, error, warn, info,
          config, debug, trace]
      --log-no-truncate
          Disable truncation of long log lines
      --marionette-host <HOST>
          Host to use to connect to Gecko [default: 127.0.0.1]
      --marionette-port <PORT>
          Port to use to connect to Gecko [default: system-allocated port]
  -p, --port <PORT>
          Port to use for WebDriver server [default: 4444]
      --profile-root <PROFILE_ROOT>
          Directory in which to create profiles. Defaults to the system
          temporary directory.
  -v...
          Log level verbosity (-v for debug and -vv for trace level)
  -V, --version
          Prints version and copying information
      --websocket-port <PORT>
          Port to use to connect to WebDriver BiDi [default: 9222]

Firefox 或 Snap 商店也会出现同样的错误。此外,如果我通过端口 4444 grep geckodriver 进程,请终止它:

~$ lsof -i :4444
COMMAND     PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pycharm-c 28317 siarhei    3u  IPv4 156787      0t0  TCP localhost:4444 (LISTEN)

~$ kill -9 28317

并将尝试启动一个应用程序,它将堆叠在此:

~$ pycharm-community
1709564074273   geckodriver INFO    Listening on 127.0.0.1:4444

之后什么都没发生。我该如何修复这些应用程序的运行?

UPD:尝试卸载 apt 版本,但没有帮助,错误相同

更新:未找到解决方案,因此重新安装了操作系统。

相关内容