Purge fails: cp: cannot stat `/usr/share/sysvinit/inittab': No such file or directory

Bug #940933 reported by Swen Kühnlein
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-container (Ubuntu)

Bug Description

root@cassiopeia:~# LANG=C dpkg -l linux-container
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
pc linux-container 1-4 Linux containers userspace tools (container support package)

root@cassiopeia:~# LANG=C apt-get remove --purge linux-container
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 380186 files and directories currently installed.)
Removing linux-container ...
Purging configuration files for linux-container ...
cp: cannot stat `/usr/share/sysvinit/inittab': No such file or directory
dpkg: error processing linux-container (--purge):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-container (Ubuntu):
status: New → Confirmed
Revision history for this message
Liu Jiaming (storypku) wrote :

This bug was caused by purging linux-container, which claims it can't stat /usr/share/sysvinit/inittab.
However, when trying to enter that directory , it doesn't exist at all.
After "sudo mkdir /usr/share/sysvinit/ " , cd to it, and touch the inittab file, the problem goes away and
linux-container was successfully purged.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers