You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
$ sudo dkms status
anbox-modules-ashmem, 10.1~20180523.2.xenial.c36965f, 4.13.0-43-generic, x86_64: installed
anbox-modules-ashmem, 10.1~20180523.2.xenial.c36965f, 4.13.0-45-generic, x86_64: installed
anbox-modules-ashmem, 10.1~20180523.2.xenial.c36965f, 4.15.0-24-generic, x86_64: installedError! Could not locate dkms.conf file.
File: does not exist.
anbox-modules-ashmem, 10.1~20180523.2.xenial.c36965f, 4.4.0-128-generic, x86_64: installed
During a kernel upgrade, broken dkms prevented other dkms I depend on (nvidia driver) from building: sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04 linux-tools-generic-hwe-16.04:
Selecting previously unselected package linux-modules-4.15.0-24-generic.
Preparing to unpack .../linux-modules-4.15.0-24-generic_4.15.0-24.26~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Selecting previously unselected package linux-image-4.15.0-24-generic.
Preparing to unpack .../linux-image-4.15.0-24-generic_4.15.0-24.26~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Selecting previously unselected package linux-modules-extra-4.15.0-24-generic.
Preparing to unpack .../linux-modules-extra-4.15.0-24-generic_4.15.0-24.26~16.04.1_amd64.deb ...
Unpacking linux-modules-extra-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Preparing to unpack .../linux-image-generic-hwe-16.04_4.15.0.24.46_amd64.deb ...
Unpacking linux-image-generic-hwe-16.04 (4.15.0.24.46) over (4.13.0.45.64) ...
Selecting previously unselected package linux-headers-4.15.0-24.
Preparing to unpack .../linux-headers-4.15.0-24_4.15.0-24.26~16.04.1_all.deb ...
Unpacking linux-headers-4.15.0-24 (4.15.0-24.26~16.04.1) ...
Selecting previously unselected package linux-headers-4.15.0-24-generic.
Preparing to unpack .../linux-headers-4.15.0-24-generic_4.15.0-24.26~16.04.1_amd64.deb ...
Unpacking linux-headers-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Preparing to unpack .../linux-headers-generic-hwe-16.04_4.15.0.24.46_amd64.deb ...
Unpacking linux-headers-generic-hwe-16.04 (4.15.0.24.46) over (4.13.0.45.64) ...
Selecting previously unselected package linux-generic-hwe-16.04.
Preparing to unpack .../linux-generic-hwe-16.04_4.15.0.24.46_amd64.deb ...
Unpacking linux-generic-hwe-16.04 (4.15.0.24.46) ...
Selecting previously unselected package linux-hwe-tools-4.15.0-24.
Preparing to unpack .../linux-hwe-tools-4.15.0-24_4.15.0-24.26~16.04.1_amd64.deb ...
Unpacking linux-hwe-tools-4.15.0-24 (4.15.0-24.26~16.04.1) ...
Selecting previously unselected package linux-tools-4.15.0-24-generic.
Preparing to unpack .../linux-tools-4.15.0-24-generic_4.15.0-24.26~16.04.1_amd64.deb ...
Unpacking linux-tools-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Selecting previously unselected package linux-tools-generic-hwe-16.04.
Preparing to unpack .../linux-tools-generic-hwe-16.04_4.15.0.24.46_amd64.deb ...
Unpacking linux-tools-generic-hwe-16.04 (4.15.0.24.46) ...
Setting up linux-modules-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Setting up linux-image-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.13.0-45-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-4.13.0-45-generic
I: /vmlinuz is now a symlink to boot/vmlinuz-4.15.0-24-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.15.0-24-generic
Setting up linux-modules-extra-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Setting up linux-image-generic-hwe-16.04 (4.15.0.24.46) ...
Setting up linux-headers-4.15.0-24 (4.15.0-24.26~16.04.1) ...
Setting up linux-headers-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
/etc/kernel/header_postinst.d/dkms:
Error! Could not locate dkms.conf file.
File: does not exist.
Setting up linux-headers-generic-hwe-16.04 (4.15.0.24.46) ...
Setting up linux-generic-hwe-16.04 (4.15.0.24.46) ...
Setting up linux-hwe-tools-4.15.0-24 (4.15.0-24.26~16.04.1) ...
Setting up linux-tools-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
Setting up linux-tools-generic-hwe-16.04 (4.15.0.24.46) ...
Processing triggers for linux-image-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
/etc/kernel/postinst.d/dkms:
Error! Could not locate dkms.conf file.
File: does not exist.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-24-generic
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Adding boot menu entry for EFI firmware configuration
done
Two dkms hooks /etc/kernel/header_postinst.d/dkms and /etc/kernel/postinst.d/dkms failed with the same output as dkms status from above:
Error! Could not locate dkms.conf file.
File: does not exist.
Workaround:
WARNING: This workaround comes with NO WARRANTY. YMMV. Some of these commands may render your system unbootable.
$ sudo find /var/lib/dkms/anbox-* -xtype l -delete
dkms status should work now.
Now, re-run the dkms portions of the kernel upgrade. This can take some time...
$ sudo dpkg-reconfigure linux-headers-4.15.0-24-generic linux-image-4.15.0-24-generic
Processing triggers for linux-image-4.15.0-24-generic (4.15.0-24.26~16.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-24-generic
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.15.0-24-generic
Found initrd image: /boot/initrd.img-4.15.0-24-generic
Found linux image: /boot/vmlinuz-4.13.0-45-generic
Found initrd image: /boot/initrd.img-4.13.0-45-generic
Found linux image: /boot/vmlinuz-4.13.0-43-generic
Found initrd image: /boot/initrd.img-4.13.0-43-generic
Found linux image: /boot/vmlinuz-4.13.0-41-generic
Found initrd image: /boot/initrd.img-4.13.0-41-generic
Adding boot menu entry for EFI firmware configuration
done
dkms status should have entries for both running and target kernel.
running: 4.13.0-45-generic
target: 4.15.0-24-generic
What were you expecting?:
Working kernel upgrades.
If anbox packaging controls this, during upgrade, please remove the old version from dkms before removing the old source directory (in this case /usr/src/anbox-modules-ashmem-9~xenial1).
@bwerthmann maybe you can purge all the old things, like /var/lib/dkms/anbox-*, /usr/src/anbox-*, lib/modules/*/dkms/{binder,ashmem}_linux.ko. Then do a fresh install with the newest version from ppa.
@morphis have you uploaded new version to ppa? The main difference from the master is, I combined binder and ashmem into one dkms module, and removed magic hacks in debian/post*
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please describe your problem:
Relates to: #547
anbox left a broken symlink in
/var/lib/dkms/
for version9~xenial1
:This wedges dkms:
During a kernel upgrade, broken dkms prevented other dkms I depend on (nvidia driver) from building:
sudo apt-get install --install-recommends linux-generic-hwe-16.04 xserver-xorg-hwe-16.04 linux-tools-generic-hwe-16.04
:Two dkms hooks
/etc/kernel/header_postinst.d/dkms
and/etc/kernel/postinst.d/dkms
failed with the same output asdkms status
from above:Workaround:
WARNING: This workaround comes with NO WARRANTY. YMMV. Some of these commands may render your system unbootable.
Remove my broken symlinks:
Last command produces more broken symlinks:
Clean these up with:
dkms status
should work now.Now, re-run the dkms portions of the kernel upgrade. This can take some time...
dkms status
should have entries for both running and target kernel.running:
4.13.0-45-generic
target:
4.15.0-24-generic
What were you expecting?:
Working kernel upgrades.
If anbox packaging controls this, during upgrade, please remove the old version from dkms before removing the old source directory (in this case
/usr/src/anbox-modules-ashmem-9~xenial1
).There's an upstream bug for this general problem:
https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/830915
In either case, I assume other people will run into this bug so I thought it should be documented here.
Additional info:
The text was updated successfully, but these errors were encountered: