reinstall fails for grub-legacy-ec2

Bug #611812 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cloud-init

apt-get install --reinstall grub-legacy-ec2 will fail due to the diversions.

See:
$ sudo apt-get install --reinstall grub-legacy-ec
2
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
Need to get 27.6kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ maverick/universe grub-leg
acy-ec2 0.5.13-0ubuntu2 [27.6kB]
Fetched 27.6kB in 0s (175kB/s)
Preconfiguring packages ...
(Reading database ... 33492 files and directories currently installed.)
Preparing to replace grub-legacy-ec2 0.5.13-0ubuntu2 (using .../grub-legacy-ec2_0.5.13-0ubuntu2_all.deb) ...
Leaving `diversion of /usr/sbin/grub-set-default to /usr/sbin/grub-set-default.real by grub-legacy-ec2'
Unpacking replacement grub-legacy-ec2 ...
Removing `diversion of /usr/sbin/grub-set-default to /usr/sbin/grub-set-default.real by grub-legacy-ec2'
dpkg-divert: rename involves overwriting `/usr/sbin/grub-set-default' with
  different file `/usr/sbin/grub-set-default.real', not allowed
dpkg: warning: subprocess old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
Removing `diversion of /usr/sbin/grub-set-default to /usr/sbin/grub-set-default.real by grub-legacy-ec2'
dpkg-divert: rename involves overwriting `/usr/sbin/grub-set-default' with
  different file `/usr/sbin/grub-set-default.real', not allowed
dpkg: error processing /var/cache/apt/archives/grub-legacy-ec2_0.5.13-0ubuntu2_all.deb (--unpack):
 subprocess new post-removal script returned error exit status 2
Leaving `diversion of /usr/sbin/grub-set-default to /usr/sbin/grub-set-default.real by grub-legacy-ec2'
Removing `diversion of /usr/sbin/grub-set-default to /usr/sbin/grub-set-default.real by grub-legacy-ec2'
dpkg-divert: rename involves overwriting `/usr/sbin/grub-set-default' with
  different file `/usr/sbin/grub-set-default.real', not allowed
dpkg: error while cleaning up:
 subprocess new post-removal script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/grub-legacy-ec2_0.5.13-0ubuntu2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: grub-legacy-ec2 0.5.13-0ubuntu2
ProcVersionSignature: User Name 2.6.32-305.9-ec2 2.6.32.11+drm33.2
Uname: Linux 2.6.32-305-ec2 i686
Architecture: i386
Date: Fri Jul 30 18:15:57 2010
Ec2AMI: ami-a519f2cc
Ec2AMIManifest: ubuntu-images-testing-us/ubuntu-maverick-daily-i386-server-20100729.1.manifest.xml
Ec2AvailabilityZone: us-east-1b
Ec2InstanceType: m1.small
Ec2Kernel: aki-407d9529
Ec2Ramdisk: unavailable
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init

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

This bug was fixed in the package cloud-init - 0.5.13-0ubuntu3

---------------
cloud-init (0.5.13-0ubuntu3) maverick; urgency=low

  * grub-legacy-ec2: fix 'apt-get --reinstall' and dpkg-divert (LP: #611812)
  * enable -virtual kernels as "xen" kernels (pv_ops now functional)
  * fix bad syntax in cloud-init-run-module.py
 -- Scott Moser <email address hidden> Mon, 02 Aug 2010 16:26:48 -0400

Changed in cloud-init (Ubuntu):
status: New → Fix Released
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.