VNC Viewer not installing in ubuntu

I installed ubuntu in my virtual machine (Oracle Virtual box) and when i try to install VNC Viewer then it shows:

error message

when I try to search no applications are found.I could not figure what is wrong here.Any help is appreciated.


Solution 1:

The process involves two steps:

  1. Download the needed files from here or any other location.

  2. Then make file executable with:

    chmod +x VNC-Viewer-6.0.2-Linux-x64
    
  3. Then move it to say your home directory and run it from there, or any other location:

    mv VNC-Viewer-6.0.2-Linux-x64 ~/
    
    ./VNC-Viewer-6.0.2-Linux-x64
    

Note: You don't install you just run it.

Source:

https://www.realvnc.com/download/viewer/linux/

Solution 2:

There are many VNC clients. Some have the same vncviewer executable. One is TigerVNC which is available in the package manager:

sudo apt install tigervnc-viewer
vncviewer <ip>:<display/port>

See also: Best VNC/remote desktop application?