[SOLVED] Failure when attempting to update the kernel
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.