Package: grub-pc Version: 1.98~20100126-1 Severity: important --- Please enter the report below this line. --- When upgrading my system using # apt-get upgrade among other messages I got the error /usr/sbin/grub-probe: error: cannot stat `/boot/grub/locale'
prub-pc was upgrading from from 1.98~20100115-1 to 1.98~20100126-1 and $LANG was "el_GR.UTF-8". The file /boot/grub/locale was mentioned in the old grub.cfg with the lines set locale_dir=/boot/grub/locale set lang=el The messages in detail are in [file1_apt-get_update.txt] After this I tried # apt-get -f install with no success The messages in detail are in [file2_apt-get_-f_install.txt] After this I tried # LANG=C apt-get -f install and the grub.cfg was generated without any errors The messages in detail are in [file3_LANG=C_apt-get_-f_install.txt] Regards George Famelis --- System information. --- Architecture: i386 Kernel: Linux 2.6.32-trunk-vserver-686 Debian Release: squeeze/sid 500 unstable www.debian-multimedia.org 500 unstable ftp.debian.org 500 testing ftp.debian.org 500 stable ftp.gr.debian.org 500 stable dl.google.com 1 experimental ftp.debian.org --- Package information. --- Depends (Version) | Installed ===================================-+-==================== libc6 (>= 2.3) | 2.10.2-5 debconf (>= 0.5) | 1.5.28 OR debconf-2.0 | grub-common (= 1.98~20100126-1) | 1.98~20100126-1 ucf | 3.0025 Package's Recommends field is empty. Suggests (Version) | Installed ===========================-+-=========== desktop-base (>= 4.0.6) | 5.0.5 --- Output from package bug script --- *********************** BEGIN /proc/mounts /dev/disk/by-uuid/36a95a95-8689-4ced-a5ef-0749107ce6c4 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0 /dev/sda7 /home ext3 rw,relatime,errors=continue,data=ordered 0 0 /dev/sda6 /tmp ext3 rw,relatime,errors=continue,data=ordered 0 0 /dev/sda7 /var/cache/apt/archives ext3 rw,relatime,errors=continue,data=ordered 0 0 *********************** END /proc/mounts *********************** BEGIN /boot/grub/device.map (hd0) /dev/sda *********************** END /boot/grub/device.map *********************** BEGIN /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by /usr/sbin/grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default="0" if [ ${prev_saved_entry} ]; then set saved_entry=${prev_saved_entry} save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z ${boot_once} ]; then saved_entry=${chosen} save_env saved_entry fi } insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 36a95a95-8689-4ced-a5ef-0749107ce6c4 if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 insmod gfxterm insmod vbe if terminal_output gfxterm ; then true ; else # For backward compatibility with versions of terminal.mod that don't # understand terminal_output terminal gfxterm fi fi set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 36a95a95-8689-4ced-a5ef-0749107ce6c4 insmod png if background_image /boot/grub/moreblue-orbit-grub.png ; then set color_normal=black/black set color_highlight=magenta/black else set menu_color_normal=cyan/blue set menu_color_highlight=white/blue fi ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-vserver-686" { set gfxpayload=keep insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 36a95a95-8689-4ced-a5ef-0749107ce6c4 echo Loading Linux 2.6.32-trunk-vserver-686 ... linux /boot/vmlinuz-2.6.32-trunk-vserver-686 root=UUID=36a95a95-8689-4ced-a5ef-0749107ce6c4 ro echo Loading initial ramdisk ... initrd /boot/initrd.img-2.6.32-trunk-vserver-686 } menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-vserver-686 (recovery mode)" { set gfxpayload=keep insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 36a95a95-8689-4ced-a5ef-0749107ce6c4 echo Loading Linux 2.6.32-trunk-vserver-686 ... linux /boot/vmlinuz-2.6.32-trunk-vserver-686 root=UUID=36a95a95-8689-4ced-a5ef-0749107ce6c4 ro single echo Loading initial ramdisk ... initrd /boot/initrd.img-2.6.32-trunk-vserver-686 } menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686" { set gfxpayload=keep insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 36a95a95-8689-4ced-a5ef-0749107ce6c4 echo Loading Linux 2.6.32-trunk-686 ... linux /boot/vmlinuz-2.6.32-trunk-686 root=UUID=36a95a95-8689-4ced-a5ef-0749107ce6c4 ro echo Loading initial ramdisk ... initrd /boot/initrd.img-2.6.32-trunk-686 } menuentry "Debian GNU/Linux, with Linux 2.6.32-trunk-686 (recovery mode)" { set gfxpayload=keep insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 36a95a95-8689-4ced-a5ef-0749107ce6c4 echo Loading Linux 2.6.32-trunk-686 ... linux /boot/vmlinuz-2.6.32-trunk-686 root=UUID=36a95a95-8689-4ced-a5ef-0749107ce6c4 ro single echo Loading initial ramdisk ... initrd /boot/initrd.img-2.6.32-trunk-686 } menuentry "Debian GNU/Linux, with Linux 2.6.31-1-686" { set gfxpayload=keep insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 36a95a95-8689-4ced-a5ef-0749107ce6c4 echo Loading Linux 2.6.31-1-686 ... linux /boot/vmlinuz-2.6.31-1-686 root=UUID=36a95a95-8689-4ced-a5ef-0749107ce6c4 ro echo Loading initial ramdisk ... initrd /boot/initrd.img-2.6.31-1-686 } menuentry "Debian GNU/Linux, with Linux 2.6.31-1-686 (recovery mode)" { set gfxpayload=keep insmod ext2 set root=(hd0,1) search --no-floppy --fs-uuid --set 36a95a95-8689-4ced-a5ef-0749107ce6c4 echo Loading Linux 2.6.31-1-686 ... linux /boot/vmlinuz-2.6.31-1-686 root=UUID=36a95a95-8689-4ced-a5ef-0749107ce6c4 ro single echo Loading initial ramdisk ... initrd /boot/initrd.img-2.6.31-1-686 } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. # Set console mode equivalent to vga=791 set gfxpayload=1024x768x16 ### END /etc/grub.d/40_custom ### *********************** END /boot/grub/grub.cfg
Tehanu!512 00:50:/root# apt-get upgrade ... Προετοιμασία για αντικατάσταση grub-pc 1.98~20100115-1 (χρησιμοποιώντας το .../grub-pc_1.98~20100126-1_i386.deb) ... Αποσυμπίεση του αντικαταστάτη grub-pc ... Προετοιμασία για αντικατάσταση grub-common 1.98~20100115-1 (χρησιμοποιώντας το .../grub-common_1.98~20100126-1_i386.deb) ... Αποσυμπίεση του αντικαταστάτη grub-common ... Προετοιμασία για αντικατάσταση grub2 1.98~20100115-1 (χρησιμοποιώντας το .../grub2_1.98~20100126-1_i386.deb) ... Αποσυμπίεση του αντικαταστάτη grub2 ... ... Γίνεται εγκατάσταση grub-common (1.98~20100126-1) ... Εγκατάσταση νέας έκδοσης του αρχείου ρυθμίσεων /etc/grub.d/10_linux ... Εγκατάσταση νέας έκδοσης του αρχείου ρυθμίσεων /etc/grub.d/00_header ... Γίνεται εγκατάσταση grub-pc (1.98~20100126-1) ... Generating grub.cfg ... /usr/sbin/grub-probe: error: cannot stat `/boot/grub/locale'. No path or device is specified. Try `/usr/sbin/grub-probe --help' for more information. dpkg: σφάλμα στην επεξεργασία του grub-pc (--configure): η υποδιεργασία installed post-installation script επέστρεψε κατάσταση λάθους 1 dpkg: προβλήματα εξαρτήσεων εμποδίζουν τη ρύθμιση του grub2: grub2 εξαρτάται από grub-pc. Ωστόσο: Το πακέτο grub-pc δεν έχει ρυθμιστεί ακόμη. dpkg: σφάλμα στην επεξεργασία του grub2 (--configure): προβλήματα εξάρτησης - αφήνεται μη ρυθμισμένο
Tehanu!523 01:05:/etc/grub.d# apt-get -f install Ανάγνωση Λιστών Πακέτων... Ολοκληρώθηκε Κατασκευή Δένδρου Εξαρτήσεων Ανάγνωση περιγραφής της τρέχουσας κατάσταση... Ολοκληρώθηκε 0 αναβαθμίστηκαν, 0 νέο εγκατεστημένα, 0 θα αφαιρεθούν και 2 δεν αναβαθμίζονται. 2 μη πλήρως εγκατεστημένα ή αφαιρέθηκαν. Μετά από αυτή τη λειτουργία, θα χρησιμοποιηθούν 0B χώρου από το δίσκο. Γίνεται εγκατάσταση grub-pc (1.98~20100126-1) ... Generating grub.cfg ... /usr/sbin/grub-probe: error: cannot stat `/boot/grub/locale'. No path or device is specified. Try `/usr/sbin/grub-probe --help' for more information. dpkg: σφάλμα στην επεξεργασία του grub-pc (--configure): η υποδιεργασία installed post-installation script επέστρεψε κατάσταση λάθους 1 dpkg: προβλήματα εξαρτήσεων εμποδίζουν τη ρύθμιση του grub2: grub2 εξαρτάται από grub-pc. Ωστόσο: Το πακέτο grub-pc δεν έχει ρυθμιστεί ακόμη. dpkg: σφάλμα στην επεξεργασία του grub2 (--configure): προβλήματα εξάρτησης - αφήνεται μη ρυθμισμένο Προέκυψαν σφάλματα κατά την επεξεργασία του: grub-pc grub2 E: Sub-process /usr/bin/dpkg returned an error code (1)
Tehanu!524 01:06:/etc/grub.d# LANG=C apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. 2 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up grub-pc (1.98~20100126-1) ... Generating grub.cfg ... Found background image: moreblue-orbit-grub.png Found linux image: /boot/vmlinuz-2.6.32-trunk-vserver-686 Found initrd image: /boot/initrd.img-2.6.32-trunk-vserver-686 Found linux image: /boot/vmlinuz-2.6.32-trunk-686 Found initrd image: /boot/initrd.img-2.6.32-trunk-686 Found linux image: /boot/vmlinuz-2.6.31-1-686 Found initrd image: /boot/initrd.img-2.6.31-1-686 done Setting up grub2 (1.98~20100126-1) ...