Hi,
I experienced the exact same issue as described above. 
Likewise it suggested to run apt-get -f install after which I ended up with the 
same error as described above. 

The following did the trick for me:

1) make sure that the files in the directories it is complaining about have 
either the correct permissions and owner (e.g., "www-data") or move them 
temporarily such that the folders are empty:
   
the 2 relevant messages / directories are : 
dpkg-maintscript-helper: error: directory '/var/lib/roundcube/config' contains 
files not owned by package roundcube-core:all, cannot switch to symlink

dpkg-maintscript-helper: error: directory '/usr/share/doc/roundcube'
contains files not owned by package roundcube:all, cannot switch to
symlink

2)Manually (re)install the roundcube-core package as follwos (order is
important due to dependencies):

dpkg --auto-deconfigure  -i /var/cache/apt/archives/roundcube-
core_1.2~beta+dfsg.1-0ubuntu1_all.deb

3)Manually (re)install the roundcube package as follows:
 dpkg --auto-deconfigure  -i 
/var/cache/apt/archives/roundcube_1.2~beta+dfsg.1-0ubuntu1_all.deb


4) adapt / overwrite your (pre-)existing configs if necessary/appropriate,
 enter your data / credentials in the subsequent dialog, reload services and be 
(hopefully) happy again :-)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1607705

Title:
  package roundcube-core 1.2~beta+dfsg.1-0ubuntu1 failed to
  install/upgrade: subprocess installed post-installation script
  returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/roundcube/+bug/1607705/+subscriptions

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

Reply via email to