Upgrade removed grub-pc, left grub with no /usr/sbin/update-grub
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This happened after a large batch of installing Karmic updates:
Calculating upgrade... Done
The following packages will be REMOVED:
grub-doc grub-pc rtkit
The following NEW packages will be installed:
linux-
linux-
The following packages have been kept back:
ubuntuone-client
The following packages will be upgraded:
acpi-support alsa-base alsa-utils app-install-data apport apport-gtk
apport-retrace apt apt-transport-https apt-utils aptdaemon at-spi audacity
audacity-data avahi-autoipd avahi-daemon avahi-utils avant-window-
avant-
binutils-static brltty brltty-x11 byobu cdbs cdrdao checkbox checkbox-gtk
claws-mail claws-mail-i18n comerr-dev command-not-found
command-
compiz-
compizconfig-
couchdb-bin cpp-4.4 cryptsetup cups cups-bsd cups-client cups-common
cups-ppdc cupsddk cupsys cupsys-bsd cupsys-client cupsys-common desktopcouch
devicekit-disks devicekit-power dovecot-common dovecot-imapd e2fslibs
e2fsprogs ecryptfs-utils empathy empathy-doc evince evolution
evolution-common evolution-couchdb evolution-
evolution-
evolution-plugins ffmpeg fglrx-modaliases firefox firefox-3.5
firefox-
g++-4.4 gcalctool gcc-4.4 gcc-4.4-base gcc-4.4-doc gdb gdm gdm-guest-session
ghostscript ghostscript-cups ghostscript-x gnome-bluetooth gnome-common
gnome-
gnome-
gnome-
gs-common gs-esp gstreamer0.10-esd gstreamer0.
gstreamer0.
gtk2-
gvfs-fuse gwibber hal-cups-utils hpijs hplip hplip-cups hplip-data
human-theme humanity-icon-theme hwtest hwtest-gtk ibus ibus-gtk ibus-m17n
indicator-applet indicator-
initscripts kvm landscape-client landscape-common language-pack-en
language-
language-
language-
libasound2 libasound2-dev libatspi1.0-0 libavahi-client-dev libavahi-client3
libavahi-
libavahi-
libavahi-gobject0 libavahi-ui0 libavcodec-dev libavcodec52 libavdevice52
libavfilter0 libavformat-dev libavformat52 libavutil-dev libavutil49 libawn0
libbrlapi0.5 libcamel1.2-14 libcamel1.2-dev libclutter-1.0-0 libcomerr2
libcompizconfig0 libcouchdb-
libcupsdriver1 libcupsimage2 libcupsmime1 libcupsppdc1 libdbus-glib-1-2
libdbus-
libebackend1.2-0 libebook1.2-9 libecal1.2-7 libecryptfs0 libedata-book1.2-2
libedata-cal1.2-6 libedataserver1
libedataserve
libempathy-
libevview1 libexchange-
libgcc1 libgcr0 libgdata-
libgfortran3 libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx
libglibmm-
libgnome-
libgnomevfs2-bin libgnomevfs2-common libgnomevfs2-dev libgnomevfs2-extra
libgomp1 libgp11-0 libgphoto2-2 libgphoto2-port0 libgpm-dev libgpm2
libgpmg1-dev libgs8 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtk2.0-dev
libgtkhtml-
libgtkhtml3.8-15 libgtkhtml3.8-dev libgtkmm-2.4-1c2a libgudev-1.0-0
libgvfscommon0 libgweather-common libgweather1 libibus1 libieee1284-3
liblircclient-dev liblircclient0 libmtp-dev libmtp8 libnautilus-
libnautilus-burn4 libnautilus-
libncurses5 libncurses5-dev libncursesw5 libnm-glib2 libnm-util1
libntfs-3g54 libofx-dev libofx4 libpam-
libpcre3 libpcrecpp0 libpolkit-agent-1-0 libpolkit-
libpolkit-
libpulse-
libqt4-core libqt4-dbus libqt4-designer libqt4-gui libqt4-network
libqt4-opengl libqt4-script libqt4-svg libqt4-test libqt4-xml libqtcore4
libqtgui4 libsane libscim8c2a libselinux1 libselinux1-dev libsoup2.2-8
libsoup2.2-dev libspeechd2 libss2 libstdc++6 libstdc++6-4.4-dev libsvga1
libswscale0 libudev0 libusplash0 libvisual-
libwebkit-
libxrender1 libxxf86vm-dev libxxf86vm1 libzephyr4 linux linux-doc
linux-firmware linux-generic linux-headers-
linux-
mesa-common-dev mesa-utils mimms mobile-
mountall mplayer mplayer-doc mplayer-nogui mplayer-skin-blue mplayer-skins
nautilus nautilus-data ncurses-base ncurses-bin ncurses-term nethack-common
nethack-console network-manager network-
nvidia-
nvidia-
openoffice.
openoffice.
openoffice.
openoffice.
openoffice.
openoffice.
policykit-1-gnome pulseaudio pulseaudio-
pulseaudio-
pulseaudio-
python-apport python-aptdaemon python-
python-brlapi python-central python-cupshelpers python-desktopcouch
python-
python-
python-gtkhtml2 python-gtkmozembed python-gtkspell python-ibus
python-minimal python-papyon python-
python-sip4 python-speechd python-uno python2.6 python2.6-dev python2.6-doc
python2.6-minimal qemu rhythmbox rsyslog sane-utils scim scim-gtk2-immodule
scim-
speech-dispatcher sreadahead synaptic system-
system-
sysvinit-utils sysvutils telepathy-gabble telepathy-idle totem totem-common
totem-gstreamer totem-mozilla totem-plugins transmission-common
transmission-gtk ttf-opensymbol tzdata ubufox ubuntu-artwork ubuntu-desktop
ubuntu-docs ubuntu-minimal ubuntu-sounds ubuntu-standard
ubuntu-
uno-libs3 update-manager update-manager-core update-notifier
update-
usb-creator-gtk usplash usplash-
xdg-user-dirs xkb-data xnest xserver-common xserver-xephyr xserver-xorg-core
xserver-xorg-dev xserver-
xserver-
xserver-
507 upgraded, 4 newly installed, 3 to remove and 1 not upgraded.
mizar:[~] sudo update-grub
Your /usr is broken, please fix it before call this wrapper!
mizar:[~] ls -l /usr/sbin/
ls: cannot access /usr/sbin/
Installing grub-pc (which removed grub) got things working again:
The following packages will be REMOVED:
grub
The following NEW packages will be installed:
grub-pc
0 upgraded, 1 newly installed, 1 to remove and 1 not upgraded.
5 not fully installed or removed.
Need to get 434kB of archives.
After this operation, 762kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://
Fetched 434kB in 0s (3,548kB/s)
Preconfiguring packages ...
(Reading database ... 404012 files and directories currently installed.)
Removing grub ...
Processing triggers for man-db ...
Selecting previously deselected package grub-pc.
(Reading database ... 403974 files and directories currently installed.)
Unpacking grub-pc (from .../grub-
Processing triggers for man-db ...
Setting up linux-image-
Running depmod.
update-initramfs: Generating /boot/initrd.
Running postinst hook script /usr/sbin/
Generating grub.cfg ...
Found Debian background: moreblue-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
Examining /etc/kernel/
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Setting up linux-image-generic (2.6.31.14.27) ...
Setting up linux-image (2.6.31.14.27) ...
Setting up linux (2.6.31.14.27) ...
Setting up linux-generic (2.6.31.14.27) ...
Setting up grub-pc (1.97~beta4-
Installation finished. No error reported.
This is the contents of the device map /boot/grub/
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
(hd1) /dev/sdb
grub-setup: warn: Your embedding area is unusually small. core.img won't fit in it.
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.
Installation finished. No error reported.
This is the contents of the device map /boot/grub/
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
(hd1) /dev/sdb
Generating grub.cfg ...
Found Debian background: moreblue-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found memtest86+ image: /boot/memtest86
done
ProblemType: Package
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'Live'/'SB Live! 5.1 (rev.7, serial:0x80641102) at 0xdf80, irq 18'
Mixer name : 'eMicro EM28028'
Components : 'AC97a:454d4328'
Controls : 216
Simple ctrls : 38
Card1.Amixer.info:
Card hw:1 'default'/'C-Media USB Headphone Set at usb-0000:
Mixer name : 'USB Mixer'
Components : 'USB0d8c:000c'
Controls : 7
Simple ctrls : 3
Date: Mon Oct 19 18:15:27 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 2
HibernationDevice: RESUME=
IwConfig:
lo no wireless extensions.
eth1 no wireless extensions.
MachineType: HP Pavilion 061 D7223K-ABA A650E
Package: linux-image-
ProcCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
RfKill:
SourcePackage: linux
Title: package linux-image-
Uname: Linux 2.6.31-11-generic i686
WpaSupplicantLog:
dmi.bios.date: 06/01/2004
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 3.10
dmi.board.name: Diablo
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: D7223K-ABA A650E
dmi.product.
dmi.sys.vendor: HP Pavilion 061
affects: | grub2 (Ubuntu) → grub (Ubuntu) |
grub-pc and grub are supposed to conflict; there was a window during which they didn't, at which point grub seems to have gotten installed on your system, and now apt is removing the wrong one on upgrade. Can we see the older apt logs, to see why grub got pulled in to begin with? (You don't have startupmanager installed, do you?)