# Package 'linux-headers-5.15.0-67-generic' has no installation candidate m linux-headers-5.15.0-67-generic

**URL:** https://discourse.roots.io/t/package-linux-headers-5-15-0-67-generic-has-no-installation-candidate-m-linux-headers-5-15-0-67-generic/25477
**Category:** trellis
**Tags:** trellis
**Created:** 2023-06-02T07:46:13Z
**Posts:** 8

## Post 1 by @lukasz-gorski — 2023-06-02T07:46:14Z

Hi.

After Update Mac to 13.4, Vagrant to v2.3.6 (latest version), Parallels 18.3.0 (latest version) I’m not able to start existing ubuntu 22.04 projects. Also trellis new throws the same error.

==\> default: Checking for Parallels Tools installed on the VM…  
==\> default: Parallels Tools installed on this VM are outdated! In most cases  
==\> default: this is fine but in rare cases it can cause things such as shared  
==\> default: folders to not work properly. If you see shared folder errors,  
==\> default: please update Parallels Tools within the virtual machine and  
==\> default: reload your VM.  
==\> default: Installing the proper version of Parallels Tools. This may take a few minutes…  
The following SSH command responded with a non-zero exit status.  
Vagrant assumes that this means the command failed!

ptiagent-cmd --install

Stdout from the command:

ptiagent-cmd progress 3  
ptiagent-cmd progress 15  
Started installation of Parallels Guest Tools version ‘18.3.0.53606’  
…  
Running kernel seems to be up-to-date.  
No services need to be restarted.  
No containers need to be restarted.  
No user sessions are running outdated binaries.  
No VM guests are running outdated hypervisor (qemu) binaries on this host.  
E: Package ‘linux-headers-5.15.0-67-generic’ has no installation candidate  
m linux-headers-5.15.0-67-generic  
o dkms  
o libelf-dev  
Error: failed to install mandatory packages.  
Error: failed to install or upgrade Parallels Guest Tools!  
Stderr from the command:  
exit status 1

Has anyone faced that issue to and is there any possible fix?

Thank you.

---

## Post 2 by @strarsis — 2023-06-03T17:05:40Z

So I can summarize the issue like this:

1. macOS `13.4` with Parallels `18.3.0`, controlled by Vagrant `2.3.6`, starting an existing Ubuntu `22.04` inside a VM.
2. Vagrant script detects that the Parallel Tools (Guest Additions/Tools) on that Ubuntu system inside the VM is outdated, tries updating it.
3. The Parallel Tools use kernel modules, those have to be build (compiled) for the given Linux kernel used by Ubuntu `22.04`.
4. For building those kernel modules, the Linux header files are needed (for ABI compatibility and so on).
5. Those Linux header files are usually provided by an Ubuntu package, using the naming scheme `linux-headers-<version+variant>`, `5.15.0-67-generic` for this Ubuntu system.
6. `apt` can not find an Ubuntu package under that name _on that system_, hence the Parallel Tools update step fails.

That Linux headers package is available for Ubuntu `jammy` (which codename is for Ubuntu `22.04` LTS):

> **[Ubuntu – Details of package linux-headers-5.15.0-73-generic in jammy](https://packages.ubuntu.com/jammy/linux-headers-5.15.0-73-generic)**
>
> Linux kernel headers for version 5.15.0 on 64 bit x86 SMP

The package is under `security`, so the sources on that Ubuntu system should contain the `security` repository. Here is the list of repositories for Ubuntu `22.04`:  
[https://wiki.ubuntuusers.de/sources.list/#Ubuntu-22-04](https://wiki.ubuntuusers.de/sources.list/#Ubuntu-22-04)

```
deb http://de.archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
```

So you can manually SSH into the Vagrant box with that issue and check for yourself whether that source is in there and is picked up by `apt`.

Alternatively, you could try to skip the Parallels Tool update step until the underlying issue has been addressed, it may still work fine.

Edit: Trellis (recent `v121.0`) uses `arm64` arch for Apple Silicon:  
[https://github.com/roots/trellis/blob/02cfc360911c545611d624c01ce4d97f197c6d00/Vagrantfile#L26](https://github.com/roots/trellis/blob/02cfc360911c545611d624c01ce4d97f197c6d00/Vagrantfile#L26)  
The `linux-headers-5.15.0-73-generic` package is only listed for arch `amd64`, this may be the underlying issue.

There are Linux header packages for more than only this particular Linux kernel version ([https://packages.ubuntu.com/jammy/devel/](https://packages.ubuntu.com/jammy/devel/)).  
The `linux-headers-5.15.0-25-generic` (so for kernel version `5.15.0-73`, not for kernel version `5.15.0-73` the Ubuntu system in your setup is using right now) package is also available for `arm64`:  
[https://packages.ubuntu.com/jammy/devel/linux-headers-5.15.0-25-generic](https://packages.ubuntu.com/jammy/devel/linux-headers-5.15.0-25-generic)

Can you update the kernel in your Ubuntu VM to `5.15.0-73`, does it work then?  
This, of course, is based on the assumption that you are using macOS on Apple Silicon (as M1 or M2 hardware). macOS `13.4` can also run on non-Apple Silicon (Intel) as [by the official compatible hardware list](https://support.apple.com/en-us/HT213264).

---

## Post 3 by @MWDelaney — 2023-06-08T13:57:20Z

If it’s interesting, I’m having this issue on new Trellis installs on an M1 Mac as well. For now I’m bumping this line down to 20.04 to get around it.

> <https://github.com/roots/trellis/blob/5642f8658dc8463a8b2aa6c65fdb7f2bb427cbe0/vagrant.default.yml#L5>

---

## Post 4 by @artshostak — 2023-06-23T19:21:00Z

Having the same issue, would love to see what workarounds we have for 22.04 but for now just using the same tactic as @MWDelaney to use 20.04 instead.

---

## Post 5 by @ben — 2023-06-24T19:35:26Z

Tracking the bug here: [https://github.com/roots/trellis/issues/1495](https://github.com/roots/trellis/issues/1495)

---

## Post 6 by @swalkinshaw — 2023-06-25T19:56:53Z

Can someone try changing this line to `false` and see if it avoids the issue?

> <https://github.com/roots/trellis/blob/c9f4dd918cb0a708b298c506785b09c7e0e80e3a/Vagrantfile#L195>

If it does “work”, I’m not sure what the downside is to having outdated guest tools.

---

## Post 7 by @Twansparant — 2023-07-10T18:53:23Z

Setting `update_guest_tools` to `false` fixes it for me!

---

## Post 8 by @artshostak — 2023-10-11T00:14:53Z

Thanks Scott, confirming this appears to be working now on a clean install using Parallels v19.  
Guess we will have to just find out if there is an issue with not updating guest tools.
