[Çözüldü] apt-get (User postinst hook script [/sbin/update-grub])

Başlatan Chantre, 07 Ağustos 2009 - 10:55:58

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

Chantre

yine bir apt-get hatası için yardım arıyorum. google'da çözüm bulamadığım için bir miktar beceriksiz hissediyorum :)

sudo apt-get autoremove                                                                                        
Alıntı YapReading package lists... Done                                                                                                      
Building dependency tree                                                                                                            
Reading state information... Done                                                                                                  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.                                                                      
1 not fully installed or removed.                                                                                                  
After this operation, 0B of additional disk space will be used.
Setting up linux-image-2.6.27-14-generic (2.6.27-14.37) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.27-14-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.27-14.35 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.27-14.35 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.27-14-generic
Found kernel: /boot/vmlinuz-2.6.27-11-generic
Found kernel: /boot/vmlinuz-2.6.27-9-generic
Found kernel: /boot/vmlinuz-2.6.27-7-generic
Found kernel: /boot/memtest86+.bin
User postinst hook script [/sbin/update-grub] exited with value 10
dpkg: error processing linux-image-2.6.27-14-generic (--configure):
subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
linux-image-2.6.27-14-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

apt-get in başka komutları da aynı şekilde sonlanıyor.

sudo dpkg --configure -a

Alıntı YapSetting up linux-image-2.6.27-14-generic (2.6.27-14.37) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.27-14-generic
Not updating initrd symbolic links since we are being updated/reinstalled
(2.6.27-14.35 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(2.6.27-14.35 was configured last, according to dpkg)
Running postinst hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.27-14-generic
Found kernel: /boot/vmlinuz-2.6.27-11-generic
Found kernel: /boot/vmlinuz-2.6.27-9-generic
Found kernel: /boot/vmlinuz-2.6.27-7-generic
Found kernel: /boot/memtest86+.bin
User postinst hook script [/sbin/update-grub] exited with value 10
dpkg: error processing linux-image-2.6.27-14-generic (--configure):
subprocess post-installation script returned error exit status 10
Errors were encountered while processing:
linux-image-2.6.27-14-generic

denedim.

şimdiden teşekkürler


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 31 Aralık 1969 - 15:59:59

bir de /sbin/update-grub scripti: (belki işe yarar)

#!/bin/sh
#
# Wrapper to warn user about kernel-img.conf move
#

if grep -q '  */sbin/update-grub$' /etc/kernel-img.conf 2> /dev/null ; then
       cat >&2 <<EOF
Your /etc/kernel-img.conf needs to be updated. Read grub's NEWS.Debian[1]
file and follow its instructions.

1. /usr/share/doc/grub/NEWS.Debian.gz


EOF
fi

if [ -x /usr/sbin/update-grub ]; then
       exec /usr/sbin/update-grub "$@"
else
       echo "Your /usr is broken, please fix it before call this wrapper!" >&2
fi



Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 31 Aralık 1969 - 15:59:59

ve de
/etc/kernel-img.conf
şöyle idi:
Alıntı Yapdo_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook   = update-grub

şöyle yaptım:

Alıntı Yapdo_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = /usr/sbin/update-grub
postrm_hook   = /usr/sbin/update-grub

hala aynı hatayı alıyorum :(
When you play the game of thrones, you win or you die!

heartsmagic

Hata veren .deb paketini ilgili dizinden silerek bir kere daha kurmayı veya kaldırmayı dener misin?
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

Chantre

Alıntı yapılan: heartsmagic - 07 Ağustos 2009 - 21:46:31
Hata veren .deb paketini ilgili dizinden silerek bir kere daha kurmayı veya kaldırmayı dener misin?

hata veren .deb paketi derken linux-image-2.6.27-14-generic i mi kastettiniz?
When you play the game of thrones, you win or you die!

heartsmagic

Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

garafatma

Bira, Tanrı'nın bizi sevdiğinin ve eğlenmemizi istediğinin kanıtıdır.

>-- Askıdaki Çeviri --< Ubuntu Türkçe Çevirilerine Sizde Destek Olun
Elveda metal müziğin tanrısı... \m/ Ronnie James DIO: 1942 - 2010

Chantre

When you play the game of thrones, you win or you die!