Cannot install livepatch trên ubuntu 16.04, server thuê ở linode
Error log:
$ sudo snap install canonical-livepatch
error: cannot perform the following tasks:
- Setup snap "core" (1577) security profiles (cannot setup apparmor for snap "core": cannot load apparmor profile "snap.core.hook.configure": cannot load apparmor profile: exit status 1
apparmor_parser output:
Cache read/write disabled: interface file missing. (Kernel needs AppArmor 2.4 compatibility patch.)
Warning: unable to find a suitable fs in /proc/mounts, is it mounted?
Use --subdomainfs to override.
)
- Setup snap "core" (1577) security profiles (cannot load apparmor profile "snap.core.hook.configure": cannot load apparmor profile: exit status 1
apparmor_parser output:
Cache read/write disabled: interface file missing. (Kernel needs AppArmor 2.4 compatibility patch.)
Warning: unable to find a suitable fs in /proc/mounts, is it mounted?
Use --subdomainfs to override.
)
Investigate
Check thấy kernel ở /boot/ và từ uname -a khác nhau. WHY?
Linode nếu để chế độ default thì họ sẽ dùng một bản linux kernel được tuỳ biến riêng
4.9.15-x86_64-linode81
4.6.5-x86_64-linode71
....
Một phát hiện thú vị.
Tại sao họ lại custom?
Không rõ. Nhưng mình có thể vô linode manager dashboard -> profile -> chọn được kernel version mình muốn dùng -> reboot là apply được ngay?
Đây có thể là lý do cho họ custom kernel
Problem?
Cannot install livepatch trên ubuntu 16.04, server thuê ở linode Error log:
Investigate
Check thấy kernel ở
/boot/
và từuname -a
khác nhau. WHY? Linode nếu để chế độ default thì họ sẽ dùng một bản linux kernel được tuỳ biến riêngMột phát hiện thú vị.
Tại sao họ lại custom?
Không rõ. Nhưng mình có thể vô linode manager dashboard -> profile -> chọn được kernel version mình muốn dùng -> reboot là apply được ngay? Đây có thể là lý do cho họ custom kernel
Vậy kernel này được store ở đâu?