I'm trying to open network manager GUI on WSL2 Ubuntu on Windows 11 using the command nm-connection-editor, but it shows the following error:
** (nm-connection-editor:7104): WARNING **: 17:05:24.796: Couldn't construct the client instance: Could not connect: No such file or directory
(nm-connection-editor:7104): GLib-GObject-CRITICAL **: 17:05:24.796: g_object_set_qdata: assertion 'G_IS_OBJECT (object)' failed
(nm-connection-editor:7104): GLib-GObject-WARNING **: 17:05:24.796: instance with invalid (NULL) class pointer
(nm-connection-editor:7104): GLib-GObject-CRITICAL **: 17:05:24.796: g_signal_handlers_destroy: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(nm-connection-editor:7104): GLib-GObject-WARNING **: 17:05:24.796: instance with invalid (NULL) class pointer
(nm-connection-editor:7104): GLib-GObject-CRITICAL **: 17:05:24.796: g_signal_handlers_destroy: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(nm-connection-editor:7104): GLib-GObject-CRITICAL **: 17:05:24.796: g_object_unref: assertion 'old_ref > 0' failed
** (nm-connection-editor:7104): WARNING **: 17:05:24.796: Failed to initialize the UI, exiting...
** (nm-connection-editor:7104): CRITICAL **: 17:05:24.796: nm_connection_list_present: assertion 'NM_IS_CONNECTION_LIST (list)' failed
How can I fix this?
Note: I already tried the possible solutions on this question but still doesn't work.