I run the recommended repair of boot-repair in linux live and got the errors below. When I reboot and press Esc/F9 I see a new "linuxmint" booting option which does not work, and rEFInd does not work anymore. LUckily I can boot to windows with rEFInd cd. I am going to repeat the steps in the command prompt as done above.
Code: Select all
mint@mint ~ $ sudo chroot "/mnt/boot-sav/sda5" dpkg --configure -a
Setting up samba4 (4.0.0+dfsg1-1ubuntu1) ...
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in run
fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 56, in __init__
self.infrastructure_dn = ldb.Dn(samdb, "CN=Infrastructure," + samdb.domain_dn())
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
samba4
mint@mint ~ $ sudo chroot "/mnt/boot-sav/sda5" apt-get install -fy
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgoocanvas-common libgoocanvas3 libmlt++3 libmlt-data libmlt5 libwebcam0
linux-headers-3.8.0-27 linux-headers-3.8.0-27-generic
linux-image-3.8.0-27-generic linux-image-extra-3.8.0-27-generic melt
openshot-doc python-mlt5 python-pygoocanvas uvcdynctrl uvcdynctrl-data
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba4 (4.0.0+dfsg1-1ubuntu1) ...
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in run
fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 56, in __init__
self.infrastructure_dn = ldb.Dn(samdb, "CN=Infrastructure," + samdb.domain_dn())
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint@mint ~ $ sudo chroot "/mnt/boot-sav/sda5" apt-get purge -y --force-yes grub* shim-signed linux-signed*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'grub-legacy-ec2' for regex 'grub*'
Note, selecting 'grub-legacy-doc' for regex 'grub*'
Note, selecting 'grub-efi-amd64' for regex 'grub*'
Note, selecting 'libgruff-ruby-doc' for regex 'grub*'
Note, selecting 'grub-ieee1275' for regex 'grub*'
Note, selecting 'grub-imageboot' for regex 'grub*'
Note, selecting 'ruby-gruff' for regex 'grub*'
Note, selecting 'grub-yeeloong' for regex 'grub*'
Note, selecting 'grub2' for regex 'grub*'
Note, selecting 'grub-invaders' for regex 'grub*'
Note, selecting 'grub-coreboot' for regex 'grub*'
Note, selecting 'grub-disk' for regex 'grub*'
Note, selecting 'fgrun' for regex 'grub*'
Note, selecting 'libgruff-ruby1.8' for regex 'grub*'
Note, selecting 'grub-coreboot-bin' for regex 'grub*'
Note, selecting 'grub-coreboot-dbg' for regex 'grub*'
Note, selecting 'grub-theme-starfield' for regex 'grub*'
Note, selecting 'grub-pc' for regex 'grub*'
Note, selecting 'grub-splashimages' for regex 'grub*'
Note, selecting 'libgruff-ruby' for regex 'grub*'
Note, selecting 'kde-config-grub2' for regex 'grub*'
Note, selecting 'grub-gfxpayload-lists' for regex 'grub*'
Note, selecting 'grub-ieee1275-bin' for regex 'grub*'
Note, selecting 'grub-linuxbios' for regex 'grub*'
Note, selecting 'grub-ieee1275-dbg' for regex 'grub*'
Note, selecting 'grub-ipxe' for regex 'grub*'
Note, selecting 'grub-efi-ia32' for regex 'grub*'
Note, selecting 'grub-rescue-pc' for regex 'grub*'
Note, selecting 'grub-efi-ia64' for regex 'grub*'
Note, selecting 'wmlongrun' for regex 'grub*'
Note, selecting 'grub-emu-dbg' for regex 'grub*'
Note, selecting 'grub-pc-bin' for regex 'grub*'
Note, selecting 'grub-pc-dbg' for regex 'grub*'
Note, selecting 'libgruel3.6.1' for regex 'grub*'
Note, selecting 'grub-legacy' for regex 'grub*'
Note, selecting 'congruity' for regex 'grub*'
Note, selecting 'grub-efi-amd64-bin' for regex 'grub*'
Note, selecting 'sabily-grub-artwork' for regex 'grub*'
Note, selecting 'grub-efi-amd64-dbg' for regex 'grub*'
Note, selecting 'grub' for regex 'grub*'
Note, selecting 'grun' for regex 'grub*'
Note, selecting 'grub-efi' for regex 'grub*'
Note, selecting 'grub-doc' for regex 'grub*'
Note, selecting 'grub-emu' for regex 'grub*'
Note, selecting 'espresso-grub' for regex 'grub*'
Note, selecting 'grub-common' for regex 'grub*'
Note, selecting 'grub-efi-ia32-bin' for regex 'grub*'
Note, selecting 'grub2-common' for regex 'grub*'
Note, selecting 'grub-efi-ia32-dbg' for regex 'grub*'
Note, selecting 'grub-firmware-qemu' for regex 'grub*'
Note, selecting 'grub2-theme-mint' for regex 'grub*'
Note, selecting 'grub-efi-amd64-signed' for regex 'grub*'
Note, selecting 'grub2-splashimages' for regex 'grub*'
Package 'grub-legacy' is not installed, so not removed
Package 'espresso-grub' is not installed, so not removed
Package 'grub-efi-ia64' is not installed, so not removed
Package 'grub-yeeloong' is not installed, so not removed
Note, selecting 'linux-signed-image-3.8.0-23-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-31-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-26-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-34-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-29-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-21-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-19-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-32-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-27-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-35-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-22-generic' for regex 'linux-signed*'
Note, selecting 'efilinux-signed' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-30-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-25-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-33-generic' for regex 'linux-signed*'
Package 'grub-efi' is not installed, so not removed
Package 'grub-efi-amd64-signed' is not installed, so not removed
Package 'grub-doc' is not installed, so not removed
Package 'grub-efi-amd64-dbg' is not installed, so not removed
Package 'grub-efi-ia32' is not installed, so not removed
Package 'grub-efi-ia32-bin' is not installed, so not removed
Package 'grub-efi-ia32-dbg' is not installed, so not removed
Package 'grub-gfxpayload-lists' is not installed, so not removed
Package 'grub-legacy-doc' is not installed, so not removed
Package 'grub-pc' is not installed, so not removed
Package 'grub-pc-bin' is not installed, so not removed
Package 'grub-pc-dbg' is not installed, so not removed
Package 'congruity' is not installed, so not removed
Package 'efilinux-signed' is not installed, so not removed
Package 'fgrun' is not installed, so not removed
Package 'grub-coreboot' is not installed, so not removed
Package 'grub-coreboot-bin' is not installed, so not removed
Package 'grub-coreboot-dbg' is not installed, so not removed
Package 'grub-disk' is not installed, so not removed
Package 'grub-emu' is not installed, so not removed
Package 'grub-emu-dbg' is not installed, so not removed
Package 'grub-firmware-qemu' is not installed, so not removed
Package 'grub-ieee1275' is not installed, so not removed
Package 'grub-ieee1275-bin' is not installed, so not removed
Package 'grub-ieee1275-dbg' is not installed, so not removed
Package 'grub-imageboot' is not installed, so not removed
Package 'grub-invaders' is not installed, so not removed
Package 'grub-ipxe' is not installed, so not removed
Package 'grub-linuxbios' is not installed, so not removed
Package 'grub-rescue-pc' is not installed, so not removed
Package 'grub-splashimages' is not installed, so not removed
Package 'grub-theme-starfield' is not installed, so not removed
Package 'grub2' is not installed, so not removed
Package 'grub2-splashimages' is not installed, so not removed
Package 'grun' is not installed, so not removed
Package 'kde-config-grub2' is not installed, so not removed
Package 'libgruel3.6.1' is not installed, so not removed
Package 'libgruff-ruby' is not installed, so not removed
Package 'libgruff-ruby-doc' is not installed, so not removed
Package 'libgruff-ruby1.8' is not installed, so not removed
Package 'ruby-gruff' is not installed, so not removed
Package 'sabily-grub-artwork' is not installed, so not removed
Package 'wmlongrun' is not installed, so not removed
Package 'grub-legacy-ec2' is not installed, so not removed
Package 'linux-signed-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-19-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-21-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-22-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-23-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-25-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-26-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-27-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-29-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-30-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-31-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-32-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-33-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-34-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-35-generic' is not installed, so not removed
Package 'linux-signed-image-generic' is not installed, so not removed
Package 'shim-signed' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libgoocanvas-common libgoocanvas3 libmlt++3 libmlt-data libmlt5 libwebcam0
linux-headers-3.8.0-27 linux-headers-3.8.0-27-generic
linux-image-3.8.0-27-generic linux-image-extra-3.8.0-27-generic melt
openshot-doc python-mlt5 python-pygoocanvas uvcdynctrl uvcdynctrl-data
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
grub* grub-common* grub-efi-amd64* grub-efi-amd64-bin* grub2-common*
grub2-theme-mint* mint-meta-core*
0 upgraded, 0 newly installed, 7 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 8,108 kB disk space will be freed.
(Reading database ... 376455 files and directories currently installed.)
Removing grub ...
Purging configuration files for grub ...
Removing grub2-common ...
Removing grub-efi-amd64-bin ...
Removing grub-common ...
Purging configuration files for grub-common ...
Removing grub-efi-amd64 ...
Purging configuration files for grub-efi-amd64 ...
Removing mint-meta-core ...
Removing grub2-theme-mint ...
Purging configuration files for grub2-theme-mint ...
dpkg: warning: while removing grub2-theme-mint, directory '/boot/grub' not empty so not removed
Processing triggers for man-db ...
Processing triggers for install-info ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up samba4 (4.0.0+dfsg1-1ubuntu1) ...
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in run
fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 56, in __init__
self.infrastructure_dn = ldb.Dn(samdb, "CN=Infrastructure," + samdb.domain_dn())
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint@mint ~ $ sudo chroot "/mnt/boot-sav/sda5" apt-get install -y --force-yes grub-efi-amd64-signed shim-signed linux-signed-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgoocanvas-common libgoocanvas3 libmlt++3 libmlt-data libmlt5 libwebcam0
linux-headers-3.8.0-27 linux-headers-3.8.0-27-generic
linux-image-3.8.0-27-generic linux-image-extra-3.8.0-27-generic melt
openshot-doc python-mlt5 python-pygoocanvas uvcdynctrl uvcdynctrl-data
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
grub-common grub-efi-amd64 grub-efi-amd64-bin grub2-common
linux-signed-image-3.8.0-35-generic linux-signed-image-generic
Suggested packages:
multiboot-doc grub-emu xorriso desktop-base
The following NEW packages will be installed:
grub-common grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed
grub2-common linux-signed-generic linux-signed-image-3.8.0-35-generic
linux-signed-image-generic shim-signed
0 upgraded, 9 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0 B/2,979 kB of archives.
After this operation, 11.6 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package grub-common.
(Reading database ... 376135 files and directories currently installed.)
Unpacking grub-common (from .../grub-common_2.00-13ubuntu3_amd64.deb) ...
Selecting previously unselected package grub2-common.
Unpacking grub2-common (from .../grub2-common_2.00-13ubuntu3_amd64.deb) ...
Selecting previously unselected package grub-efi-amd64-bin.
Unpacking grub-efi-amd64-bin (from .../grub-efi-amd64-bin_2.00-13ubuntu3_amd64.deb) ...
Selecting previously unselected package grub-efi-amd64.
Unpacking grub-efi-amd64 (from .../grub-efi-amd64_2.00-13ubuntu3_amd64.deb) ...
Selecting previously unselected package grub-efi-amd64-signed.
Unpacking grub-efi-amd64-signed (from .../grub-efi-amd64-signed_1.11+2.00-12ubuntu1_amd64.deb) ...
Selecting previously unselected package linux-signed-image-3.8.0-35-generic.
Unpacking linux-signed-image-3.8.0-35-generic (from .../linux-signed-image-3.8.0-35-generic_3.8.0-35.50_amd64.deb) ...
Selecting previously unselected package linux-signed-image-generic.
Unpacking linux-signed-image-generic (from .../linux-signed-image-generic_3.8.0.35.53_amd64.deb) ...
Selecting previously unselected package linux-signed-generic.
Unpacking linux-signed-generic (from .../linux-signed-generic_3.8.0.35.53_amd64.deb) ...
Selecting previously unselected package shim-signed.
Unpacking shim-signed (from .../shim-signed_1.5~13.04.1+0.4-0ubuntu4_amd64.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up samba4 (4.0.0+dfsg1-1ubuntu1) ...
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in run
fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 56, in __init__
self.infrastructure_dn = ldb.Dn(samdb, "CN=Infrastructure," + samdb.domain_dn())
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 255
Setting up grub-common (2.00-13ubuntu3) ...
Setting up linux-signed-image-3.8.0-35-generic (3.8.0-35.50) ...
warning: file-aligned section .text extends beyond end of file
warning: checksum areas are greater than image size. Invalid section table?
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-35-generic
Found initrd image: /boot/initrd.img-3.8.0-35-generic
Found linux image: /boot/vmlinuz-3.8.0-27-generic
Found initrd image: /boot/initrd.img-3.8.0-27-generic
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
No volume groups found
grub-probe: error: cannot find a GRUB drive for /dev/sdf1. Check your device.map.
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-signed-image-generic (3.8.0.35.53) ...
Setting up linux-signed-generic (3.8.0.35.53) ...
Processing triggers for ureadahead ...
Setting up grub-efi-amd64-bin (2.00-13ubuntu3) ...
Setting up shim-signed (1.5~13.04.1+0.4-0ubuntu4) ...
Setting up grub2-common (2.00-13ubuntu3) ...
Setting up grub-efi-amd64 (2.00-13ubuntu3) ...
Creating config file /etc/default/grub with new version
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0003,0008,0004,0002,0001,0009,0006,0007,0000,0005
Boot0000 ubuntu
Boot0001* USB Floppy/CD
Boot0002* USB Hard Drive
Boot0004* rEFInd Boot Manager
Boot0005* 'rEFInd
Boot0006* USB Floppy/CD
Boot0007* Hard Drive
Boot0008* ATAPI CD-ROM Drive
Boot0009* CD/DVD Drive
Boot0003* linuxmint
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-35-generic
Found initrd image: /boot/initrd.img-3.8.0-35-generic
Found linux image: /boot/vmlinuz-3.8.0-27-generic
Found initrd image: /boot/initrd.img-3.8.0-27-generic
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
No volume groups found
grub-probe: error: cannot find a GRUB drive for /dev/sdf1. Check your device.map.
Adding boot menu entry for EFI firmware configuration
done
Setting up grub-efi-amd64-signed (1.11+2.00-12ubuntu1) ...
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0008,0004,0002,0001,0009,0006,0007,0000,0005
Boot0000 ubuntu
Boot0001* USB Floppy/CD
Boot0002* USB Hard Drive
Boot0004* rEFInd Boot Manager
Boot0005* 'rEFInd
Boot0006* USB Floppy/CD
Boot0007* Hard Drive
Boot0008* ATAPI CD-ROM Drive
Boot0009* CD/DVD Drive
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0003,0008,0004,0002,0001,0009,0006,0007,0000,0005
Boot0000 ubuntu
Boot0001* USB Floppy/CD
Boot0002* USB Hard Drive
Boot0004* rEFInd Boot Manager
Boot0005* 'rEFInd
Boot0006* USB Floppy/CD
Boot0007* Hard Drive
Boot0008* ATAPI CD-ROM Drive
Boot0009* CD/DVD Drive
Boot0003* linuxmint
Installation finished. No error reported.
Errors were encountered while processing:
samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint@mint ~ $