Kirjoittaja Aihe: Ongelmia kernelin päivityksessä  (Luettu 2359 kertaa)

mrl586

  • Käyttäjä
  • Viestejä: 4638
    • Profiili
Ongelmia kernelin päivityksessä
« : 18.06.09 - klo:23.47 »
Yritin tuossa päivittää Ubuntun (9.04) kerneliä, mutta päivitys ei jostain syystä onnistu. Mikä voisi olla syynä päivityksen epäonnistumiseen?
Koodia: [Valitse]
root@localhost:~# aptitude dist-upgrade
Reading package lists... Done               
Building dependency tree                   
Reading state information... Done           
Reading extended state information         
Initializing package states... Done         
The following partially installed packages will be configured:
  linux-image-2.6.28-13-server linux-image-server linux-restricted-modules-2.6.28-13-server linux-restricted-modules-server linux-server
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.                                                                 
Need to get 0B of archives. After unpacking 0B will be used.                                                                             
Setting up linux-image-2.6.28-13-server (2.6.28-13.44) ...                                                                               
Running depmod.                                                                                                                         
update-initramfs: Generating /boot/initrd.img-2.6.28-13-server                                                                           
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                                                                                                             
Found kernel: /boot/vmlinuz.old                                                                                                         
Found kernel: /boot/vmlinuz-2.6.28-11-server                                                                                             
Found kernel: /boot/vmlinuz-2.6.27-11-server                                                                                             
Found kernel: /boot/vmlinuz-2.6.26-default                                                                                               
Found kernel: /boot/memtest86+.bin                                                                                                       
User postinst hook script [/sbin/update-grub] exited with value 10                                                                       
dpkg: error processing linux-image-2.6.28-13-server (--configure):                                                                       
 subprocess post-installation script returned error exit status 10                                                                       
E: Sub-process /usr/bin/dpkg returned an error code (1)                                                                                 
A package failed to install.  Trying to recover:                                                                                         
Setting up linux-image-2.6.28-13-server (2.6.28-13.44) ...                                                                               
Running depmod.                                                                                                                         
update-initramfs: Generating /boot/initrd.img-2.6.28-13-server                                                                           
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                                                                                                             
Found kernel: /boot/vmlinuz.old                                                                                                         
Found kernel: /boot/vmlinuz-2.6.28-11-server                                                                                             
Found kernel: /boot/vmlinuz-2.6.27-11-server                                                                                             
Found kernel: /boot/vmlinuz-2.6.26-default                                                                                               
Found kernel: /boot/memtest86+.bin
User postinst hook script [/sbin/update-grub] exited with value 10
dpkg: error processing linux-image-2.6.28-13-server (--configure):
 subprocess post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of linux-image-server:
 linux-image-server depends on linux-image-2.6.28-13-server; however:
  Package linux-image-2.6.28-13-server is not configured yet.
dpkg: error processing linux-image-server (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 2.6.28.13.17); however:
  Package linux-image-server is not configured yet.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-2.6.28-13-server:
 linux-restricted-modules-2.6.28-13-server depends on linux-image-2.6.28-13-server; however:
  Package linux-image-2.6.28-13-server is not configured yet.
dpkg: error processing linux-restricted-modules-2.6.28-13-server (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-restricted-modules-server:
 linux-restricted-modules-server depends on linux-restricted-modules-2.6.28-13-server; however:
  Package linux-restricted-modules-2.6.28-13-server is not configured yet.
dpkg: error processing linux-restricted-modules-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.28-13-server
 linux-image-server
 linux-server
 linux-restricted-modules-2.6.28-13-server
 linux-restricted-modules-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

gdm

  • Sitä saa mitä tilaa...
  • Käyttäjä
  • Viestejä: 4363
    • Profiili
    • Keskustelualueiden säännöt
Vs: Ongelmia kernelin päivityksessä
« Vastaus #1 : 19.06.09 - klo:07.43 »
Kokeile ensimmäisenä poistaa pakettivälimuistit

Koodia: [Valitse]
sudo aptitude clean && sudo rm /var/cache/apt/{pkg,srcpkg}cache.bin && sudo dpkg --configure -a
Ja sitten päivitys
Koodia: [Valitse]
sudo aptitude update && sudo aptitude full-upgrade
Lisää [Ratkaistu] aloitusviestiin jos ongelmasi selviää!
Saamasi tuki on ilmaista, joten älä vaadi tai uhkaile saadaksesi apua!

mrl586

  • Käyttäjä
  • Viestejä: 4638
    • Profiili
Vs: Ongelmia kernelin päivityksessä
« Vastaus #2 : 19.06.09 - klo:09.52 »
Noista gdm:n ehdottamista komennoista ei ollut heti apua, sillä ennen niitä täytyi suorittaa seuraavat komennot:
Koodia: [Valitse]
root@localhost:~# DEBCONF_DEBUG=developer sh -x /usr/sbin/update-grub ; echo $?
+ set -e
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /usr/sbin/update-grub
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying /usr/sbin/update-grub.templates
debconf (developer): Trying /usr/share/debconf/templates/update-grub.templates
debconf (developer): Couldn't find a templates file.
debconf (developer): frontend running, package name is
debconf (developer): starting /usr/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
Found kernel: /boot/vmlinuz.old
Found kernel: /boot/vmlinuz-2.6.28-13-server
Found kernel: /boot/vmlinuz-2.6.28-11-server
Found kernel: /boot/vmlinuz-2.6.27-11-server
Found kernel: /boot/vmlinuz-2.6.26-default
Found kernel: /boot/memtest86+.bin
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/grub.templates grub
debconf (developer): --> 10 failed to open /var/lib/dpkg/info/grub.templates: No such file or directory
10

root@localhost:~# apt-get install --reinstall grub
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/404kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
(Reading database ...
42316 files and directories currently installed.)
Preparing to replace grub 0.97-29ubuntu53 (using .../grub_0.97-29ubuntu53_i386.deb) ...
Unpacking replacement grub ...
Setting up grub (0.97-29ubuntu53) ...

root@localhost:~# DEBCONF_DEBUG=developer sh -x /usr/sbin/update-grub ; echo $?
+ set -e
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /usr/sbin/update-grub
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying /usr/sbin/update-grub.templates
debconf (developer): Trying /usr/share/debconf/templates/update-grub.templates
debconf (developer): Couldn't find a templates file.
debconf (developer): frontend running, package name is
debconf (developer): starting /usr/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
Found kernel: /boot/vmlinuz.old
Found kernel: /boot/vmlinuz-2.6.28-13-server
Found kernel: /boot/vmlinuz-2.6.28-11-server
Found kernel: /boot/vmlinuz-2.6.27-11-server
Found kernel: /boot/vmlinuz-2.6.26-default
Found kernel: /boot/memtest86+.bin
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/grub.templates grub
debconf (developer): --> 0
debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates ucf
debconf (developer): --> 0
Updating /boot/grub/menu.lst ... done

0