Public bug reported:
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?
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1753740
Title:
Update to grub-legacy-ec2 17.2-35-gf576b2a2-0ubuntu1~16.04.2 failed to
remove old files
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1753740/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs