The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 3,227β€…    Votes:  2β€…    βœ… Solution
Tags: apt   package-management   upgrade   dpkg   latex  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1029546
Title: Cannot remove apt package (unmet dependencies)
ID: /2018/04/29/Cannot-remove-apt-package-_unmet-dependencies_
Created: April 29, 2018
Upload: April 8, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Just had a headache myself today with having to fix a broken kernel 4.14.36 and 4.14.37 which could not be removed due to symbolic link errors.

Referring to this Q&A: Remove broken PPA package with unknown option, but following my β€œcheat” method, edit the file /var/lib/dpkg/info/context.postrm and after the line:

#!/bin/sh

insert the line

exit 0

Save the file and use:

sudo apt install -f

It should run without any errors now.

⇧ Disable password request from suspend - 18.04 How to manually mount a partition?  β‡©