Steve,

Great work! I've had it running today without any problems.

I would like to offer some corrections on your downgrade process. I
(obviously) had to do it myself this morning when I installed the new
packages.

For those that don't know, if you want to add the edgy-proposed repo
without installing everything sitting in there each time, you can setup
a preferences file for apt. Here is mine (/etc/apt/preferences)

Package: *
Pin: release a=edgy
Pin-Priority: 700

Package: *
Pin: release a=edgy-proposed
Pin-Priority: 600

The higher the number, the higher the priority. I'm not sure what the
default is.

Once you have that, do an "apt-get update" to update your package list.

Next, stop your cyrus daemon.
$ sudo /etc/init.d/cyrus-2.2 stop

Make sure it's stopped or you'll get a lot of nasty errors in your logs.
$ ps ax | grep cyrmaster

If you get anything back other than your grep, kill it.
$ sudo pkill /usr/sbin/cyrmaster


Become cyrus and go to the appropriate directory to find the db files
$ sudo -u cyrus bash
<as cyrus now>
$ cd /var/lib/cyrus
$ rm db/*
$ rm db.backup?/*
$ rm deliver.db
$ rm tls_sessions.db

Convert the mailboxes.db to a flat file.
$ /usr/sbin/ctl_mboxlist -d > mailboxes.txt

Backup the mailboxes.db, just in case
$ mv mailboxes.db mailboxes.db.orig

Exit out of the cyrus user.
$ exit

Install the new packages.
$ sudo apt-get -t edgy-proposed install cyrus-imapd-2.2

Next, stop your cyrus daemon...it starts after install and your logs are 
filling up at this moment:
$ sudo /etc/init.d/cyrus-2.2 stop

Make sure it's stopped or you'll get a lot more nasty errors in your logs.
$ ps ax | grep cyrmaster

If you get anything back other than your grep, kill it.
$ sudo pkill /usr/sbin/cyrmaster

Become cyrus again, like you did before.
$ sudo -u cyrus bash

Convert the flat mailboxes file back to bdb 4.3 format.
$ /usr/sbin/ctl_mboxlist -u < mailboxes.txt

Exit the shell running as cyrus and start up the cyrus master daemon and test.
$ exit
$ sudo /etc/init.d/cyrus-2.2 start

As you can see, I based this on Steve's write up above. I just wrote it
all out for clarity. Thanks to Steve for the packages and for the
initial write up. Without the write up, I would have been lost. All I
did was correct some path mistakes. I'm sure on a source install, that
is where those things reside. Debian and Ubuntu have their own methods
and policies on where stuff goes, and <diety> bless them for it.

-- 
[SRU]: Cyrus linked against db4.4 compiled against 4.3 ?
https://launchpad.net/bugs/67111

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to