我想perf
在内核为 5.4.39 的 ubuntu 20.04 上安装。
问题是我得到了
root@xxx:/home# perf
WARNING: perf not found for kernel 5.4.39
You may need to install the following packages for this specific kernel:
linux-tools-5.4.39-linuxkit
linux-cloud-tools-5.4.39-linuxkit
You may also want to install one of the following packages to keep up to date:
linux-tools-linuxkit
linux-cloud-tools-linuxkit
然后当我尝试安装这些软件包时,它会说:
E: Unable to locate package
答案1
尝试这个。
打开终端并运行:
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install --reinstall linux-tools-common linux-tools-generic linux-tools-`uname -r`