Taming Dependency Hell with apt-mark and Pinning on Debian-Based Systems

Introduction to Dependency Hell

I’ve been there - stuck in dependency hell, trying to figure out why a package won’t install or update. It’s frustrating, especially when you’re just trying to get some work done. On Debian-based systems like Ubuntu, tools like apt-mark and pinning can be lifesavers. In this article, I’ll walk you through how to use these tools to manage dependencies and keep your system running smoothly.

Understanding apt-mark

apt-mark is a command-line tool that lets you mark packages as automatically or manually installed. This is super useful for preventing unwanted package removals or upgrades. For example, if you’ve installed a package manually, you can mark it as manually installed using the following command:

[Read More]