5

On Pop!_OS, I'm trying to remove an apt package that's marked as "essential". I understand the consequences and know how to make sure I'll still be able to use my system afterward. In examples and documentation about this online, it says all I'd have to do is type Yes, do as I say! into apt, but instead of getting prompted to do that, I just get this message:

This operation is not permitted because it will break the system.
Abort.

This is my own system, so I shouldn't need permission to remove whatever packages I want and then deal with the consequences myself. How can I bypass this?

2 Answers 2

7

The reason this happens on Pop!_OS is that they applied this patch to their version of apt. To bypass this block and get the normal behavior of apt from now on, do sudo touch /etc/apt/break-my-system.

2
  • So, this is the exact same thing as "Yes, do as I say!". That doesn't really fix anything.
    – Shodan
    Nov 26, 2021 at 0:05
  • This is just another layer of preventing users from shooting at their legs. Jul 30, 2022 at 9:00
-1

if this happens when you want to install new package i suggest update your system first and then try to install the package you want

by following commands:

sudo apt update
sudo apt upgrade

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .