VirtualBox stopped working after Kernel Update - Linux Headers issue?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
machek

VirtualBox stopped working after Kernel Update - Linux Headers issue?

Post by machek »

VirtualBox stopped working after Kernel Update,
there seems to be problem with linux-headers, when I try to reinstall everything, I am stuck on

Code: Select all

 sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  linux-headers-3.13.0-139
The following NEW packages will be installed
  linux-headers-3.13.0-139 linux-headers-3.13.0-139-generic
0 to upgrade, 2 to newly install, 0 to remove and 1 not to upgrade.
Need to get 9,604 kB of archives.
After this operation, 77.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-3.13.0-139 all 3.13.0-139.188 [8,906 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-3.13.0-139-generic amd64 3.13.0-139.188 [697 kB]
Fetched 9,604 kB in 2s (3,336 kB/s)                       
Selecting previously unselected package linux-headers-3.13.0-139.
(Reading database ... 209420 files and directories currently installed.)
Preparing to unpack .../linux-headers-3.13.0-139_3.13.0-139.188_all.deb ...
Unpacking linux-headers-3.13.0-139 (3.13.0-139.188) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-3.13.0-139_3.13.0-139.188_all.deb (--unpack):
 unable to open '/usr/src/linux-headers-3.13.0-139/arch/mips/include/asm/abi.h.dpkg-new': Operation not permitted
Selecting previously unselected package linux-headers-3.13.0-139-generic.
Preparing to unpack .../linux-headers-3.13.0-139-generic_3.13.0-139.188_amd64.deb ...
Unpacking linux-headers-3.13.0-139-generic (3.13.0-139.188) ...
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-3.13.0-139_3.13.0-139.188_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Code: Select all

apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  linux-headers-3.13.0-139
The following NEW packages will be installed
  linux-headers-3.13.0-139
0 to upgrade, 1 to newly install, 0 to remove and 1 not to upgrade.
1 not fully installed or removed.
Need to get 0 B/8,906 kB of archives.
After this operation, 63.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 219001 files and directories currently installed.)
Preparing to unpack .../linux-headers-3.13.0-139_3.13.0-139.188_all.deb ...
Unpacking linux-headers-3.13.0-139 (3.13.0-139.188) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-3.13.0-139_3.13.0-139.188_all.deb (--unpack):
 unable to open '/usr/src/linux-headers-3.13.0-139/include/linux/lockd/share.h.dpkg-new': Operation not permitted
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-3.13.0-139_3.13.0-139.188_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
JerryF
Level 16
Level 16
Posts: 6571
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: VirtualBox stopped working after Kernel Update - Linux Headers issue?

Post by JerryF »

Try running the second command apt-get install -f as [b]sudo[/b] apt-get install -f
machek

Re: VirtualBox stopped working after Kernel Update - Linux Headers issue?

Post by machek »

I did, no luck. I had to use aptitude to remove specific version of linux-headers to unbrake it.
Then Kernel 4.4 update appeared which cocked up everything.
It looks kernel updates on Mint 17.3 Rosa didn't go well.
I am back on 3.13.0-37-generic as only reliable option for now :-(
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: VirtualBox stopped working after Kernel Update - Linux Headers issue?

Post by smurphos »

What version of virtualbox is in the 17.x repos - is it 4.3.36?

Similar issues are experienced in Mint 18.x. The virtualbox in the 18.x repos is 5.0.40 and works with kernel 4.4, but not with 4.13. The advice to Mint 18 users on kernel 4.13 is to install the current virtualbox directly from Oracle - it no longer relies on DKMS - https://www.virtualbox.org/wiki/Linux_Downloads

You'd need the 'Trusty' build for Mint 17.x
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Locked

Return to “Software & Applications”