Tag Archives: Ubuntu 18.04 installation perf error

[Solved] Ubuntu 18.04 installation perf error: WARNING: perf not found for kernel 4.15.0-39

problem

Attempting to install perf monitor resource overhead, an error is reported after installation

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

Install the corresponding version of linux-tools-4.15.0-39-generic and cannot find the package

Solution:

In fact, perf is built into linux tools generic , so you can create a perf soft link after installation

sudo apt install linux-tools-generic
sudo ln -s ln -s /usr/lib/linux-tools/4.15.0-162-generic/perf /usr/bin/perf

The 4.15.0-162-generic field should be replaced as appropriate