diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2021-11-17 16:29:09 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2021-11-17 17:32:18 +0100 |
commit | 891efe3b201a104445ea723a3a5b9b434a78c364 (patch) | |
tree | 11d963be1d3141e311d200b22e00c3717219781b /test | |
parent | f4c4f057665adf5d26b6d83be30362fcd837db22 (diff) |
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.
Diffstat (limited to 'test')
3 files changed, 27 insertions, 3 deletions
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 |