I can not install udev on simple ubuntu 14.04

I have a Ubuntu 14.04 Server (64-bit) installation installed.

Using:

sudo apt-get update 

Print this error:

 .... Hit http://security.ubuntu.com trusty-security/universe Translation-en E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

After removing tmp.i /var/lib/dpkg/updates# sudo rm tmp.i updating apt-get went fine, but ...

When I tried 'sudo apt-get upgrade':

 Fetched 534 kB in 4s (112 kB/s) Reading package lists... Done root@vps****:/# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up udev (204-5ubuntu20.9) ... * udev requires hotplug support, not started ...fail! invoke-rc.d: initscript udev, action "restart" failed. 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) 

I can not find a solution for this so far on the Internet, I tried many ways, but nothing worked ...

+8
ubuntu dpkg udev
source share
3 answers

The reason may be that the problem occurs in all installations of Ubuntu 14.04 on OVH servers. I contacted technical support, they do not have an answer that can help, other than "help yourself."

After receiving this error:

 nano /etc/init.d/udev 

After ### END INIT INFO add:

 exit 0 

Save and exit.

 dpkg --configure -a apt-get upgrade 

Edit the file again and delete exit 0 , save and exit, then the installation of subsequent packages works correctly, and after rebooting the system seems fine without this terrible error message.

Workaround from this thread: http://forum.ovh.co.uk/showthread.php?8480-udev-requires-hotplug-support-not-started/page2&s=2144010031f992268c5690726da09284

+23
source share

For those who get here after me, I had to edit / usr / sbin / invoke -rc.d to add output 0 after the first comments in order to configure udev.

 nano -w /usr/sbin/invoke-rc.d ... # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. exit 0 

Then run:

 dpkg --configure -a 

Then remove output 0 from invoke-rc.d

+5
source share

Instead of editing /etc/init.d/udev twice, you can simply add this to a new line after ### END INIT INFO :

 dpkg --configure -a || exit 0 

That way, if dpkg --configure fails, it will complete, otherwise it will continue as usual.

Or, if the editing files are not your thing, this will do the trick:

 [ ! "$(grep -A1 '### END INIT INFO' /etc/init.d/udev | grep 'dpkg --configure -a || exit 0')" ] \ && sudo sed -i 's/### END INIT INFO/### END INIT INFO\ dpkg --configure -a || exit 0/' /etc/init.d/udev 
0
source share

All Articles