4

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?

Wesley
  • 33,060
j doen
  • 43

2 Answers2

9

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.

0

I was getting "needs read/write" access errors when running the hold command, even with "sudo". It did finally work when I switched to root (sudo su) and ran it as root. Just in case anyone else has the same issue.

John
  • 1