I tried your sugestions but was not succesfull either!

1) I first removed grub-pc. A window pops up, asking me whether I wnat to 
remove all grub files, I agreed.
sudo -s
apt-get --purge remove grub-pc

2)ThenI  tried your original skript, with the changes in the for loop:
sudo -s
apt-get --purge remove grub-pc
apt-get install --reinstall grub-efi
mount /dev/sda8 /mnt
mount /dev/sda1 /mnt/boot/efi
for f in sys proc dev dev/pts ; do mount --bind /$f /mnt/$f ; done
chroot /mnt
grub-install /dev/sda
source_dir existiert nicht. Bitte geben Sie --target oder --directory an

3) since I got this "source_dir" error i tired this;
grub-install --directory=/usr/lib/grub/x86_64-efi /dev/sda
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI 
variables.
Try 'modprobe efivars' as root.
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI 
variables.
Try 'modprobe efivars' as root.
installation beendet. Keine Fehler aufgetreten.
modprobe efivars
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open 
moddep file '/lib/modules/3.8.0-19-generic/modules.dep.bin'

4) doesn't look very successful either -- therefore I tried to run update-grub 
instead. I found this somewhere in the WWW.
update-grub
grub.cfg wird erstellt …
Linux-Abbild gefunden: /boot/vmlinuz-3.8.0-23-generic
initrd-Abbild gefunden: /boot/initrd.img-3.8.0-23-generic
Windows Recovery Environment (loader) auf /dev/sda1 gefunden
Windows Recovery Environment (loader) auf /dev/sda5 gefunden
erledigt

5) reboot the laptop with:
"load legacy option ROM" <ENABLED>
boot list option                      <UEFI>

->
error: file '/boot/grub/i386-pc/normal.mod' not found
grub resvue>

5) reboot the laptop with:
"load legacy option ROM" <DISABLED>
boot list option                      <UEFI>

->
start PXE over IPV4       ESC->
start PXE over IPV6       ESC->
no boot device found

#############################################
I have 3 questions:

1) since  "grub-install /dev/sda" did not work I have started "grub-install 
--directory=/usr/lib/grub/x86_64-efi /dev/sda"
Does this make sense?? I am not familiar with grub-install and its options, 
maybe the
"--directory=/usr/lib/grub/x86_64-efi /dev/sda" option is nonsens!?!

2) same question with the "update-grub" command. Does this make sense??

3) Would it help to recover the boot sector with an image which I made
before I installed ubuntu (a windows 8 only install) and afterwards try
to install grub using your script?

Tx in advance for your help,
Gerald

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1187345

Title:
  package grub-efi-amd64 2.00-13ubuntu3 failed to install/upgrade:
  Unterprozess installiertes post-installation-Skript gab den Fehlerwert
  1 zurück

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1187345/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to