172
edits
Changes
Initial edition of the article
When you install <tt>udev</tt> package in [[VE]] based on Debian-4.0 template, you can see the following message:
<pre>
Setting up udev (0.105-4) ...
/var/lib/dpkg/info/udev.postinst: line 125: echo: write error: Operation not permitted
</pre>
The problem is that postinstall script tries to write to <tt>/proc/sys/kernel/hotplug</tt> file, and this operation is prohibited in VE.
To work around this problem, just comment the 125th line in <tt>/var/lib/dpkg/info/udev.postinst</tt> file, that writes to <tt>/proc/sys/kernel/hotplug</tt> file. After that <tt>udev</tt> can be installed smoothly.
P.S. Don't forget to enable <tt>sysfs</tt> feature for VE in question (by vzctl), in order <tt>udev</tt> to be able to work.
[[Category:Troubleshooting]]
<pre>
Setting up udev (0.105-4) ...
/var/lib/dpkg/info/udev.postinst: line 125: echo: write error: Operation not permitted
</pre>
The problem is that postinstall script tries to write to <tt>/proc/sys/kernel/hotplug</tt> file, and this operation is prohibited in VE.
To work around this problem, just comment the 125th line in <tt>/var/lib/dpkg/info/udev.postinst</tt> file, that writes to <tt>/proc/sys/kernel/hotplug</tt> file. After that <tt>udev</tt> can be installed smoothly.
P.S. Don't forget to enable <tt>sysfs</tt> feature for VE in question (by vzctl), in order <tt>udev</tt> to be able to work.
[[Category:Troubleshooting]]