安装时:
sudo apt-get install \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
Run Code Online (Sandbox Code Playgroud)
我正进入(状态:
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Run Code Online (Sandbox Code Playgroud)
我发现其他人也有类似的问题:apt-get update mdadm 可怕的警告
所以我按照说明操作:
/usr/share/mdadm/mkconf > /etc/mdadm/mdadm.conf
Run Code Online (Sandbox Code Playgroud)
然后:
update-initramfs -u
Run Code Online (Sandbox Code Playgroud)
但输出是:
update-initramfs: Generating /boot/initrd.img-4.10.0-30-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Run Code Online (Sandbox Code Playgroud)
lsb_release -a
LSB Version: core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarch
Distributor ID: Ubuntu
Description: Ubuntu 17.04
Release: 17.04
Codename: zesty
Run Code Online (Sandbox Code Playgroud)
vim /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default (built-in), scan all partitions (/proc/partitions) and all
# …
Run Code Online (Sandbox Code Playgroud) 当我运行时,docker &
我得到:
INFO[0000] libcontainerd: new containerd process, pid: 3091
INFO[0000] [graphdriver] using prior storage driver: aufs
INFO[0000] Graph migration to content-addressability took 0.00 seconds
WARN[0000] Your kernel does not support cgroup rt period
WARN[0000] Your kernel does not support cgroup rt runtime
INFO[0000] Loading containers: start.
Run Code Online (Sandbox Code Playgroud)
我也收到所有这些警告:
WARN[0000] libcontainerd: client is out of sync, restore was called on a fully synced container (8564990571b56c26f32872031507e77f786b870b27ed3f0b80eebe127ce65164).
WARN[0000] libcontainerd: failed to retrieve container 8564990571b56c26f32872031507e77f786b870b27ed3f0b80eebe127ce65164 state: rpc error: code = 2 desc = …
Run Code Online (Sandbox Code Playgroud) 我在 GCP 中使用 Ubuntu 17.10 VM。为了防止我的服务器的 IP 被欺骗,我在我的 /etc/host.conf 文件中做了以下更改:
更改自:
# The "order" line is only used by old versions of the C library.
order hosts,bind
multi on
Run Code Online (Sandbox Code Playgroud)
到
# The "order" line is only used by old versions of the C library.
?order bind,hosts
?nospoof on
Run Code Online (Sandbox Code Playgroud)
但这给出了以下错误:
/etc/host.conf: line 2: bad command `?order bind,hosts'
/etc/host.conf: line 3: bad command `?nospoof on'
Run Code Online (Sandbox Code Playgroud)
出了什么问题?