Announcement

Collapse
No announcement yet.

New Kernel installation failed

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    New Kernel installation failed

    Good day.
    I 've this problem: since last friday, once a day, the update manager try to install a new kernel on my system. The actual one is 3.2.0-33-generic-pae.
    Close to the end of the process there is an error and the operation is left 'unconfigured'.
    If I check for new update after this failure, the reply is none. The day after the program suggest again for updating the kernel.
    My current knowledge unfortunately, does not make me understand the problem, so please find herebelow the process print, that in this case I obtained with 'apt-get upgrade', just to show you.

    Code:
    mario@mario-kubuntu:~$ sudo apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    3 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    Setting up linux-image-3.2.0-34-generic-pae (3.2.0-34.53) ...
    Running depmod.
    update-initramfs: deferring update (hook will be called later)
    Examining /etc/kernel/postinst.d.
    run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-34-generic-pae /boot/vmlinuz-3.2.0-34-generic-pae
    run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-34-generic-pae /boot/vmlinuz-3.2.0-34-generic-pae
    update-initramfs: Generating /boot/initrd.img-3.2.0-34-generic-pae
    run-parts: executing /etc/kernel/postinst.d/pm-utils 3.2.0-34-generic-pae /boot/vmlinuz-3.2.0-34-generic-pae
    run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-34-generic-pae /boot/vmlinuz-3.2.0-34-generic-pae
    run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-34-generic-pae /boot/vmlinuz-3.2.0-34-generic-pae
    Searching for GRUB installation directory ... found: /boot/grub
    /etc/default/grub: line 36: unexpected EOF while looking for matching `"'
    run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
    Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-34-generic-pae.postinst line 1010.
    dpkg: error processing linux-image-3.2.0-34-generic-pae (--configure):
     subprocess installed post-installation script returned error exit status 2
    dpkg: dependency problems prevent configuration of linux-image-generic-pae:
     linux-image-generic-pae depends on linux-image-3.2.0-34-generic-pae; however:
      Package linux-image-3.2.0-34-generic-pae is not configured yet.
    dpkg: error processing linux-image-generic-pae (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of linux-generic-pae:
     linux-generic-pae depends on linux-image-generic-pae (= 3.2.0.34.37); however:
      Package linux-image-generic-pae is not configured yet.
    dpkg: error processing linux-generic-pae (--configure):
     dependency problems - leaving unconfigured
    No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                              No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                                                                                                                                        Errors were encountered while processing:
     linux-image-3.2.0-34-generic-pae
     linux-image-generic-pae
     linux-generic-pae
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    mario@mario-kubuntu:~$
    Hope someone can help me
    thanks in advance
    Last edited by mamario62; Dec 05, 2012, 11:46 AM. Reason: [Solved]
    I am not young enough to know everything. (Oscar Wilde)

    #2
    Rule of thumb use: "sudo apt-get dist-upgrade"

    I don't think it will help you with your problem though.

    Comment


      #3
      Originally posted by mamario62 View Post
      Searching for GRUB installation directory ... found: /boot/grub
      /etc/default/grub: line 36: unexpected EOF while looking for matching `"'
      run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
      Looks like an error updating grub, could you post the contents of /etc/default/grub

      Comment


        #4
        Thanks for your help.
        " were missing at line 36. After correction now the process asked me to create the file grub.lst, that according to what I understood is not existing any more.
        The command 'sudo apt-get upgrade' was given just to have the possibility to show the problem to the forum, the result is the same given by the 'update manager'.
        On the pc there are ubuntu e kubuntu completely separeted, ubuntu starts from /dev/sda with the grub, Kubuntu has its primary partition on /dev/sda3. They have in common /dev/sda5 mounted /home.

        Code:
        # If you change this file, run 'update-grub' afterwards to update
        # /boot/grub/grub.cfg.
        # For full documentation of the options in this file, see:
        #   info -f grub -n 'Simple configuration'
        
        GRUB_DEFAULT=5
        #GRUB_HIDDEN_TIMEOUT=-0
        GRUB_HIDDEN_TIMEOUT_QUIET=true
        GRUB_TIMEOUT=-1
        GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
        #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
        GRUB_CMDLINE_LINUX_DEFAULT="splash video=uvesafb:mode_option=1280x1024-32,mtrr=3,scroll=ywrap"
        GRUB_CMDLINE_LINUX=""
        
        # Uncomment to enable BadRAM filtering, modify to suit your needs
        # This works with Linux (no patch required) and with any kernel that obtains
        # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
        #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
        
        # Uncomment to disable graphical terminal (grub-pc only)
        #GRUB_TERMINAL=console
        
        # The resolution used on graphical terminal
        # note that you can use only modes which your graphic card supports via VBE
        # you can see them in real GRUB with the command `vbeinfo'
        #GRUB_GFXMODE=640x480
        GRUB_GFXPAYLOAD_LINUX="1280x1024-32"
        
        # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
        #GRUB_DISABLE_LINUX_UUID=true
        
        # Uncomment to disable generation of recovery mode menu entries
        #GRUB_DISABLE_RECOVERY="true"
        
        # Uncomment to get a beep at grub start
        GRUB_INIT_TUNE="480 900 2 1000 2 800 2 400 2 60"
        I am not young enough to know everything. (Oscar Wilde)

        Comment


          #5
          Originally posted by mamario62 View Post
          " were missing at line 36.
          One error down, then.

          What's the output of 'sudo update-grub'?

          (I'm heading out the door, so it'll be a while until I can get back to the topic)

          Comment


            #6
            Try running this in Konsole: dpkg-reconfigure linux-image-3.2.0-34-generic-pae

            You might also try a: sudo apt-get -f install (just to see if it helps, it can not hurt anything)
            and then a: sudo update-initramfs
            then the sudo update-grub

            None of these should hurt anything and the first (reconfigure) may be all that's needed.
            GigaByte GA-965G-DS3, Core2Duo at 2.1 GHz, 4 GB RAM, ASUS DRW-24B1ST, LiteOn iHAS 324 A, NVIDIA 7300 GS, 500 GB and 80 GB WD HDD

            Comment


              #7
              Thanks to all.
              Luckyone, for the 2nd command I need an option.
              I am not young enough to know everything. (Oscar Wilde)

              Comment


                #8
                For update-initramfs:

                -k version
                Set the specific kernel version for whom the initramfs will be generated. For example the output of uname
                -r for your currently running kernel. This argument is optional for update. The default is the latest ker‐
                nel version.

                Also:
                EXAMPLES
                Update the initramfs of the newest kernel:

                update-initramfs -u

                Create the initramfs for a specific kernel:

                update-initramfs -c -k 2.6.18-1-686
                GigaByte GA-965G-DS3, Core2Duo at 2.1 GHz, 4 GB RAM, ASUS DRW-24B1ST, LiteOn iHAS 324 A, NVIDIA 7300 GS, 500 GB and 80 GB WD HDD

                Comment


                  #9
                  Where is the mistake? I cannot find out.

                  Code:
                  mario@mario-kubuntu:~$ sudo update-initramfs -k
                  No arg for -k option
                  Usage: /usr/sbin/update-initramfs [OPTION]...
                  
                  Options:
                   -k [version]   Specify kernel version or 'all'
                   -c             Create a new initramfs
                   -u             Update an existing initramfs
                   -d             Remove an existing initramfs
                   -t             Take over a custom initramfs with this one
                   -b             Set alternate boot directory
                   -v             Be verbose
                   -h             This message
                  I am not young enough to know everything. (Oscar Wilde)

                  Comment


                    #10
                    Originally posted by mamario62 View Post
                    Where is the mistake? I cannot find out.
                    If you use the -k option, you need to define the kernel or use 'all' (for all kernels), for example:
                    Code:
                    sudo update-initramfs -k all
                    Did you try running the 'sudo update-grub'? (the error output might be helpful)

                    Comment


                      #11
                      Just to play around this problem I was forced to re-install kubuntu ex-novo, because of a crash as soon as I tried to boot...beginners daily problems.
                      After this job, the kernel was installed at the first updating attempt.
                      Thanks a lot to all of you.
                      I will create soonest an other problem...
                      I'll see you soon.
                      I am not young enough to know everything. (Oscar Wilde)

                      Comment

                      Working...
                      X