我尝试过更新内核吗?

我尝试过更新内核吗?

我尝试更新我的 Ubuntu 20.04 内核,但似乎发现了这些最新错误。解决方案是什么?

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:
  linux-modules-extra-5.4.0-33-generic
The following NEW packages will be installed:
  linux-modules-extra-5.4.0-33-generic
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:
 /var/cache/apt/archives/linux-modules-extra-5.4.0-33-generic_5.4.0-33.37_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)
frederick@frederickpina:~$ 

答案1

检查所有者并且是 root:root 我甚至运行

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

但错误仍然存​​在...并不总是在同一个文件上,例如我遇到错误:

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:
 /var/cache/apt/archives/linux-modules-extra-5.4.0-33-generic_5.4.0-33.37_amd64.
deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容