Adding "set -x" near the top of /etc/grub.d/07_debian_theme may help diagnose exactly what's going on; but perhaps this is simply a leftover from some local experiment and should be removed in favour of /etc/grub.d/05_debian_theme.
Oh so the problem is the file /etc/grub.d/07_debian_theme ? I have just to remove the file or I have to modify something inside the other files of grub? P.S. I know that we are all full of work in this period, my frustration comes from the fact that I can't turn off the pc and every time I do an upgrade I have to remove the file /boot/grub/grub.cfg.new or I have to put a live distrution inside and replace all the files with my backup of the folders of Grub :) 2013/7/17 Debian Bug Tracking System <ow...@bugs.debian.org> > This is an automatic notification regarding your Bug report > which was filed against the grub-pc package: > > #717177: grub-pc: impossible to have a working grub or a working kernel > > It has been closed by Colin Watson <cjwat...@debian.org>. > > Their explanation is attached below along with your original report. > If this explanation is unsatisfactory and you have not received a > better one in a separate message then please contact Colin Watson < > cjwat...@debian.org> by > replying to this email. > > > -- > 717177: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717177 > Debian Bug Tracking System > Contact ow...@bugs.debian.org with problems > > > ---------- Messaggio inoltrato ---------- > From: Colin Watson <cjwat...@debian.org> > To: 717177-cl...@bugs.debian.org > Cc: > Date: Wed, 17 Jul 2013 17:20:50 +0100 > Subject: Re: Bug#717177: grub-pc: impossible to have a working grub or a > working kernel > On Wed, Jul 17, 2013 at 05:55:57PM +0200, cosimo morelli wrote: > > "This sort of language does not persuade me to spend much time helping > > you. Please tone it down." > > > > Well, it works :D This time I had an answer ;) > > That was only because I was procrastinating thinking about a complicated > problem at work. > > > + grub_file_is_not_garbage /etc/grub.d/07_debian_theme > > + test -f /etc/grub.d/07_debian_theme > > + return 0 > > + test -x /etc/grub.d/07_debian_theme > > + echo > > + echo ### BEGIN /etc/grub.d/07_debian_theme ### > > + /etc/grub.d/07_debian_theme > > So /etc/grub.d/07_debian_theme is apparently the problem. This file > isn't shipped by any Debian package, which means that the problem was > created at your end. > > Adding "set -x" near the top of /etc/grub.d/07_debian_theme may help > diagnose exactly what's going on; but perhaps this is simply a leftover > from some local experiment and should be removed in favour of > /etc/grub.d/05_debian_theme. > > -- > Colin Watson [cjwat...@debian.org] > > ---------- Messaggio inoltrato ---------- > From: cosimo morelli <lordofenup...@gmail.com> > To: Debian Bug Tracking System <sub...@bugs.debian.org> > Cc: > Date: Wed, 17 Jul 2013 16:10:52 +0200 > Subject: grub-pc: impossible to have a working grub or a working kernel > Package: grub-pc > Version: 2.00-15 > Severity: critical > Justification: breaks the whole system > > Dear Maintainer, > > mew version and same shit > > E: Sub-process /usr/bin/dpkg returned an error code (1) > Errore durante l'installazione di un pacchetto. Tentativo di ripristino: > Configurazione di linux-image-3.9-1-686-pae (3.9.8-1)... > Running depmod. > vmlinuz(/boot/vmlinuz-3.9-1-686-pae > ) points to /boot/vmlinuz-3.9-1-686-pae > (/boot/vmlinuz-3.9-1-686-pae) -- doing nothing at > /var/lib/dpkg/info/linux- > image-3.9-1-686-pae.postinst line 268. > initrd.img(/boot/initrd.img-3.9-1-686-pae > ) points to /boot/initrd.img-3.9-1-686-pae > (/boot/initrd.img-3.9-1-686-pae) -- doing nothing at > /var/lib/dpkg/info/linux- > image-3.9-1-686-pae.postinst line 268. > Examining /etc/kernel/postinst.d. > run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.9-1-686-pae > /boot/vmlinuz-3.9-1-686-pae > run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.9-1-686-pae > /boot/vmlinuz-3.9-1-686-pae > update-initramfs: Generating /boot/initrd.img-3.9-1-686-pae > run-parts: executing /etc/kernel/postinst.d/pm-utils 3.9-1-686-pae > /boot/vmlinuz-3.9-1-686-pae > run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.9-1-686-pae > /boot/vmlinuz-3.9-1-686-pae > P: Checking for EXTLINUX directory... found. > P: Writing config for /boot/vmlinuz-3.9-1-686-pae... > P: Writing config for /boot/vmlinuz-3.8-2-686-pae... > P: Writing config for /boot/vmlinuz-3.8-1-686-pae... > P: Writing config for /boot/vmlinuz-3.2.0-4-686-pae... > P: Writing config for Windows 7 (loader) on /dev/sda1... > P: Installing debian theme... done. > run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.9-1-686-pae > /boot/vmlinuz-3.9-1-686-pae > Creazione di grub.cfg... > Found background image: /usr/share/images/desktop-base/desktop-grub.png > run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1 > Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux- > image-3.9-1-686-pae.postinst line 696. > dpkg: errore nell'elaborare linux-image-3.9-1-686-pae (--configure): > il sottoprocesso installato script di post-installation ha restituito lo > stato > di errore 1 > Configurazione di grub-pc (2.00-15)... > Installazione completata, nessun errore segnalato. > Creazione di grub.cfg... > Found background image: /usr/share/images/desktop-base/desktop-grub.png > dpkg: errore nell'elaborare grub-pc (--configure): > il sottoprocesso installato script di post-installation ha restituito lo > stato > di errore 1 > dpkg: problemi con le dipendenze impediscono la configurazione di linux- > image-686-pae: > linux-image-686-pae dipende da linux-image-3.9-1-686-pae; comunque: > Il pacchetto linux-image-3.9-1-686-pae non è ancora configurato. > > dpkg: errore nell'elaborare linux-image-686-pae (--configure): > problemi con le dipendenze - lasciato non configurato > Si sono verificati degli errori nell'elaborazione: > linux-image-3.9-1-686-pae > grub-pc > linux-image-686-pae > > > > -- Package-specific info: > > *********************** BEGIN /proc/mounts > /dev/disk/by-uuid/136c4dd3-50f0-403b-b91a-84457ef2051f / ext4 > rw,relatime,errors=remount-ro,data=ordered 0 0 > /dev/sda2 /mnt/windows fuseblk > rw,nosuid,nodev,noexec,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 > 0 0 > *********************** END /proc/mounts > > *********************** BEGIN /boot/grub/device.map > (hd0) /dev/disk/by-id/ata-TOSHIBA_MK5076GSX_61DTD1C4B > *********************** END /boot/grub/device.map > > *********************** BEGIN /boot/grub/grub.cfg > # > # DO NOT EDIT THIS FILE > # > # It is automatically generated by 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 > } > > function load_video { > insmod vbe > insmod vga > insmod video_bochs > insmod video_cirrus > } > > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > if loadfont /usr/share/grub/unicode.pf2 ; then > set gfxmode=1366x768 > load_video > insmod gfxterm > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > set locale_dir=($root)/boot/grub/locale > set lang=it_IT > insmod gettext > fi > terminal_output gfxterm > set timeout=5 > ### END /etc/grub.d/#00_header# ### > > ### 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 > } > > function load_video { > insmod vbe > insmod vga > insmod video_bochs > insmod video_cirrus > } > > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > if loadfont /usr/share/grub/unicode.pf2 ; then > set gfxmode=1366x768 > load_video > insmod gfxterm > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > set locale_dir=($root)/boot/grub/locale > set lang=it_IT > insmod gettext > fi > terminal_output gfxterm > set timeout=5 > ### END /etc/grub.d/00_header ### > > ### BEGIN /etc/grub.d/05_debian_theme ### > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > insmod png > if background_image /usr/share/images/desktop-base/joy-grub.png; then > set color_normal=white/black > set color_highlight=black/white > 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/07_debian_theme ### > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > insmod png > if background_image /usr/share/images/desktop-base/joy-grub.png; then > set color_normal=white/black > set color_highlight=black/white > else > set menu_color_normal=cyan/blue > set menu_color_highlight=white/blue > fi > ### END /etc/grub.d/07_debian_theme ### > > ### BEGIN /etc/grub.d/10_linux ### > menuentry 'Debian GNU/Linux, con Linux 3.8-1-686-pae' --class debian > --class gnu-linux --class gnu --class os { > load_video > insmod gzio > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > echo 'Caricamento Linux 3.8-1-686-pae...' > linux /boot/vmlinuz-3.8-1-686-pae > root=UUID=136c4dd3-50f0-403b-b91a-84457ef2051f ro quiet > echo 'Caricamento ramdisk iniziale...' > initrd /boot/initrd.img-3.8-1-686-pae > } > menuentry 'Debian GNU/Linux, con Linux 3.8-1-686-pae (modalità > ripristino)' --class debian --class gnu-linux --class gnu --class os { > load_video > insmod gzio > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > echo 'Caricamento Linux 3.8-1-686-pae...' > linux /boot/vmlinuz-3.8-1-686-pae > root=UUID=136c4dd3-50f0-403b-b91a-84457ef2051f ro single > echo 'Caricamento ramdisk iniziale...' > initrd /boot/initrd.img-3.8-1-686-pae > } > menuentry 'Debian GNU/Linux, con Linux 3.2.0-4-686-pae' --class debian > --class gnu-linux --class gnu --class os { > load_video > insmod gzio > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > echo 'Caricamento Linux 3.2.0-4-686-pae...' > linux /boot/vmlinuz-3.2.0-4-686-pae > root=UUID=136c4dd3-50f0-403b-b91a-84457ef2051f ro quiet > echo 'Caricamento ramdisk iniziale...' > initrd /boot/initrd.img-3.2.0-4-686-pae > } > menuentry 'Debian GNU/Linux, con Linux 3.2.0-4-686-pae (modalità > ripristino)' --class debian --class gnu-linux --class gnu --class os { > load_video > insmod gzio > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > echo 'Caricamento Linux 3.2.0-4-686-pae...' > linux /boot/vmlinuz-3.2.0-4-686-pae > root=UUID=136c4dd3-50f0-403b-b91a-84457ef2051f ro single > echo 'Caricamento ramdisk iniziale...' > initrd /boot/initrd.img-3.2.0-4-686-pae > } > ### END /etc/grub.d/10_linux ### > > ### BEGIN /etc/grub.d/20_linux_xen ### > ### END /etc/grub.d/20_linux_xen ### > > ### BEGIN /etc/grub.d/20_memtest86+ ### > menuentry "Memory test (memtest86+)" { > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > linux16 /boot/memtest86+.bin > } > menuentry "Memory test (memtest86+, serial console 115200)" { > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > linux16 /boot/memtest86+.bin console=ttyS0,115200n8 > } > menuentry "Memory test (memtest86+, experimental multiboot)" { > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > multiboot /boot/memtest86+_multiboot.bin > } > menuentry "Memory test (memtest86+, serial console 115200, experimental > multiboot)" { > insmod part_msdos > insmod ext2 > set root='(hd0,msdos3)' > search --no-floppy --fs-uuid --set=root > 136c4dd3-50f0-403b-b91a-84457ef2051f > multiboot /boot/memtest86+_multiboot.bin > console=ttyS0,115200n8 > } > ### END /etc/grub.d/20_memtest86+ ### > > ### BEGIN /etc/grub.d/30_os-prober ### > menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os { > insmod part_msdos > insmod ntfs > set root='(hd0,msdos1)' > search --no-floppy --fs-uuid --set=root B0500CB3500C81F8 > chainloader +1 > } > ### 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 gfxpayload=1366x768x24### END /etc/grub.d/40_custom ### > > ### BEGIN /etc/grub.d/41_custom ### > if [ -f $prefix/custom.cfg ]; then > source $prefix/custom.cfg; > fi > ### END /etc/grub.d/41_custom ### > *********************** END /boot/grub/grub.cfg > > *********************** BEGIN /proc/mdstat > cat: /proc/mdstat: No such file or directory > *********************** END /proc/mdstat > > *********************** BEGIN /dev/disk/by-id > total 0 > lrwxrwxrwx 1 root root 9 Jul 17 16:06 ata-TOSHIBA_MK5076GSX_61DTD1C4B -> > ../../sda > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > ata-TOSHIBA_MK5076GSX_61DTD1C4B-part1 -> ../../sda1 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > ata-TOSHIBA_MK5076GSX_61DTD1C4B-part2 -> ../../sda2 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > ata-TOSHIBA_MK5076GSX_61DTD1C4B-part3 -> ../../sda3 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > ata-TOSHIBA_MK5076GSX_61DTD1C4B-part4 -> ../../sda4 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > ata-TOSHIBA_MK5076GSX_61DTD1C4B-part5 -> ../../sda5 > lrwxrwxrwx 1 root root 9 Jul 15 07:58 > ata-hp_CDDVDW_TS-L633R_R82M6GRB610858 -> ../../sr0 > lrwxrwxrwx 1 root root 9 Jul 17 16:06 scsi-SATA_TOSHIBA_MK5076G_61DTD1C4B > -> ../../sda > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > scsi-SATA_TOSHIBA_MK5076G_61DTD1C4B-part1 -> ../../sda1 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > scsi-SATA_TOSHIBA_MK5076G_61DTD1C4B-part2 -> ../../sda2 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > scsi-SATA_TOSHIBA_MK5076G_61DTD1C4B-part3 -> ../../sda3 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > scsi-SATA_TOSHIBA_MK5076G_61DTD1C4B-part4 -> ../../sda4 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > scsi-SATA_TOSHIBA_MK5076G_61DTD1C4B-part5 -> ../../sda5 > lrwxrwxrwx 1 root root 9 Jul 17 16:06 wwn-0x500003935b384259 -> ../../sda > lrwxrwxrwx 1 root root 10 Jul 15 07:58 wwn-0x500003935b384259-part1 -> > ../../sda1 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 wwn-0x500003935b384259-part2 -> > ../../sda2 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 wwn-0x500003935b384259-part3 -> > ../../sda3 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 wwn-0x500003935b384259-part4 -> > ../../sda4 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 wwn-0x500003935b384259-part5 -> > ../../sda5 > *********************** END /dev/disk/by-id > > *********************** BEGIN /dev/disk/by-uuid > total 0 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > 136c4dd3-50f0-403b-b91a-84457ef2051f -> ../../sda3 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 > 1d260b8b-9d6e-4bf6-b7fd-523e7c39da2c -> ../../sda5 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 B0500CB3500C81F8 -> ../../sda1 > lrwxrwxrwx 1 root root 10 Jul 15 07:58 FA24106A24102BDF -> ../../sda2 > *********************** END /dev/disk/by-uuid > > -- System Information: > Debian Release: jessie/sid > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: i386 (i686) > > Kernel: Linux 3.8-1-686-pae (SMP w/2 CPU cores) > Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > > Versions of packages grub-pc depends on: > ii debconf [debconf-2.0] 1.5.50 > ii grub-common 2.00-15 > ii grub-pc-bin 2.00-15 > ii grub2-common 2.00-15 > ii ucf 3.0027+nmu1 > > grub-pc recommends no packages. > > grub-pc suggests no packages. > > -- debconf information: > grub2/kfreebsd_cmdline: > grub2/device_map_regenerated: > grub2/linux_cmdline: > grub-pc/install_devices_empty: false > grub-pc/install_devices_failed: false > grub-pc/chainload_from_menu.lst: true > grub-pc/kopt_extracted: false > * grub-pc/install_devices: /dev/disk/by-id/ata-TOSHIBA_MK5076GSX_61DTD1C4B > grub-pc/postrm_purge_boot_grub: false > grub-pc/install_devices_failed_upgrade: true > grub-pc/disk_description: > grub2/kfreebsd_cmdline_default: quiet > grub-pc/partition_description: > grub-pc/install_devices_disks_changed: > grub2/linux_cmdline_default: quiet > grub-pc/mixed_legacy_and_grub2: true > > -- La prima cosa da capire a proposito degli universi paralleli... è che non sono paralleli. È importante rendersi conto che, a rigore, non sono neppure universi, ma è molto più facile cercare di capirlo un po' più tardi, dopo che ci si è resi conto che tutto quello che si è capito fino a quel momento non è vero.