A bug of Ubuntu 16.04.1 LTS

执行下面查询会报一堆错误

1
root@vagrant:/tmp#find / -name "my.cnf"

issue

1
find: '/var/lib/lxcfs/cgroup/devices/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/init.scope/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/init.scope/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/vagrant.mount/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/vagrant.mount/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/mdadm.service/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/mdadm.service/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/vboxadd-x11.service/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/vboxadd-x11.service/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/ifup@enp0s8.service/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/ifup@enp0s8.service/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/boot.mount/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/boot.mount/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/dbus.service/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/dbus.service/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/var-lib-lxcfs.mount/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/var-lib-lxcfs.mount/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/cron.service/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/cron.service/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/run-user-0.mount/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/run-user-0.mount/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/lvm2-lvmetad.service/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/lvm2-lvmetad.service/devices.deny': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/run-lxcfs-controllers-cpu\\x2ccpuacct.mount/devices.allow': Permission denied find: '/var/lib/lxcfs/cgroup/devices/system.slice/run-lxcfs-controllers-cpu\\x2ccpuacct.mount/devices.deny': Permission denied

版本信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
root@vagrant:/tmp# cat /etc/\*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

Bug was fix in lxcfs (2.0.4-0ubuntu1~ubuntu16.04.1)
debian/changelog :lxcfs (2.0.4-0ubuntu1~ubuntu16.04.1) xenial; urgency=medium



一个临时解决方案

1
sudo apt-get remove --auto-remove lxcfs

Reference