[Bug 1615381] Re: apt-get autoremove may remove current kernel

2022-05-14 Thread Jarno Suni
So there is neither /etc/apt/apt.conf.d/01autoremove-kernels nor /etc/kernel/postinst.d/apt-auto-removal anymore. Anyway I could not make 'apt autoremove' try to remove current kernel anymore. Tested by apt 2.0.8. -- You received this bug notification because you are a member of Ubuntu Bugs, whic

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2022-05-06 Thread Timo Aaltonen
Hello Jarno, or anyone else affected, Accepted apt into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt/2.0.8 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Test

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-04-06 Thread Launchpad Bug Tracker
This bug was fixed in the package apt - 2.0.5 --- apt (2.0.5) focal; urgency=medium [ Julian Andres Klode ] * private-search: Only use V.TranslatedDescription() if good (LP: #1877987) * Implement update --error-on=any (Closes: #594813) (LP: #1693900) * Include all translations

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-04-06 Thread Launchpad Bug Tracker
This bug was fixed in the package apt - 1.6.13 --- apt (1.6.13) bionic; urgency=medium [ David Kalnischkies ] * Fix incorrect base64 encoding due to int promotion (LP: #1916050) * Harden test for no new acquires after transaction abort (Closes: #984966) (LP: #1918920) [ J

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-04-06 Thread Launchpad Bug Tracker
This bug was fixed in the package apt - 2.1.10ubuntu0.3 --- apt (2.1.10ubuntu0.3) groovy; urgency=medium [ David Kalnischkies ] * Fix incorrect base64 encoding due to int promotion (LP: #1916050) * Harden test for no new acquires after transaction abort (Closes: #984966) (LP

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-03-30 Thread Julian Andres Klode
The autopkgtests for apt have passed, so testing succeeded. I retried the failures, I expect them to be unrelated: apport one already happened with binutils/2.30-21ubuntu1~18.04.5, the i386 retry succeeded; and reprotest fails in its normal way, a few retries should get it working. ** Tags removed

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-03-25 Thread Łukasz Zemczak
Hello Jarno, or anyone else affected, Accepted apt into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt/1.6.13 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Te

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-03-25 Thread Łukasz Zemczak
Hello Jarno, or anyone else affected, Accepted apt into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt/2.0.5 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Test

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-03-24 Thread Brian Murray
Hello Jarno, or anyone else affected, Accepted apt into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apt/2.1.10ubuntu0.3 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubun

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-03-05 Thread Julian Andres Klode
** Changed in: apt (Ubuntu Groovy) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get autoremove may remove current kernel To manage notifica

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-03-05 Thread Julian Andres Klode
** Description changed: [Impact] APT will try and fail to remove the currently running kernel, when booted into an older kernel that is not protected. May wreak some havoc if mixed with other operations to the point that apt goes weird and needs manual fixing up. [Test case] + For the S

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-02-18 Thread Julian Andres Klode
** Also affects: apt (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: unattended-upgrades (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: apt (Ubuntu Groovy) Importance: Undecided Status: New ** Also affects: unattended-upgrades (U

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-02-15 Thread Julian Andres Klode
** Description changed: + [Impact] + APT will try and fail to remove the currently running kernel, when booted into an older kernel that is not protected. May wreak some havoc if mixed with other operations to the point that apt goes weird and needs manual fixing up. + + [Test case] + - Install

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2021-01-15 Thread Launchpad Bug Tracker
This bug was fixed in the package apt - 2.1.18 --- apt (2.1.18) unstable; urgency=high * pkgcachegen: Avoid write to old cache for Version::Extra (Closes: #980037) * Adjust apt-mark test for dpkg 1.20.7 -- Julian Andres Klode Wed, 13 Jan 2021 17:37:30 +0100 ** Changed in: apt

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2020-10-14 Thread Matthieu Clemenceau
** Tags added: fr-747 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get autoremove may remove current kernel To manage notifications about this bug go to: https://bugs.launchpad.

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2020-07-14 Thread Julian Andres Klode
I have code to fix that just need to merge it and like update tests ** Changed in: apt (Ubuntu) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title:

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2020-07-14 Thread Dan Streetman
** Tags added: seg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get autoremove may remove current kernel To manage notifications about this bug go to: https://bugs.launchpad.net

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2019-04-26 Thread Balint Reczey
@mathew-hodson apt still does that. ** Also affects: apt (Ubuntu) Importance: Undecided Status: New ** Changed in: apt (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.la

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2019-04-25 Thread Mathew Hodson
** No longer affects: apt (Ubuntu Artful) ** No longer affects: apt (Ubuntu Xenial) ** No longer affects: apt (Ubuntu Trusty) ** No longer affects: apt (Ubuntu) ** Changed in: unattended-upgrades (Ubuntu Trusty) Status: New => Won't Fix -- You received this bug notification because you

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2019-04-25 Thread Launchpad Bug Tracker
This bug was fixed in the package unattended-upgrades - 1.1ubuntu1.18.04.7~16.04.2 --- unattended-upgrades (1.1ubuntu1.18.04.7~16.04.2) xenial; urgency=medium * Don't check blacklist too early and report updates from not allowed origins as kept back. (LP: #1781176) * test/test

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2019-04-08 Thread Balint Reczey
@jarnos, this is a separate issue fixed later, calculating upgradable packages leaves the upgradable packages in the cache, and u-u counts them as the reverse dependencies of the first kernel to be removed. This keeps the first kernel on the system, but when there are no upgradable packages in a

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2019-04-08 Thread Jarno Suni
I do not understand why u-u keeps linux-modules-4.15.0-36-generic. How do those packages depend on that? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get autoremove may remove cu

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2019-04-08 Thread Balint Reczey
Verified 1.1ubuntu1.18.04.7~16.04.2 on Xenial. Installed a few linux packages, marked them auto-installed, ran /etc/kernel/postinst.d/apt-auto-removal , then booted to a old kernel. Apt would have removed it, but u-u did not. (The -34- kernel.) ubuntu@ubuntu-Standard-PC-i440FX-PIIX-1996:~$ uname

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2019-03-13 Thread Mathew Hodson
** Changed in: unattended-upgrades (Ubuntu) Importance: Undecided => High ** Changed in: unattended-upgrades (Ubuntu Artful) Importance: Undecided => High ** Changed in: unattended-upgrades (Ubuntu Trusty) Importance: Undecided => Low -- You received this bug notification because you a

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-12-03 Thread Brian Murray
Hello Jarno, or anyone else affected, Accepted unattended-upgrades into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source /unattended-upgrades/1.1ubuntu1.18.04.7~16.04.0 in a few hours, and then in the -proposed repository. Please help us by test

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-11-08 Thread Balint Reczey
** Changed in: unattended-upgrades (Ubuntu Artful) Status: New => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get autoremove may remove current kernel To manag

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-05-31 Thread Eric Desrochers
** Tags added: sts -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get autoremove may remove current kernel To manage notifications about this bug go to: https://bugs.launchpad.net

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-05-24 Thread Eric Desrochers
Thanks for the heads-up Balint. I saw the "full backport" discussion in the ML, thanks ! For now, I'm setting Xenial as 'high' priority as it has been brought to my attention that 'uu' in Xenial removed a running kernel recently : /var/log/unattended-upgrades/unattended-upgrades-dpkg.log ... Rem

Re: [Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-05-24 Thread Balint Reczey
On Thu, May 24, 2018 at 1:24 PM, Eric Desrochers wrote: > Any particular reason why the fix hasn't been SRU'd ? I'll start looking > at SRU'ing it into the rest of Stable Release. > > >From what I read the reporter first filed the bug against Xenial 16.04 > LTS. Anyone still affected by this issue

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-05-24 Thread Eric Desrochers
Any particular reason why the fix hasn't been SRU'd ? I'll start looking at SRU'ing it into the rest of Stable Release. >From what I read the reporter first filed the bug against Xenial 16.04 LTS. Anyone still affected by this issue on Xenial or Artful ? -- You received this bug notification bec

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-03-01 Thread Launchpad Bug Tracker
This bug was fixed in the package unattended-upgrades - 1.0ubuntu1 --- unattended-upgrades (1.0ubuntu1) bionic; urgency=medium * Merge from Debian unstable - Remaining changes: - unattended-upgrades: Do not automatically upgrade the development release of Ubuntu un

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-02-22 Thread Balint Reczey
** Changed in: unattended-upgrades (Ubuntu) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get autoremove may remove current kernel To mana

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-02-16 Thread Balint Reczey
... /etc/kernel/postinst.d/apt-auto-removal was run. ** Changed in: unattended-upgrades (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2018-02-16 Thread Balint Reczey
In default configuration booted kernel does not become newly unused, but when u-u is configured to remove all autoremovable packages the booted kernel can be removed in case it was not running when was run. ** Also affects: unattended-upgrades (Ubuntu) Importance: Undecided Status: New

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2017-10-13 Thread Robie Basak
** Tags added: kernel-autoremove -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get autoremove may remove current kernel To manage notifications about this bug go to: https://bugs

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2017-08-30 Thread Doug Smythies
In my case autoremove wants to delete the second-latest regular kernel version. Maybe because I have a bunch of mainline kernels installed also. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 T

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2017-08-30 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: apt (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-ge

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2016-11-03 Thread Jarno Suni
Julian, it protects the kernel currently booted at the time of running /etc/kernel/postinst.d/apt-auto-removal. If you later boot another kernel that is not protected, it may be removed. Not a likely case, though. -- You received this bug notification because you are a member of Ubuntu Bugs, whic

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2016-11-03 Thread Julian Andres Klode
This should not happen... # Mark as not-for-autoremoval those kernel packages that are: # - the currently booted version # - the kernel version we've been called for # - the latest kernel version (as determined by debian version number) # - the second-latest kernel version Not sure what went

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2016-09-22 Thread Jarno Suni
** Description changed: This may happen, if you boot one of the older kernels, that is not protected by /etc/apt/apt.conf.d/01autoremove-kernels - Workaround: run - /etc/kernel/postinst.d/&apt-auto-removal + Workaround: run + /etc/kernel/postinst.d/apt-auto-removal during each boot (e.g.

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2016-08-23 Thread Emily Ratliff
Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privile

[Bug 1615381] Re: apt-get autoremove may remove current kernel

2016-08-21 Thread Jarno Suni
I suppose this may happen with unattended-upgrades, too, if user has configured removing of old kernels. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1615381 Title: apt-get autoremove may remove cu