Ubuntu 12.04 – Howto downgrade vsftpd

downgradeftpUbuntu

How can I downgrade vsftpd from the latest Ubuntu package (2.3.5) to version 2.3.2?

I have tried to put this into /etc/apt/preferences file:

Package: vsftpd
Pin: version 2.3.2*
Pin-Priority: 1001

However, every time I do sudo apt-get install vsftpd it installs version 2.3.5: vsftpd_2.3.5-1ubuntu2_i386.deb

Is there something else I need to do or am I doing something wrong?

Best Answer

What you are after is not pinning, but holding.

Holding a package can be achieved with

  echo vsftpd hold | dpkg --set-selections

See Ubuntu Pinning Howto

Edit: as for the original question it would probably be easiest to uninstall whatever version is there and download the version you need from Ubuntu Main pool and install it with dpkg -i. Afterwards hold to it as describe above.