Siduction Forum

Siduction Forum => Upgrade Warnings => Thema gestartet von: devil in 2021/01/10, 23:28:35

Titel: New APT removes kernels
Beitrag von: devil in 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.
Titel: Re: New APT removes kernels
Beitrag von: michaa7 in 2021/01/11, 01:10:11
richtiger pfad / right path:

/etc/apt/apt.conf.d/01autoremove
Titel: Re: New APT removes kernels
Beitrag von: samoht in 2021/01/11, 10:17:40
Thanks for clarification!
Because I did not understand the hint
Zitat... set APT::Get::AutomaticRemove::Kernels to false ...
Source:
/usr/share/doc/apt/NEWS.Debian.gz


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

Titel: Re: New APT removes kernels
Beitrag von: hendrikL in 2021/01/11, 16:09:54
Well, I added to my apt.conf:
# 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;
Titel: Re: New APT removes kernels
Beitrag von: jure in 2021/01/11, 18:06:12
apt-listchanges: Changelogs für siductionbox


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

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

1. Install the apt-conf-siduction package.

2. Use # apt autoremove as before.