Archive

Archive for June, 2010

Downgrading PHP in Ubuntu 10.04

June 22nd, 2010
Comments Off
  1. Install Apache, Mysql, PostgreSQL as normal.
  2. Add Karmic repositories in the apt sources file.
  3. Load Synaptic and refresh the list.
  4. Find the php common package and from the package menu, click Force Version.
  5. Choose the Karmic package and press OK.
  6. Install the package.
  7. Lock the package.

Repeat these steps for the other PHP modules and related files.  I had to do them one at a time, closing Synaptic in between installation due to “broken package” errors.

NOTE: Running apt-get upgrade will ignore your locked packages, make sure you “pin” them in apt as well, or symlink the /etc/apt/preferences to /var/lib/synaptic/preferences (see related post)

admin Linux Tutorials

Make apt respect your pinned or locked versions

June 22nd, 2010
Comments Off

In ubuntu 10.04, I noticed if I locked a package using Synaptic,  running apt-get upgrade would ignore the lock and attempt to upgrade locked packages.  I solved this, by creating a symlink in “/etc/apt”.

I ran “sudo ln -s /var/lib/synaptic/preferences preferences” in /etc/apt

admin Linux Tutorials