Apt-get error when trying to remove udev

November 18, 2013 2.5k views
I'm trying to remove udev via: sudo apt-get purge udev but get the following: The following information may help to resolve the situation: The following packages have unmet dependencies: apache2.2-bin : Depends: libapr1 (>= 1.4.2) but it is not going to be installed Depends: libaprutil1 (>= 1.3.2+dfsg) but it is not going to be installed Depends: libaprutil1-dbd-sqlite3 but it is not going to be installed or libaprutil1-dbd-mysql but it is not going to be installed or libaprutil1-dbd-odbc but it is not going to be installed or libaprutil1-dbd-pgsql but it is not going to be installed or libaprutil1-dbd-freetds but it is not going to be installed Depends: libaprutil1-ldap but it is not going to be installed apache2.2-common : Depends: apache2-utils but it is not going to be installed Depends: procps but it is not going to be installed Recommends: ssl-cert but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. I have run: sudo apt-get update; sudo apt-get upgrade; sudo apt-get dist-upgrade; and none of these seem to make a difference. I'm on Ubuntu 12.04.
3 Answers
Try:
sudo apt-get -y remove --purge udev

and:
sudo apt-get -y autoremove

(or, perhaps, the other way around).
It seems I can't remove udev as it has a number of core dependancies - maybe that's what's causing the error.
Why are you trying to remove udev?
Have another answer? Share your knowledge.