Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  New APT removes kernels  (Read 5470 times)

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
New APT removes kernels
« on: 2021/01/10, 23:28:35 »
Latest apt has a new policy of removing kernels, which manifests in /etc/apt/apt.conf.d/01autoremove-kernels. If you want to keep your kernels installed, for now you will have to edit  /etc/apt/apt.conf.d/01autoremove. There is a section  headlined VersionedKernelPackages. You need to put a # in front of  "linux-.*";, save the file and apt update.

Das neueste apt hat eine Richtlinie zum Entfernen von Kerneln, die sich in /etc/apt/apt.conf.d/01autoremove-kernels manifestiert. Wenn ihr eure Kernel behalten wollt, müsst ihr /etc/apt/apt.conf.d/01autoremove bearbeiten. Es gibt einen Abschnitt mit der Überschrift VersionedKernelPackages. Dort muss ein # vor "linux-.*"; Dann die Datei sichern und apt update ausführen.
« Last Edit: 2021/01/11, 07:02:17 by devil »

Offline michaa7

  • User
  • Posts: 2.295
Re: New APT removes kernels
« Reply #1 on: 2021/01/11, 01:10:11 »
richtiger pfad / right path:

/etc/apt/apt.conf.d/01autoremove
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Offline samoht

  • User
  • Posts: 478
Re: New APT removes kernels
« Reply #2 on: 2021/01/11, 10:17:40 »
Thanks for clarification!
Because I did not understand the hint
Quote
... set APT::Get::AutomaticRemove::Kernels to false ...
Source:
Code: [Select]
/usr/share/doc/apt/NEWS.Debian.gz

Vielen Dank für die Klarstellung!
Denn ich habe den Hinweis nicht verstanden
Quote
... set APT::Get::AutomaticRemove::Kernels to false ...
Quelle:
Code: [Select]
/usr/share/doc/apt/NEWS.Debian.gz

Offline hendrikL

  • Administrator
  • User
  • *****
  • Gravatar
  • Posts: 927
Re: New APT removes kernels
« Reply #3 on: 2021/01/11, 16:09:54 »
Well, I added to my apt.conf:
Code: [Select]
# do not remove kernels automaticly
APT::Get::AutomaticRemove::Kernels false;
and all is okay..

The correct way in siduction is to wait for an update of the "apt-conf-siduction" package, which updates the /etc/apt/apt.conf.d/80siduction file.

EDIT:
If no '/etc/apt/apt.conf.d/80siduction' exists, no 'apt-conf-siduction'' is installed you can create your own, eg /etc/ap/apt.conf.d/80myconf and insert 'APT::Get::AutomaticRemove::Kernels false;
« Last Edit: 2021/01/12, 10:22:40 by hendrikL »

Offline jure

  • User
  • Posts: 635
Re: New APT removes kernels
« Reply #4 on: 2021/01/11, 18:06:12 »
apt-listchanges: Changelogs für siductionbox
Code: [Select]

apt-conf-siduction (0.5.1+nmu1) unstable; urgency=medium

  * Non-maintainer upload.
  * set APT::Get::AutomaticRemove::Kernels "false"; to prevrent automatic removal of installed old kernels

 -- Torsten Wohlfarth <towo@siduction.org>  Mon, 11 Jan 2021 11:01:26 +0100

Gruss Juergen

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: New APT removes kernels
« Reply #5 on: 2021/01/12, 10:22:01 »
So if you don't have apt-conf-siduction installed, you may want to install it now to prevent kernels from being removed. If you had followed my initial advice to put a # in front of  "linux-.*"; in /etc/apt/apt.conf.d/01autoremove, you can remove that after installing the package.

Offline vilde

  • User
  • Posts: 708
Re: New APT removes kernels
« Reply #6 on: 2021/01/12, 19:13:16 »
So if you don't have apt-conf-siduction installed, you may want to install it now to prevent kernels from being removed. If you had followed my initial advice to put a # in front of  "linux-.*"; in /etc/apt/apt.conf.d/01autoremove, you can remove that after installing the package.
Thank you all for that :)

Offline tranquil

  • User
  • Posts: 111
Re: New APT removes kernels
« Reply #7 on: 2021/01/13, 05:49:48 »
Thank you devil and hendrikL for the tips.
Dual-booting Debian Stable and Unstable with Openbox window manager and Tint2 panel.

blaze

  • Guest
Re: New APT removes kernels
« Reply #8 on: 2021/01/14, 09:39:51 »
Good to know, probably something I would have missed. Thank you.

Offline GoinEasy9

  • User
  • Posts: 560
Re: New APT removes kernels
« Reply #9 on: 2021/01/14, 17:04:32 »
Thanks for the heads up. Appreciate getting these useful posts.
Linux Counter number 348347

Offline ghstryder

  • User
  • Posts: 95
Re: New APT removes kernels
« Reply #10 on: 2021/01/16, 18:40:07 »
Thanks to everyone for the posts!

Offline gorzka

  • User
  • Posts: 281
Re: New APT removes kernels
« Reply #11 on: 2021/01/16, 19:40:22 »
For me. I don't need Kernel-Remover in the future? apt-get autoremove do that?
Auf dem Baum da saß ein Specht
der Baum war hoch, dem Specht war schlecht

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.345
    • Land of the Buckeye
Re: New APT removes kernels
« Reply #12 on: 2021/01/17, 00:00:18 »
Quote from: gorzka
For me. I don't need Kernel-Remover in the future? apt-get autoremove do that?

1. Install the apt-conf-siduction package.

2. Use
Code: [Select]
# apt autoremove as before.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO