From 891efe3b201a104445ea723a3a5b9b434a78c364 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 17 Nov 2021 16:29:09 +0100 Subject: Do not remove Essential/Protected due to dependencies Suggesting the removal of Essential and Protected packages as a solution leads to situations where YouTubers end up removing their desktop. Let's not remove such packages ourselves. --- test/integration/test-bug-601961-install-info | 14 +++++++++++++- test/integration/test-bug-675449-essential-are-protected | 14 +++++++++++++- ...st-bug-960705-propagate-protected-to-satisfied-conflict | 2 +- 3 files changed, 27 insertions(+), 3 deletions(-) (limited to 'test/integration') diff --git a/test/integration/test-bug-601961-install-info b/test/integration/test-bug-601961-install-info index 10944384a..3e135606d 100755 --- a/test/integration/test-bug-601961-install-info +++ b/test/integration/test-bug-601961-install-info @@ -35,4 +35,16 @@ This should NOT be done unless you know exactly what you are doing! findutils essentialpkg (due to findutils) 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. After this operation, 2007 kB disk space will be freed. -E: Trivial Only specified but this is not a trivial operation.' aptget remove essentialpkg --trivial-only +E: Trivial Only specified but this is not a trivial operation.' aptget remove essentialpkg findutils --trivial-only + +testfailureequal 'Reading package lists... +Building dependency tree... +Some packages could not be installed. This may mean that you have +requested an impossible situation or if you are using the unstable +distribution that some required packages have not yet been created +or been moved out of Incoming. +The following information may help to resolve the situation: + +The following packages have unmet dependencies: + findutils : Depends: essentialpkg but it is not going to be installed +E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.' aptget remove essentialpkg --trivial-only diff --git a/test/integration/test-bug-675449-essential-are-protected b/test/integration/test-bug-675449-essential-are-protected index 69f6c2a3b..e7460aeb7 100755 --- a/test/integration/test-bug-675449-essential-are-protected +++ b/test/integration/test-bug-675449-essential-are-protected @@ -100,4 +100,16 @@ This should NOT be done unless you know exactly what you are doing! foo libfoo (due to foo) 0 upgraded, 0 newly installed, 2 to remove and 4 not upgraded. Purg foo [1] -Purg libfoo [1]' aptget purge libfoo -s +Purg libfoo [1]' aptget purge foo libfoo -s + +testequal 'Reading package lists... +Building dependency tree... +Some packages could not be installed. This may mean that you have +requested an impossible situation or if you are using the unstable +distribution that some required packages have not yet been created +or been moved out of Incoming. +The following information may help to resolve the situation: + +The following packages have unmet dependencies: + foo : Depends: libfoo but it is not going to be installed +E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.' aptget purge libfoo -s diff --git a/test/integration/test-bug-960705-propagate-protected-to-satisfied-conflict b/test/integration/test-bug-960705-propagate-protected-to-satisfied-conflict index 824851278..c16a27569 100755 --- a/test/integration/test-bug-960705-propagate-protected-to-satisfied-conflict +++ b/test/integration/test-bug-960705-propagate-protected-to-satisfied-conflict @@ -50,4 +50,4 @@ Remv init [1] MarkDelete systemd-sysv:amd64 < 1 | none @ii H > FU=1 Remv systemd-sysv [1] Inst runit-init (1 unstable [all]) -Conf runit-init (1 unstable [all])" apt install runit-init -so Debug::pkgProblemResolver=1 -o Debug::pkgDepCache::Marker=1 -o Debug::pkgDepCache::AutoInstall=1 +Conf runit-init (1 unstable [all])" apt install runit-init -so Debug::pkgProblemResolver=1 -o Debug::pkgDepCache::Marker=1 -o Debug::pkgDepCache::AutoInstall=1 -o APT::Get::Allow-Solver-Remove-Essential=1 -- cgit v1.2.3-70-g09d2