Thanks for reporting this bug. According to your error message, there is a syntax error in your /usr/sbin/invoke-rc.d file. However in a freshly updated vivid I don't see any problem. Is it possible that you edited that file yourself? Could you please attach that file to this bug?
** Package changed: cgmanager (Ubuntu) => sysvinit (Ubuntu) ** Changed in: sysvinit (Ubuntu) Importance: Undecided => Critical ** Changed in: sysvinit (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to sysvinit in Ubuntu. https://bugs.launchpad.net/bugs/1408349 Title: update fails Status in sysvinit package in Ubuntu: Incomplete Bug description: Apt-get fails to upgrade cgmanager package and dies with the following error: Preparing to unpack .../cgmanager_0.34-1_amd64.deb ... /usr/sbin/invoke-rc.d: 580: /usr/sbin/invoke-rc.d: Syntax error: "fi" unexpected (expecting "then") dpkg: warning: subprocess old pre-removal script returned error exit status 2 dpkg: trying script from the new package instead ... /usr/sbin/invoke-rc.d: 580: /usr/sbin/invoke-rc.d: Syntax error: "fi" unexpected (expecting "then") dpkg: error processing archive /var/cache/apt/archives/cgmanager_0.34-1_amd64.deb (--unpack): subprocess new pre-removal script returned error exit status 2 /usr/sbin/invoke-rc.d: 580: /usr/sbin/invoke-rc.d: Syntax error: "fi" unexpected (expecting "then") dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 2 ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: cgmanager 0.33-2 ProcVersionSignature: Ubuntu 3.16.0-28.38-generic 3.16.7-ckt1 Uname: Linux 3.16.0-28-generic x86_64 ApportVersion: 2.15.1-0ubuntu1 Architecture: amd64 CurrentDesktop: Unity Date: Wed Jan 7 10:06:18 2015 InstallationDate: Installed on 2014-12-11 (27 days ago) InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141210) SourcePackage: cgmanager UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1408349/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp