Siduction Forum

Siduction Forum => Upgrade Warnings (DE / EN) => Topic started by: devil on 2021/01/10, 23:28:35

Title: New APT removes kernels
Post by: devil 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.
Title: Re: New APT removes kernels
Post by: michaa7 on 2021/01/11, 01:10:11
richtiger pfad / right path:

/etc/apt/apt.conf.d/01autoremove
Title: Re: New APT removes kernels
Post by: samoht 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
Title: Re: New APT removes kernels
Post by: hendrikL 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;
Title: Re: New APT removes kernels
Post by: jure 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

Title: Re: New APT removes kernels
Post by: devil 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.
Title: Re: New APT removes kernels
Post by: vilde 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 :)
Title: Re: New APT removes kernels
Post by: tranquil on 2021/01/13, 05:49:48
Thank you devil and hendrikL for the tips.
Title: Re: New APT removes kernels
Post by: blaze on 2021/01/14, 09:39:51
Good to know, probably something I would have missed. Thank you.
Title: Re: New APT removes kernels
Post by: GoinEasy9 on 2021/01/14, 17:04:32
Thanks for the heads up. Appreciate getting these useful posts.
Title: Re: New APT removes kernels
Post by: ghstryder on 2021/01/16, 18:40:07
Thanks to everyone for the posts!
Title: Re: New APT removes kernels
Post by: gorzka on 2021/01/16, 19:40:22
For me. I don't need Kernel-Remover in the future? apt-get autoremove do that?
Title: Re: New APT removes kernels
Post by: dibl 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.