Ubuntu Authentication Error

I've installed VNC Server on Ubuntu 22.04 Jammy. When I try to open VNC server I get a prompt asking for my password: "Authentication is needed to run '/etc/VNC/vncservice' as the super user." Even after I input my password nothing happens. I have checked systemctl and the vnc-server service is running. Any advice would be appreciated.


  • Same problem here.

    Comment actions Permalink
  • Same here, I run Ubuntu 22.04, I have disabled Wayland on /etc/gdm3/custom.conf and the services vncserver-x11-serviced.service & vncserver-virtuald.service shows as active and running.
    I think is a general issue with Ubuntu. When I type 'sudo vncserver' it says it's not finding license keys.

    I installed vncserver following this:



    Comment actions Permalink
  • Same as me, I can't open the GUI on Ubuntu 22.04.

    cat /usr/vnc/config
    # Default X Server command-line parameters for VNC Server.
    # This file is automatically generated. DO NOT EDIT.
    # To override settings in this file, create or edit /etc/vnc/config.custom.

    # Continue even if standard ports fail

    # Default font path (from xset)
    -fp "/usr/share/fonts/X11/misc,/usr/share/fonts/X11/Type1,built-ins"
    Protected by UK patent 2481870; US patent 8760366; EU patent 2652951.
    See https://www.realvnc.com for information on VNC.
    For third party acknowledgements see:
    OS: Ubuntu 22.04, Linux 5.15.0, amd64

    Error: No license keys found.
    Run vnclicense to apply the license key associated with your Enterprise
    subscription. [NoLicense]


    sudo systemctl status vncserver-x11-serviced.service vncserver-virtuald.service
    ● vncserver-x11-serviced.service - VNC Server in Service Mode daemon
         Loaded: loaded (/lib/systemd/system/vncserver-x11-serviced.service; enabled; vendor preset: enabled)
         Active: active (running) since Wed 2023-01-18 10:13:48 AEDT; 10min ago
       Main PID: 4552 (vncserver-x11-s)
          Tasks: 2 (limit: 4625)
         Memory: 2.2M
            CPU: 10ms
         CGroup: /system.slice/vncserver-x11-serviced.service
                 ├─4552 /usr/bin/vncserver-x11-serviced -fg
                 └─4554 /usr/bin/vncserver-x11-core -service

    Jan 18 10:13:48 ubuntu2204 systemd[1]: Started VNC Server in Service Mode daemon.
    Jan 18 10:13:48 ubuntu2204 vncserver-x11[4554]: ServerManager: Server started

    ● vncserver-virtuald.service - VNC Server in Virtual Mode daemon
         Loaded: loaded (/lib/systemd/system/vncserver-virtuald.service; enabled; vendor preset: enabled)
         Active: active (running) since Wed 2023-01-18 10:06:44 AEDT; 18min ago
       Main PID: 987 (vncserver-virtu)
          Tasks: 1 (limit: 4625)
         Memory: 3.8M
            CPU: 25ms
         CGroup: /system.slice/vncserver-virtuald.service
                 └─987 /usr/bin/vncserver-virtuald -fg

    Jan 18 10:06:44 ubuntu2204 systemd[1]: Started VNC Server in Virtual Mode daemon.
    Jan 18 10:06:44 ubuntu2204 vncserver-virtuald[987]: main: started

    sudo vncserver
    [sudo] password for xxxxx: 
    VNC(R) Server 6.10.1 (r47571) x64 (Jul 21 2022 17:20:14)
    Copyright (C) RealVNC Ltd.
    RealVNC and VNC are trademarks of RealVNC Ltd and are protected by trademark
    registrations and/or pending trademark applications in the European Union,
    United States of America and other jurisdictions. 

    Comment actions Permalink
  • Hi all,

    The vncserver command starts Virtual Mode, which is an Enterprise only feature. Other subscriptions need to use Service Mode which is started by running:

    sudo systemctl enable vncserver-x11-serviced --now

    For those that cannot open the GUI, please double check you have disabled Wayland as shown here: https://help.realvnc.com/hc/en-us/articles/4417193011857

    and rebooted the VNC Server computer afterwards.

    If the VNC Server GUI still doesn't appear after selecting it in Applications, try manually opening it by running the command:

    sudo vncserver-x11 -service -showexistingstatus

    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post