How do I use aptitude to downgrade/force version of a package?

Solution 1:

Something like this will work:

sudo aptitude install package-name=package-version

For example:

$ aptitude versions firefox$

Package firefox:                         
p   45.0.2+build1-0ubuntu1             xenial                         500 
i   52.0.2+build1-0ubuntu0.16.04.1     xenial-security,xenial-updates 500 

Then:

sudo aptitude install firefox=45.0.2+build1-0ubuntu1

And with the GUI:

Downgrade packages with aptitude