I tried to update my Ubuntu 20.04 kernel but seemed to have found myself with these latest errors. What's the solution?

frederick@frederickpina:~$ sudo apt-get install -f
[sudo] password for frederick: 
Reading package lists... Done
Building dependency tree  
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 0 B/38.5 MB of archives.
After this operation, 189 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 265633 files and directories currently installed.)
Preparing to unpack .../linux-modules-extra-5.4.0-33-generic_5.4.0-33.37_amd64.deb ...
Unpacking linux-modules-extra-5.4.0-33-generic (5.4.0-33.37) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-extra-5.4.0-33-generic_5.4.0-33.37_amd64.deb (--unpack):
 unable to open '/lib/modules/5.4.0-33-generic/kernel/drivers/media/usb/gspca/gspca_conex.ko.dpkg-new': Operation not permitted

Errors were encountered while processing:

E: Sub-process /usr/bin/dpkg returned an error code (1)
  • 1
    Check all directories along the path /lib/modules/5.4.0-33-generic/kernel/drivers/media/usb/gspca/. They should all be owned by root:root and writable by root only. – Jos Jun 2 at 13:02

cheked the owner and is root:root i even run the

sudo chown -R root:root /lib/modules/5.4.0-33-generic/*

but the error remains... is not always on the same file, for example i have error on:

dpkg: error al procesar el archivo /var/cache/apt/archives/linux-modules-extra-5
.4.0-33-generic_5.4.0-33.37_amd64.deb (--unpack):
 no se puede abrir `/lib/modules/5.4.0-33-generic/kernel/drivers/net/ethernet/ql
ogic/qlcnic/qlcnic.ko.dpkg-new': Operación no permitida
Se encontraron errores al procesar:
E: Sub-process /usr/bin/dpkg returned an error code (1)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.