添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
  • Index
  • » AUR Issues, Discussion & PKGBUILD Requests
  • » 'sudo waydroid init' is always returning error
  • 'sudo waydroid init' is always returning error

    I followed the archwiki guide, https://wiki.archlinux.org/title/Waydroid , to install waydroid. After running 'sudo waydroid init', it is always ended in this error.

    [13:51:29] ERROR: <urlopen error [Errno 101] Network is unreachable>
    [13:51:29] See also: <https://github.com/waydroid>
    Run 'waydroid log' for details.

    Running 'waydroid log' shows this.

    (001790) [13:51:29] ERROR: <urlopen error [Errno 101] Network is unreachable>
    (001790) [13:51:29] See also: <https://github.com/waydroid>
    (001790) [13:51:29] Traceback (most recent call last):
      File "/usr/lib/python3.12/urllib/request.py", line 1344, in do_open
        h.request(req.get_method(), req.selector, req.data, headers,
      File "/usr/lib/python3.12/http/client.py", line 1336, in request
        self._send_request(method, url, body, headers, encode_chunked)
      File "/usr/lib/python3.12/http/client.py", line 1382, in _send_request
        self.endheaders(body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.12/http/client.py", line 1331, in endheaders
        self._send_output(message_body, encode_chunked=encode_chunked)
      File "/usr/lib/python3.12/http/client.py", line 1091, in _send_output
        self.send(msg)
      File "/usr/lib/python3.12/http/client.py", line 1035, in send
        self.connect()
      File "/usr/lib/python3.12/http/client.py", line 1470, in connect
        super().connect()
      File "/usr/lib/python3.12/http/client.py", line 1001, in connect
        self.sock = self._create_connection(
                    ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/socket.py", line 852, in create_connection
        raise exceptions[0]
      File "/usr/lib/python3.12/socket.py", line 837, in create_connection
        sock.connect(sa)
    OSError: [Errno 101] Network is unreachable
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
      File "/usr/lib/waydroid/tools/__init__.py", line 64, in main
        actions.init(args)
      File "/usr/lib/waydroid/tools/actions/initializer.py", line 110, in init
        setup_config(args)
      File "/usr/lib/waydroid/tools/actions/initializer.py", line 62, in setup_config
        system_request = helpers.http.retrieve(args.system_ota)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/waydroid/tools/helpers/http.py", line 143, in retrieve
        with urllib.request.urlopen(req) as response:
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/urllib/request.py", line 215, in urlopen
        return opener.open(url, data, timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/urllib/request.py", line 515, in open
        response = self._open(req, data)
                   ^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/urllib/request.py", line 532, in _open
        result = self._call_chain(self.handle_open, protocol, protocol +
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
        result = func(*args)
                 ^^^^^^^^^^^
      File "/usr/lib/python3.12/urllib/request.py", line 1392, in https_open
        return self.do_open(http.client.HTTPSConnection, req,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/urllib/request.py", line 1347, in do_open
        raise URLError(err)
    urllib.error.URLError: <urlopen error [Errno 101] Network is unreachable>
    (002003) [14:07:02] % tail -n 60 -F /var/lib/waydroid/waydroid.log
    (002003) [14:07:02] *** output passed to waydroid stdout, not to this log ***

    Any suggestion to solve this error?