update dolibarr problem

Hi, I am new to dolibarr, which I install awhile ago. I had problems with it back then
and failed to get it to configure.
Now I tried to upgrade it and I get this error

Reading package lists… Done

The following packages will be upgraded:
dolibarr
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 23.0 MB of archives.
After this operation, 56.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ppa.launchpad.net/eldy/dolibarr-dev/ubuntu/ trusty/main dolibarr all 3.7.0-dev~34755~ubuntu14.04.1 [23.0 MB]
Fetched 23.0 MB in 43s (535 kB/s)
Preconfiguring packages …
Run the dolibarr config script
Ask for web server to setup
(Reading database … 889803 files and directories currently installed.)
Preparing to unpack …/dolibarr_3.7.0-dev~34755~ubuntu14.04.1_all.deb …
Unpacking dolibarr (3.7.0-dev~34755~ubuntu14.04.1) over (3.3.4-3) …
Processing triggers for mime-support (3.54ubuntu1.1) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Setting up dolibarr (3.7.0-dev~34755~ubuntu14.04.1) …
Installing new version of config file /etc/apache2/conf-available/dolibarr.conf …
Run the dolibarr config script
Ask for web server to setup
Run the dolibarr postinst script
This is not a first install
Module alias already enabled
Conf dolibarr already enabled
Enable lighttpd link for dolibarr config file
already enabled
already enabled
Run /etc/init.d/lighttpd force-reload to enable changes
dpkg: error processing package dolibarr (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
dolibarr
E: Sub-process /usr/bin/dpkg returned an error code (1)

I’m using ubuntu 14.04.
Question: Do I need to uninstall dolibarr totally first then reinstall it?

Hello,
I do not understand all the problem you faced but I am surprised to see that you are using a non stable version (The last stable in my mind is the 3.6.2 version and not the 3.7.0 which is a development version (that means perhaps with features not yet finalized !)

Sorry to not be able to help more.
Try to install a stable version !

Alain.

I have deleted the ppa for dolibarr dev package, purge the package and tried to reinstall the ubuntu package.
Eg:
sudo apt-get install dolibarr
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
dolibarr
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 9,284 kB of archives.
After this operation, 35.4 MB of additional disk space will be used.
0% [Waiting for headers]Y
0% [Waiting for headers]
0% [Waiting for headers]
Get:1 http://au.archive.ubuntu.com/ubuntu/ trusty/universe dolibarr all 3.3.4-3 [9,284 kB]
Fetched 9,284 kB in 38s (242 kB/s)
Selecting previously unselected package dolibarr.
(Reading database … 884517 files and directories currently installed.)
Preparing to unpack …/dolibarr_3.3.4-3_all.deb …
Unpacking dolibarr (3.3.4-3) …
Processing triggers for mime-support (3.54ubuntu1.1) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Setting up dolibarr (3.3.4-3) …
Module alias already enabled
apache2_invoke dolibarr: already enabled
* Reloading web server apache2 *
Enabling dolibarr: ok
already enabled
Run /etc/init.d/lighttpd force-reload to enable changes
dpkg: error processing package dolibarr (–configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
dolibarr
E: Sub-process /usr/bin/dpkg returned an error code (1)

I stall get the same error. When I do a search for this error I get a link to this bug.
https://bugs.launchpad.net/ubuntu/+source/dolibarr/+bug/1387970

I have tried to uninstall and reinstall the latest stable version off the dolibarr .deb from the website but I get this error:

(Reading database … 884517 files and directories currently installed.)
Preparing to unpack …/dolibarr_3.6.2-3_all.deb …
Unpacking dolibarr (3.6.2-3) …
Setting up dolibarr (3.6.2-3) …
Run the dolibarr config script
Ask for web server to setup
Run the dolibarr postinst script
First install
Module alias already enabled
Enabling conf dolibarr.
To activate the new configuration, you need to run:
service apache2 reload
Enable lighttpd link for dolibarr config file
Enabling dolibarr: ok
already enabled
Run /etc/init.d/lighttpd force-reload to enable changes
dpkg: error processing package dolibarr (–install):
subprocess installed post-installation script returned error exit status 2
Processing triggers for mime-support (3.54ubuntu1.1) …
Processing triggers for desktop-file-utils (0.22-1ubuntu1) …
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for gnome-menus (3.10.1-0ubuntu2) …
Errors were encountered while processing:
dolibarr
So how do I resolve this???