I have the same problem when I upgraded from 14.04 to 16.04. The
instruction is to run apt-get -f install and I got this error which
obviously is very alien for me as a newbie. Any help will be
appreciated. Thank you.

The following packages will be upgraded:
  roundcube roundcube-core
2 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
2 not fully installed or removed.
Need to get 0 B/1,930 kB of archives.
After this operation, 5,036 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 324894 files and directories currently installed.)
Preparing to unpack .../roundcube-core_1.2~beta+dfsg.1-0ubuntu1_all.deb ...
dpkg-maintscript-helper: error: directory '/var/lib/roundcube/config' contains 
files not owned by package roundcube-core:all, cannot switch to symlink
dpkg: error processing archive 
/var/cache/apt/archives/roundcube-core_1.2~beta+dfsg.1-0ubuntu1_all.deb 
(--unpack):
 subprocess new pre-installation script returned error exit status 1
Reinstalling /etc/roundcube/db.inc.php that was moved away
dbconfig-common: flushing administrative password
dpkg: considering deconfiguration of roundcube-core, which would be broken by 
installation of roundcube ...
dpkg: yes, will deconfigure roundcube-core (broken by roundcube)
Preparing to unpack .../roundcube_1.2~beta+dfsg.1-0ubuntu1_all.deb ...
De-configuring roundcube-core (0.9.5-4) ...
dpkg-maintscript-helper: error: directory '/usr/share/doc/roundcube' contains 
files not owned by package roundcube:all, cannot switch to symlink
dpkg: error processing archive 
/var/cache/apt/archives/roundcube_1.2~beta+dfsg.1-0ubuntu1_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
dbconfig-common: flushing administrative password
Errors were encountered while processing:
 /var/cache/apt/archives/roundcube-core_1.2~beta+dfsg.1-0ubuntu1_all.deb
 /var/cache/apt/archives/roundcube_1.2~beta+dfsg.1-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to