問題
嘗試安裝perf監控程序資源開銷,安裝后報錯
WARNING: perf not found for kernel 4.15.0-39
You may need to install the following packages for this specific kernel:
linux-tools-4.15.0-39-generic
linux-cloud-tools-4.15.0-39-generic
You may also want to install one of the following packages to keep up to date:
linux-tools-generic
linux-cloud-tools-generic
安裝對應版本的linux-tools-4.15.0-39-generic
無法找到package
解決
其實perf已經內置在linux-tools-generic
里面,所以安裝后創建perf軟鏈接即可
sudo apt install linux-tools-generic
sudo ln -s ln -s /usr/lib/linux-tools/4.15.0-162-generic/perf /usr/bin/perf
其中4.15.0-162-generic
字段酌情替換