After upgrading to Ubuntu 15.04 I got a weird error with udev.
-> sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
init
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
228 not fully installed or removed.
Need to get 0 B/3,734 B of archives.
After this operation, 30.7 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up udev (219-7ubuntu3) ...
dpkg: error processing package udev (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
udev
E: Sub-process /usr/bin/dpkg returned an error code (1)
After about an hour of searching I came to the knowledge that you could fix it by changing the /etc/init.d/udev file. but the problem is that this system got replaced in Ubuntu 15.04 by the systemd system. So I was back at square 1.
So my question is, how can I fix this?
Thanks in advance.
Edit: I reinstalled my Ubuntu a day before the answer so sadly enough I can not say if it worked or not :(. But I still have to upgrade my laptop to Ubuntu 15.04 so if I run in the same problem I will definitely test the solution from below.
Edit 2: So I finaly got around to upgrade my laptop to Ubuntu 15.04 and I runned into the same problem so I gave the first fix from @Shengolol a try. And I can tell you that it did work :D.
So thanks a lot Shengolol :).