package sgml-base 1.26+nmu4ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sgml-base (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The bug seems very similar to 1074475, but I encountered it in upgrading from 14.10 to 15.04, and in my case, the post-installation script returns error code 2.
As a consequence of this bug, dpkg reports dependency problems while processing:
sgml-base
metacity-common
libmetacity-
compiz-gnome
compiz
unity
libunity-
metacity
sgml-data
ubuntu-desktop
unity-2d
unity-2d-common
unity-2d-panel
unity-2d-shell
unity-2d-spread
compizconfig-
ProblemType: Package
DistroRelease: Ubuntu 15.04
Package: sgml-base 1.26+nmu4ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-15-generic x86_64
NonfreeKernelMo
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
Date: Fri Apr 24 17:24:36 2015
DuplicateSignature: package:
ErrorMessage: subprocess installed post-installation script returned error exit status 2
PackageArchitec
RelatedPackageV
dpkg 1.17.25ubuntu1
apt 1.0.9.7ubuntu4
SourcePackage: sgml-base
Title: package sgml-base 1.26+nmu4ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: Upgraded to vivid on 2015-04-23 (0 days ago)
tags: | removed: need-duplicate-check |
The error message (see attachment DpkgTerminalLog .txt) says:
cannot open /var/lib/ sgml-base/ supercatalog. new for writing: No such file or directory at /usr/sbin/ update- catalog line 312.
"ls /var/lib" shows that /var/lib/sgml-base does not exist. Fixing this manually (sudo mkdir /var/lib/sgml-base) and then running "sudo apt-get upgrade" fixes the problem and sets up sgml-base and the packages that depend on it.