无法访问‘/sbin/udevd’:没有该文件或目录

无法访问‘/sbin/udevd’:没有该文件或目录

15.10 dist 升级后,使用 apt-get 时出现以下错误?

sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libboost-iostreams1.55.0* libhiredis0.10* libhogweed2* libicu52* libnettle4* libregexp-common-perl*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 29.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
chmod: cannot access ‘/sbin/udevd’: No such file or directory
E: Problem executing scripts DPkg::Pre-Invoke 'chmod -x /sbin/udevd'
E: Sub-process returned an error code

答案1

/sbin/udevd在 Wily 中不再可用。但您问题中的软件包的删除脚本似乎依赖于它。请尝试以下操作

sudo touch /sbin/udevd; sudo apt-get autoremove --purge; sudo rm /sbin/udevd

如果不起作用,请运行

sudo dpkg -r --force-all libboost-iostreams1.55.0 libhiredis0.10 libhogweed2 libicu52 libnettle4 libregexp-common-perl

相关内容