3

I am not able to install perf for the latest linux kernel 11.3 in Ubuntu Zesty(17.04). I downloaded the Linux kernel source code for this latest stable release (from kernel.org). I then compiled and made all necessary changes. The compilation and builds were all successful and I am now successfully able to boot this kernel. I then have problems installing perf for this kernel. The below is the screenshot of the error message :-

$ perf
WARNING: perf not found for kernel 4.11.3

  You may need to install the following packages for this specific kernel:
    linux-tools-4.11.3-4.11.3
    linux-cloud-tools-4.11.3-4.11.3

  You may also want to install one of the following packages to keep up to date:
    linux-tools-4.11.3
    linux-cloud-tools-4.11.3
akalita@tucher:~$ sudo apt-get install linux-tools-4.11.3-4.11.3
[sudo] password for akalita: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-tools-4.11.3-4.11.3
E: Couldn't find any package by glob 'linux-tools-4.11.3-4.11.3'
E: Couldn't find any package by regex 'linux-tools-4.11.3-4.11.3'

I am basically not able to find the linux-tools package for this stable kernel version. I have already updated and upgraded the system and then rebooted it as well.

I have other kernel images on my system as well (older ones). But I suspect this will be a problem with each of them. What should I do ? How should I approach this problem ?

12
  • 1
    There is no linux kernel 11.3. You installed an unsupported kernel (4.11.3). Obviously there is nothing for that kernel in Ubuntu repos. – Pilot6 May 31 '17 at 21:24
  • 4
    I'm voting to close this question as off-topic because this is related to an unsupported kernel. – Pilot6 May 31 '17 at 21:25
  • Hi @Pilot6, in kernel.org, this seems to be the latest stable release. – Arnabjyoti Kalita May 31 '17 at 21:26
  • Ubuntu does not use kernels from kernel.org. Mainline kernels are not officially supported. You can install them, but do not expect that there will be kernel packages in Ubuntu repos. – Pilot6 May 31 '17 at 21:28
  • Ok. Where does Ubuntu use its kernels from ? Where can I find the latest kernels for Ubuntu 17.04 ? – Arnabjyoti Kalita May 31 '17 at 21:30