Results 1 to 7 of 7

Thread: Distribution update problem / Remove older kernels

  1. #1
    Join Date
    Jul 2020
    Location
    Buenos Aires, Argentina
    Posts
    22

    Default Distribution update problem / Remove older kernels

    Hi there!
    I want to do a distribution update by mean of zypper dup, but I ge the following problem:
    Code:
    ( 2/11) Installing: kernel-default-5.3.18-lp152.60.1.x86_64 .............[error]
    Installation of kernel-default-5.3.18-lp152.60.1.x86_64 failed:
    Error: Subprocess failed. Error: RPM failed:    installing package kernel-defaul
    t-5.3.18-lp152.60.1.x86_64 needs 3MB on the /boot filesystem                    
    
    Browsing the web, I found I need to remove the older kernels... But I didn't do that.
    Well... I search for all installed kernels:
    Code:
    adrian@octans:~> zypper se -s kernel
    Loading repository data...
    Reading installed packages...
    
    S  | Name                                   | Type       | Version                        | Arch   | Repository
    ---+----------------------------------------+------------+--------------------------------+--------+-----------------------
    v  | kernel-default                         | package    | 5.3.18-lp152.60.1              | x86_64 | Main Update Repository
    i+ | kernel-default                         | package    | 5.3.18-lp152.57.1              | x86_64 | Main Update Repository
    i+ | kernel-default                         | package    | 5.3.18-lp152.54.1              | x86_64 | Main Update Repository
    v  | kernel-default                         | package    | 5.3.18-lp152.50.1              | x86_64 | Main Update Repository
    v  | kernel-default                         | package    | 5.3.18-lp152.47.2              | x86_64 | Main Update Repository
    v  | kernel-default                         | package    | 5.3.18-lp152.44.1              | x86_64 | Main Update Repository
    v  | kernel-default                         | package    | 5.3.18-lp152.41.1              | x86_64 | Main Update Repository
    v  | kernel-default                         | package    | 5.3.18-lp152.36.1              | x86_64 | Main Update Repository
    v  | kernel-default                         | package    | 5.3.18-lp152.33.1              | x86_64 | Main Update Repository
    v  | kernel-default                         | package    | 5.3.18-lp152.26.2              | x86_64 | Main Update Repository
    v  | kernel-default                         | package    | 5.3.18-lp152.19.2              | x86_64 | Main Repository
    v  | kernel-default-devel                   | package    | 5.3.18-lp152.60.1              | x86_64 | Main Update Repository
    i+ | kernel-default-devel                   | package    | 5.3.18-lp152.57.1              | x86_64 | Main Update Repository
    i+ | kernel-default-devel                   | package    | 5.3.18-lp152.54.1              | x86_64 | Main Update Repository
    v  | kernel-default-devel                   | package    | 5.3.18-lp152.50.1              | x86_64 | Main Update Repository
    v  | kernel-default-devel                   | package    | 5.3.18-lp152.47.2              | x86_64 | Main Update Repository
    v  | kernel-default-devel                   | package    | 5.3.18-lp152.44.1              | x86_64 | Main Update Repository
    v  | kernel-default-devel                   | package    | 5.3.18-lp152.41.1              | x86_64 | Main Update Repository
    v  | kernel-default-devel                   | package    | 5.3.18-lp152.36.1              | x86_64 | Main Update Repository
    v  | kernel-default-devel                   | package    | 5.3.18-lp152.33.1              | x86_64 | Main Update Repository
    v  | kernel-default-devel                   | package    | 5.3.18-lp152.26.2              | x86_64 | Main Update Repository
    v  | kernel-default-devel                   | package    | 5.3.18-lp152.19.2              | x86_64 | Main Repository
    i+ | kernel-devel                           | package    | 5.3.18-lp152.60.1              | noarch | Main Update Repository
    i+ | kernel-devel                           | package    | 5.3.18-lp152.57.1              | noarch | Main Update Repository
    i+ | kernel-devel                           | package    | 5.3.18-lp152.54.1              | noarch | Main Update Repository
    v  | kernel-devel                           | package    | 5.3.18-lp152.50.1              | noarch | Main Update Repository
    v  | kernel-devel                           | package    | 5.3.18-lp152.47.2              | noarch | Main Update Repository
    v  | kernel-devel                           | package    | 5.3.18-lp152.44.1              | noarch | Main Update Repository
    v  | kernel-devel                           | package    | 5.3.18-lp152.41.1              | noarch | Main Update Repository
    v  | kernel-devel                           | package    | 5.3.18-lp152.36.1              | noarch | Main Update Repository
    v  | kernel-devel                           | package    | 5.3.18-lp152.33.1              | noarch | Main Update Repository
    v  | kernel-devel                           | package    | 5.3.18-lp152.26.2              | noarch | Main Update Repository
    v  | kernel-devel                           | package    | 5.3.18-lp152.19.2              | noarch | Main Repository
    i  | kernel-firmware                        | package    | 20200107-lp152.2.3.1           | noarch | Main Update Repository
    v  | kernel-firmware                        | package    | 20200107-lp152.1.1             | noarch | Main Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.60.1              | noarch | Main Update Repository
    i+ | kernel-macros                          | package    | 5.3.18-lp152.57.1              | noarch | Main Update Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.54.1              | noarch | Main Update Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.50.1              | noarch | Main Update Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.47.2              | noarch | Main Update Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.44.1              | noarch | Main Update Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.41.1              | noarch | Main Update Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.36.1              | noarch | Main Update Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.33.1              | noarch | Main Update Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.26.2              | noarch | Main Update Repository
    v  | kernel-macros                          | package    | 5.3.18-lp152.19.2              | noarch | Main Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.60.1              | x86_64 | Main Update Repository
    i+ | kernel-preempt                         | package    | 5.3.18-lp152.57.1              | x86_64 | Main Update Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.54.1              | x86_64 | Main Update Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.50.1              | x86_64 | Main Update Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.47.2              | x86_64 | Main Update Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.44.1              | x86_64 | Main Update Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.41.1              | x86_64 | Main Update Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.36.1              | x86_64 | Main Update Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.33.1              | x86_64 | Main Update Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.26.2              | x86_64 | Main Update Repository
    v  | kernel-preempt                         | package    | 5.3.18-lp152.19.2              | x86_64 | Main Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.60.1              | x86_64 | Main Update Repository
    i+ | kernel-preempt-devel                   | package    | 5.3.18-lp152.57.1              | x86_64 | Main Update Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.54.1              | x86_64 | Main Update Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.50.1              | x86_64 | Main Update Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.47.2              | x86_64 | Main Update Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.44.1              | x86_64 | Main Update Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.41.1              | x86_64 | Main Update Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.36.1              | x86_64 | Main Update Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.33.1              | x86_64 | Main Update Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.26.2              | x86_64 | Main Update Repository
    v  | kernel-preempt-devel                   | package    | 5.3.18-lp152.19.2              | x86_64 | Main Repository
    i  | purge-kernels-service                  | package    | 0-lp152.4.1                    | noarch | Main Repository
    
    My question is: Can I remove all kernels with status "V" in the first column from the list above?

    Thank you in advance.
    --
    Adrián E. Córdoba

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    16,016
    Blog Entries
    3

    Default Re: Distribution update problem / Remove older kernels

    Try running (as root)
    Code:
    zypper purge-kernels
    That should remove all but the two most recent kernels.
    openSUSE Leap 15.4; KDE Plasma 5.24.4;
    testing Tumbleweed.

  3. #3
    Join Date
    Jul 2020
    Location
    Buenos Aires, Argentina
    Posts
    22

    Default Re: Distribution update problem / Remove older kernels

    Quote Originally Posted by nrickert View Post
    Try running (as root)
    Code:
    zypper purge-kernels
    That should remove all but the two most recent kernels.
    I tried, but nothing happens:
    Code:
    adrian@octans:~> sudo zypper purge-kernels
    [sudo] password for adrian:  
    Reading installed packages...
    
    Preparing to purge obsolete kernels...
    Configuration: latest,latest-1,running
    Running kernel release: 5.3.18-lp152.57-preempt
    Running kernel arch: x86_64
    
    Resolving package dependencies...
    
    Nothing to do.
    
    --
    Adrián E. Córdoba

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    7,241

    Default AW: Distribution update problem / Remove older kernels

    You have 2 default kernels and one preempt kernel installed.

    Try to delete the preempt kernel and install the default kernel.

    Maybe there is also an problem with virtualbox?

  5. #5
    Join Date
    Jul 2020
    Location
    Buenos Aires, Argentina
    Posts
    22

    Default Re: AW: Distribution update problem / Remove older kernels

    Quote Originally Posted by Sauerland View Post
    You have 2 default kernels and one preempt kernel installed.

    Try to delete the preempt kernel and install the default kernel.

    Maybe there is also an problem with virtualbox?
    I beg your pardon... (I don't know this topic very well.)
    I think preempt kernel is running:
    Code:
    adrian@octans:~> uname -a
    Linux octans 5.3.18-lp152.57-preempt #1 SMP PREEMPT Fri Dec 4 07:27:58 UTC 2020 
    (7be5551) x86_64 x86_64 x86_64 GNU/Linux
    
    Can I remove it anyway?

    Thank you for reply!
    --
    Adrián E. Córdoba

  6. #6
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    16,016
    Blog Entries
    3

    Default Re: Distribution update problem / Remove older kernels

    Boot to a different kernel, and then remove that pre-empt kernel.
    openSUSE Leap 15.4; KDE Plasma 5.24.4;
    testing Tumbleweed.

  7. #7
    Join Date
    Jul 2020
    Location
    Buenos Aires, Argentina
    Posts
    22

    Default Re: Distribution update problem / Remove older kernels

    Thank you very much!
    That works very well.
    --
    Adrián E. Córdoba

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •