LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2017, 12:35 PM   #1
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Rep: Reputation: Disabled
Failure when attempting to update the kernel


I never had a problem before, including the same OS (Linux Mint 18) on other computers. This is after a fresh install on a Lenovo Thinkpad T470. I am trying to update from kernel 4.10.0-32 to 4.10.0-35. My configuration is that I have Centos 7 installed on partitions 1 & 2 (GRUB here is used to select OS), and Linux Mint 18 installed on partition 4. Windows is out of the picture installed on a separate hard drive. Uninstalling the kernel and cleaning the update caches/etc. and then reinstalling the kernel results in the same error. Running various broken link or other fixes within the update Manager or from within apt does not solve the problem. I have also tried installing from both the Update Manager as well as apt from the command line. Regular non-kernel updates work fine, and the OS works fine as well.

The following is the kernel install attempt messages and error messages:

Code:
Selecting previouslyunselected package linux-headers-4.10.0-35.
(Reading database... 235675 files and directories currently installed.)
Preparing to unpack.../linux-headers-4.10.0-35_4.10.0-35.39~16.04.1_all.deb ...
Unpackinglinux-headers-4.10.0-35 (4.10.0-35.39~16.04.1) ...
dpkg: errorprocessing archive/var/cache/apt/archives/linux-headers-4.10.0-35_4.10.0-35.39~16.04.1_all.deb(--unpack):
 unable to open'/usr/src/linux-headers-4.10.0-35/arch/score/kernel/Makefile.dpkg-new':Operation not permitted
Selecting previouslyunselected package linux-headers-4.10.0-35-generic.
Preparing to unpack.../linux-headers-4.10.0-35-generic_4.10.0-35.39~16.04.1_amd64.deb...
Unpackinglinux-headers-4.10.0-35-generic (4.10.0-35.39~16.04.1) ...
Selecting previouslyunselected package linux-image-4.10.0-35-generic.
Preparing to unpack.../linux-image-4.10.0-35-generic_4.10.0-35.39~16.04.1_amd64.deb ...
Done.
Unpackinglinux-image-4.10.0-35-generic (4.10.0-35.39~16.04.1) ...
dpkg: errorprocessing archive/var/cache/apt/archives/linux-image-4.10.0-35-generic_4.10.0-35.39~16.04.1_amd64.deb(--unpack):
 unable to createnew file '/var/lib/dpkg/info/linux-image-4.10.0-35-generic.list-new':Operation not permitted
Selecting previouslyunselected package linux-image-extra-4.10.0-35-generic.
Preparing to unpack.../linux-image-extra-4.10.0-35-generic_4.10.0-35.39~16.04.1_amd64.deb...
Unpackinglinux-image-extra-4.10.0-35-generic (4.10.0-35.39~16.04.1) ...
dpkg: errorprocessing archive/var/cache/apt/archives/linux-image-extra-4.10.0-35-generic_4.10.0-35.39~16.04.1_amd64.deb(--unpack):
 unable to open'/lib/modules/4.10.0-35-generic/kernel/drivers/gpu/drm/virtio/virtio-gpu.ko.dpkg-new':Operation not permitted
Errors wereencountered while processing:
/var/cache/apt/archives/linux-headers-4.10.0-35_4.10.0-35.39~16.04.1_all.deb
/var/cache/apt/archives/linux-image-4.10.0-35-generic_4.10.0-35.39~16.04.1_amd64.deb
/var/cache/apt/archives/linux-image-extra-4.10.0-35-generic_4.10.0-35.39~16.04.1_amd64.deb
E: Sub-process/usr/bin/dpkg returned an error code (1)
A package failed toinstall.  Trying to recover:
dpkg: dependencyproblems prevent configuration of linux-headers-4.10.0-35-generic:
linux-headers-4.10.0-35-generic depends on linux-headers-4.10.0-35;however:
  Packagelinux-headers-4.10.0-35 is not installed.


dpkg: errorprocessing package linux-headers-4.10.0-35-generic (--configure):
 dependency problems- leaving unconfigured

Last edited by pjc123; 09-28-2017 at 12:45 PM.
 
Old 09-28-2017, 01:33 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Just guessing, out of inodes perhaps?
 
Old 09-28-2017, 03:51 PM   #3
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Just guessing, out of inodes perhaps?
It is a brand new install. In any event I checked and it is at only 10% usage.
 
Old 09-28-2017, 05:25 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,770

Rep: Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571
Quote:
Operation not permitted
Presuming you are manually doing this through the terminal, use sudo.
 
Old 09-28-2017, 05:43 PM   #5
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Presuming you are manually doing this through the terminal, use sudo.
No, I did not do the update manually (If you meant the command line). Those messages are from the details screen of the Update Manager program.
 
Old 09-28-2017, 05:51 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,770

Rep: Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571
Hmmm - let me check the logs on another machine. I did a selective kernel update on someone elses' machine a few days back.
 
Old 09-28-2017, 08:02 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,770

Rep: Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571
Can't see anything odd in the logs. But the system in question has zero files containing dpkg-new - I don't know enough about apt/dpkg, but I'm guessing temporary filename until install.
Everything under /usr/src/... are owned root:root - with the Makefile (note, not Makefile.dpkg-new) world readable, and writable by root.

Hopefully somebody with more apt knowledge will be able to help.
 
Old 09-28-2017, 10:22 PM   #8
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
I fear I am going to have to reinstall everything. Maybe the install is corrupted for some reason (I did do a crc check on the download), or Mint doesn't like my hardware. I dread reinstalling all my programs and changing settings everywhere again, but oh well.
 
Old 09-28-2017, 10:51 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,770

Rep: Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571
Create a /home partition and copy everything over. Select that during install as /home and don't format it. Create the same users and passwords (optional).
You'll have to re-install the packages, but they'll come up customised as at present.
 
Old 09-29-2017, 07:38 AM   #10
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
SOLVED: Found a post with the identical error. Sophos Anti-Virus was preventing the install of the new kernel so I removed it.
 
1 members found this post helpful.
Old 09-29-2017, 05:20 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,770

Rep: Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571
Ugh.
But you gotta expect things like that if you run anti-virus I guess.
 
Old 09-29-2017, 05:51 PM   #12
pjc123
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
I run Sophus on 4 other different distros without an issue. So, I switched to Clam o n Linux Mint. Linux is becoming more and more a target, but my main reason is that I often transfer files to/from Windows computers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIOS bug 8254 and fast TSC failure when attempting to boot Centos vm adaam94 Linux - Newbie 1 07-19-2015 06:06 PM
Unable to access CentOS setup Network Configuration after attempting Python update crmpicco Linux - Networking 1 06-28-2014 02:25 AM
Boot failure after kernel update jasonasks Linux - Kernel 1 03-28-2013 09:56 AM
[SOLVED] How do I update using Update Manager when there is a failure to download packages? oldminer90 Linux - Newbie 5 11-11-2012 09:12 PM
Boot failure after RHSA-2008:0519-24 kernel update JonathanPool Red Hat 7 07-10-2008 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration