Cannot remove linux-image-extra when fonts-dejavu-core is not installed

Bug #1718685 reported by Shuming Chan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Steps to reproduce:

run `sudo apt install linux-image-extra-4.10.0-30-generic`

run `sudo apt remove fonts-dejavu-core`

run `sudo apt remove linux-image-extra-4.10.0-30-generic`

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu

Description: Ubuntu 17.04
Release: 17.04

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center

Installed: 4.10.0-30.34

3) What you expected to happen

linux-image-extra-4.10.0-30-generic is removed.

4) What happened instead

cp: cannot stat '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf': No such file or directory
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.10.0-30-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.10.0-30-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-4.10.0-30-generic

This is especially annoying because when you run `sudo apt install fonts-dejavu-core`, apt attempts to remove linux-image-extra-4.10.0-30-generic, then fails, then doesn't install fonts-dejavu-core. This also happens when you try to install any other package.
---
ApportVersion: 2.20.4-0ubuntu4.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: shuming 1454 F.... pulseaudio
 /dev/snd/controlC0: shuming 1454 F.... pulseaudio
CurrentDesktop: GNOME
DistroRelease: Ubuntu 17.04
InstallationDate: Installed on 2015-05-11 (863 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
MachineType: Acer Aspire V3-572G
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: \boot\vmlinuz-4.10.0-33-generic.efi.signed root=UUID=bcddc76b-b1df-4108-8ebc-9f5378968dd0 ro quiet splash vt.handoff=7 initrd=boot\initrd.img-4.10.0-33-generic
ProcVersionSignature: Ubuntu 4.10.0-33.37-generic 4.10.17
RelatedPackageVersions:
 linux-restricted-modules-4.10.0-33-generic N/A
 linux-backports-modules-4.10.0-33-generic N/A
 linux-firmware 1.164.1
Tags: zesty
Uname: Linux 4.10.0-33-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 12/12/2014
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: V1.24
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: EA50_HB
dmi.board.vendor: Acer
dmi.board.version: V1.24
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsydeCorp.:bvrV1.24:bd12/12/2014:svnAcer:pnAspireV3-572G:pvrV1.24:rvnAcer:rnEA50_HB:rvrV1.24:cvnAcer:ct10:cvrChassisVersion:
dmi.product.name: Aspire V3-572G
dmi.product.version: V1.24
dmi.sys.vendor: Acer

Revision history for this message
Shuming Chan (shuming0207) wrote :
affects: linux-meta (Ubuntu) → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1718685

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: zesty
Revision history for this message
Shuming Chan (shuming0207) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Shuming Chan (shuming0207) wrote : CRDA.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : IwConfig.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : JournalErrors.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : Lspci.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : Lsusb.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : ProcEnviron.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : ProcModules.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : PulseList.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : RfKill.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : UdevDb.txt

apport information

Revision history for this message
Shuming Chan (shuming0207) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.