I wanted to re-install tightvnc server from 1.3.9 to 1.3.10 because whenever I log in to the box, vnc crashes after 30+ mins. In my google expedition I came across these set of commands

pushd ~
sudo apt-get install xorg-dev libjpeg62-dev zlib1g-dev xmkmf
mkdir -p vnc-problem/new
cd vnc-problem/new
wget http://www.tightvnc.com/download/1.3.10/tightvnc-1.3.10_unixsrc.tar.gz
tar xzf tightvnc-1.3.10_unixsrc.tar.gz
cd vnc_unixsrc
make World
cd Xvnc
time make
sudo mv /usr/bin/Xtightvnc /usr/bin/Xtightvnc-1.3.9
sudo cp programs/Xserver/Xvnc /usr/bin/Xtightvnc-1.3.10
sudo chown root:root /usr/bin/Xtightvnc-1.3.10
sudo chmod 755 /usr/bin/Xtightvnc-1.3.10
sudo update-alternatives --install /usr/bin/Xtightvnc Xtightvnc /usr/bin/Xtightvnc-1.3.9 50
sudo update-alternatives --install /usr/bin/Xtightvnc Xtightvnc /usr/bin/Xtightvnc-1.3.10 60
sudo update-alternatives --config Xtightvnc # choose Xtightvnc-1.3.10
sudo update-alternatives --set Xtightvnc /usr/bin/Xtightvnc-1.3.10

from this solution and decided to give it a try. When I ran this command sudo apt-get install xorg-dev libjpeg62-dev zlib1g-dev xmkmf I got this response on my commandline.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package xmkmf

I have also installed xutils-dev package as per this response .Anyone with a clue?

  • What is xmkmf? What makes you think it exists and is needed? As far as I can tell, it is provided by xutils-dev so why are you still trying to install it?
    – terdon
    Dec 13, 2017 at 10:43
  • @terdon in other words are you trying to say I exclude it in my command?
    – bademba
    Dec 13, 2017 at 10:54
  • Yes. The instructions you ate following are from 2010
    – terdon
    Dec 13, 2017 at 11:02
  • @karel the OP has already installed tightvnc, the question is about problems running it, not installing it.
    – terdon
    Dec 13, 2017 at 11:26
  • 1
    @karel please read the first sentence of the question: "I wanted to re-install tightvnc server from 1.3.9 to 1.3.10 because whenever I log in to the box, vnc crashes after 30+ mins."
    – terdon
    Dec 13, 2017 at 11:36

1 Answer 1


tightvncserver 1.3.10 for Ubuntu 16.04 can be manually downloaded and installed in your Ubuntu 14.04. No additional dependencies are required to install it in Ubuntu 14.04.

Visit the official Ubuntu - Details of package tightvncserver in xenial website and download the tightvncserver package that matches your OS's architecture.

  1. Click the OS architecture printed in red in the Download tightvncserver table (amd64 or i386).

  2. Select a mirror from the list of mirrors and download the tightvncserver .deb file (either tightvncserver_1.3.10-0ubuntu3_amd64.deb or tightvncserver_1.3.10-0ubuntu3_i386.deb depending on your OS's architecture) to your Desktop.

  3. Double-click the tightvncserver .deb file that you downloaded to open it for installation in the Ubuntu Software Center.

  4. Run the following command to prevent tightvncserver from being automatically installed, upgraded or removed.

    sudo apt-mark hold tightvncserver  
  • -1 "One-time" installations of packages are a security risk since updates will not be automatically installed.
    – fkraiem
    Dec 13, 2017 at 11:19
  • The alternative is to find a PPA that has the same package which is possibly a much greater security risk than my way of installing tightvncserver 1.3.10, because it adds all the software in that PPA (Personal Package Archive) to the software sources. Software from a PPA is at least updated by the Software Updater app, so it's not a security risk that way.
    – karel
    Dec 13, 2017 at 11:24
  • 1
    @fkraiem um, what? First of all, this isn't a one time thing, only the 14.04 approach is suggesting not to use the normal repositories. Second, that's not a security risk! You sometimes need to install things that aren't in the repos. Sure, you will then need to keep it updated, but that doesn't make this approach a security risk by definition.
    – terdon
    Dec 13, 2017 at 11:29
  • @terdon The answer does not say how you keep it updated; not even that you need to do it at all.
    – fkraiem
    Jan 29, 2018 at 5:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .