![是否可以在内核为 5.4.39 的 ubuntu 上安装 perf?](https://linux22.com/image/930989/%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E5%9C%A8%E5%86%85%E6%A0%B8%E4%B8%BA%205.4.39%20%E7%9A%84%20ubuntu%20%E4%B8%8A%E5%AE%89%E8%A3%85%20perf%EF%BC%9F.png)
我想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`