Update to grub-legacy-ec2 17.2-35-gf576b2a2-0ubuntu1~16.04.2 failed to remove old files

Bug #1753740 reported by Shedros
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi there,

after upgrading grub-legacy-ec2 to 17.2-35-gf576b2a2-0ubuntu1~16.04.2 from 17.1-46-g7acc9e68-0ubuntu1~16.04.1 on my Ubuntu 16.04.4 LTS it failed some dpkg commands:

Vorbereitung zum Entpacken von .../grub-legacy-ec2_17.2-35-gf576b2a2-0ubuntu1~16.04.2_all.deb ...
»Umleitung von /usr/sbin/grub-set-default zu /usr/sbin/grub-set-default.real durch grub-legacy-ec2« wird beibehalten
Entpacken von grub-legacy-ec2 (17.2-35-gf576b2a2-0ubuntu1~16.04.2) über (17.1-46-g7acc9e68-0ubuntu1~16.04.1) ...
!!!
dpkg: Warnung: Altes Verzeichnis »/etc/kernel/kernel/postrm.d« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/kernel/kernel/postinst.d« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
dpkg: Warnung: Altes Verzeichnis »/etc/kernel/kernel« kann nicht gelöscht werden: Das Verzeichnis ist nicht leer
!!!
grub-legacy-ec2 (17.2-35-gf576b2a2-0ubuntu1~16.04.2) wird eingerichtet ...
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /vmlinuz-4.4.0-112-generic
Found kernel: /vmlinuz-4.4.0-21-generic
Replacing config file /run/grub/menu.lst with new version
Found kernel: /vmlinuz-4.4.0-116-generic
Found kernel: /vmlinuz-4.4.0-112-generic
Replacing config file /run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

I marked the errors with !!!. It says: "Old directory XXX could not be removed, directory isn't empty."

It seems that it tries to remove "/etc/kernel/kernel/postrm.d", "/etc/kernel/kernel/postinst.d" and "/etc/kernel/kernel" but failed because they are not empty, the old scripts "x-grub-legacy-ec2" reside inside the folders. They are moved "up" to "/etc/kernel". Is this supposed behavior? When I move /etc/kernel/kernel/ to /etc/kernel/kernel.bck" every works fine.

Any way to fix the package?

Revision history for this message
Scott Moser (smoser) wrote :

I think these comments are just noise at this piont.
I do not believe you will see them on subsequent updates.

there was a fix that went in that moved the directory from '/etc/kernel/kernel' to '/etc/kernel' (bug 1581416).
i believe the messages are just a result of that.

if you continued to see this on subsequent ugrades you can set back to new.

Changed in cloud-init (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-init (Ubuntu) because there has been no activity for 60 days.]

Changed in cloud-init (Ubuntu):
status: Incomplete → Expired
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.