我试图安装perf
使用sudo apt-get install linux-tools-$(uname -r) linux-tools-generic
它给出了一个错误说:
Reading package lists... Done
Building dependency tree
Reading state information...
Done E: Unable to locate package linux-tools-4.18.0-21-generic
E: Couldn't find any package by glob 'linux-tools-4.18.0-21-generic'
E: Couldn't find any package by regex 'linux-tools-4.18.0-21-generic' –
(编辑)
我确实在运行上述命令之前运行过sudo apt-get update
,sudo apt-get upgrade
但我仍然收到与上述相同的错误消息。
我跑了cat /etc/apt/sources.list
,收到以下消息:
deb http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse #Added by software-properties
uname -a
产量:Linux ubuntu 4.18.0-21-generic #22~18.04.1-Ubuntu SMP Thu May 16 15:07:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux