Ошибка linux firmware


0

1

Приветствую всех. Проблема в следующем: Стоит xubuntu 18.04. Сейчас вышла новая (20.04). При попытке ввести команду «sudo apt update && sudo apt dist-upgrade» терминал «кричит»: «dpkg: ошибка при обработке пакета linux-firmware (—configure):
пакет абсолютно неработоспособен; перед настройкой его
следует переустановить
Обрабатываются триггеры для man-db (2.8.3-2ubuntu0.1) …
При обработке следующих пакетов произошли ошибки:
linux-firmware
E: Sub-process /usr/bin/dpkg returned an error code (1)
»
На что он именно жалуется и как обновится мне дальше до новой версии

PS: Я начинающий в этом деле, так что палками прошу не кидать

I upgraded from 18.04 to Ubuntu 20.04.1 but get a firmware error how can I fix this?

I tried: sudo dpkg —configure -a

rt@sys76:~$ sudo dpkg --configure -a

dpkg: error processing package linux-firmware (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-firmware
 linux-image-generic

I also tried sudo apt-get install -f

rt@sys76:~$ sudo apt-get install -f


dpkg: error processing package linux-firmware (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 linux-firmware
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

I also tried sudo apt-get install -y linux-firmware

rt@sys76:~$ sudo apt-get install -y linux-firmware

    2 not fully installed or removed.
    Need to get 0 B/98.9 MB of archives.
    After this operation, 0 B of additional disk space will be used.
    dpkg: error processing package linux-firmware (--configure):
     package is in a very bad inconsistent state; you should
     reinstall it before attempting configuration
    No apport report written because the error message indicates its a followup error from a previous failure.
                              dpkg: dependency problems prevent configuration of linux-image-generic:
     linux-image-generic depends on linux-firmware; however:
      Package linux-firmware is not configured yet.
    
    dpkg: error processing package linux-image-generic (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     linux-firmware
     linux-image-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

Also tried: sudo apt —fix-broken install

rt@sys76:~$ sudo apt --fix-broken install

Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0 B/98.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package linux-firmware (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          dpkg: dependency problems prevent configuration of lin
ux-image-generic:
 linux-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-firmware
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Also tried: sudo apt-get dist-upgrade

rt@sys76:~$ sudo apt-get dist-upgrade

Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/98.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: error processing package linux-firmware (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
No apport report written because the error message indicates its a followup error from a previous failure.
                          dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-firmware
 linux-image-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Some Info:

rt@sys76:~$ uname -a
Linux sys76 5.4.0-48-generic #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
rt@sys76:~$




rt@sys76:~$ ls -lh /lib/modules
total 236K
drwxr-xr-x 2 root root 4.0K Jan 23  2018 4.10.0-42-generic
drwxr-xr-x 2 root root 4.0K Jun 29 10:36 4.15.0-101-generic
drwxr-xr-x 2 root root 4.0K Jul  2 00:22 4.15.0-106-generic
drwxr-xr-x 2 root root 4.0K Jul 13 23:18 4.15.0-108-generic
drwxr-xr-x 2 root root 4.0K Jul 23 03:40 4.15.0-109-generic
drwxr-xr-x 2 root root 4.0K Sep  2 12:10 4.15.0-111-generic
drwxr-xr-x 2 root root 4.0K Sep  8 09:50 4.15.0-112-generic
drwxr-xr-x 2 root root 4.0K Sep 21 16:47 4.15.0-115-generic
drwxr-xr-x 2 root root 4.0K Sep 30 09:32 4.15.0-117-generic
drwxr-xr-x 5 root root 4.0K Sep 21 10:27 4.15.0-118-generic
drwxr-xr-x 2 root root 4.0K Jun 11  2018 4.15.0-20-generic
drwxr-xr-x 2 root root 4.0K Jul  2  2018 4.15.0-22-generic
drwxr-xr-x 2 root root 4.0K Jul 21  2018 4.15.0-23-generic
drwxr-xr-x 2 root root 4.0K Aug  7  2018 4.15.0-24-generic
drwxr-xr-x 3 root root 4.0K Sep  5  2018 4.15.0-29-generic
drwxr-xr-x 2 root root 4.0K Aug 24  2018 4.15.0-30-generic
drwxr-xr-x 2 root root 4.0K Sep 10  2018 4.15.0-32-generic
drwxr-xr-x 3 root root 4.0K Oct  2  2018 4.15.0-33-generic
drwxr-xr-x 3 root root 4.0K Oct 23  2018 4.15.0-34-generic
drwxr-xr-x 3 root root 4.0K Nov 14  2018 4.15.0-36-generic
drwxr-xr-x 3 root root 4.0K Dec 21  2018 4.15.0-38-generic
drwxr-xr-x 2 root root 4.0K Dec 20  2018 4.15.0-39-generic
drwxr-xr-x 2 root root 4.0K Jan 29  2019 4.15.0-42-generic
drwxr-xr-x 3 root root 4.0K Jan 31  2019 4.15.0-43-generic
drwxr-xr-x 3 root root 4.0K Mar  6  2019 4.15.0-44-generic
drwxr-xr-x 3 root root 4.0K Apr  4  2019 4.15.0-45-generic
drwxr-xr-x 2 root root 4.0K Apr 25  2019 4.15.0-46-generic
drwxr-xr-x 3 root root 4.0K May 15  2019 4.15.0-47-generic
drwxr-xr-x 3 root root 4.0K Jun  4  2019 4.15.0-48-generic
drwxr-xr-x 3 root root 4.0K May 20 11:30 4.15.0-50-generic
drwxr-xr-x 2 root root 4.0K Jun 28  2019 4.15.0-51-generic
drwxr-xr-x 2 root root 4.0K Jul 25  2019 4.15.0-52-generic
drwxr-xr-x 2 root root 4.0K Aug 14  2019 4.15.0-54-generic
drwxr-xr-x 2 root root 4.0K Sep  3  2019 4.15.0-55-generic
drwxr-xr-x 2 root root 4.0K Sep 10  2019 4.15.0-58-generic
drwxr-xr-x 2 root root 4.0K Sep 18  2019 4.15.0-60-generic
drwxr-xr-x 2 root root 4.0K Oct  1  2019 4.15.0-62-generic
drwxr-xr-x 2 root root 4.0K Oct 22  2019 4.15.0-64-generic
drwxr-xr-x 2 root root 4.0K Nov 13  2019 4.15.0-65-generic
drwxr-xr-x 2 root root 4.0K Nov 15  2019 4.15.0-66-generic
drwxr-xr-x 2 root root 4.0K Dec  2  2019 4.15.0-69-generic
drwxr-xr-x 2 root root 4.0K Jan  7  2020 4.15.0-70-generic
drwxr-xr-x 2 root root 4.0K Jan 28  2020 4.15.0-72-generic
drwxr-xr-x 2 root root 4.0K Feb 17  2020 4.15.0-74-generic
drwxr-xr-x 2 root root 4.0K Mar 17  2020 4.15.0-76-generic
drwxr-xr-x 2 root root 4.0K Apr  7 07:49 4.15.0-88-generic
drwxr-xr-x 5 root root 4.0K Mar 16  2020 4.15.0-91-generic
drwxr-xr-x 2 root root 4.0K May 20 04:37 4.15.0-96-generic
drwxr-xr-x 2 root root 4.0K Jun 10 14:52 4.15.0-99-generic
drwxr-xr-x 3 root root 4.0K Mar  7  2018 4.4.111-0404111-generic
drwxr-xr-x 3 root root 4.0K Mar 13  2018 4.4.119-0404119-generic
drwxr-xr-x 3 root root 4.0K Mar 20  2018 4.4.120-0404120-generic
drwxr-xr-x 3 root root 4.0K Mar 27  2018 4.4.121-0404121-generic
drwxr-xr-x 3 root root 4.0K Apr  2  2018 4.4.122-0404122-generic
drwxr-xr-x 6 root root 4.0K Apr 27  2018 4.4.126-0404126-generic
drwxr-xr-x 6 root root 4.0K Apr 27  2018 4.4.127-0404127-generic
drwxr-xr-x 3 root root 4.0K Apr 18  2018 4.4.128-0404128-generic
drwxr-xr-x 3 root root 4.0K Apr 26  2018 4.8.17-040817-generic
drwxr-xr-x 5 root root 4.0K Sep 30 07:44 5.4.0-48-generic


rt@sys76:~$ sudo dpkg -C  
The following packages are in a mess due to serious problems during
installation.  They must be reinstalled for them (and any packages
that depend on them) to function properly:
 linux-firmware       Firmware for Linux kernel drivers

The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 linux-image-generic  Generic Linux kernel image

Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

dblake

[solved] error installing linux-firmware

So sorry to be posting this here, but I have been looking for the last hour how and where to properly report a bug with no success. Lots of requests for users to report bugs but no help actually reporting them.

All the details are in the attached file. While installing Linux kernel 5.3.0.51.104 with the Update Manager, I get an error with the installed linux-firmware package post-installation script. This error causes a couple of subsequent dependency problems.

I would be happy to be educated as to where I should make this post.

Regards,
Dan

Attachments
upgrade_failure.txt
(10.8 KiB) Downloaded 97 times

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

dblake

Re: error installing linux-firmware

Post

by dblake » Thu May 14, 2020 6:41 am

Attached file has the output from inxi -Fxz.

Troubleshooting steps taken:

  1. Read through the install log details looking for clues. Nothing I could understand.
  2. Rebooted machine. Did not resolve error.
  3. Uninstalled linux-firmware, rebooted, and reinstalled linux-firmware. Same issue.
Attachments
inxi-Fxz_output.txt
(2.19 KiB) Downloaded 31 times

gittiest personITW

Level 11
Level 11
Posts: 3825
Joined: Tue May 28, 2019 4:27 pm

Re: error installing linux-firmware

Post

by gittiest personITW » Thu May 14, 2020 6:58 am

Code: Select all

System:
  Host: HP-Pavilion-dv5-250G Kernel: 5.3.0-51-generic x86_64 bits: 64 
  compiler: gcc v: 7.5.0 Desktop: Xfce 4.14.1 Distro: Linux Mint 19.3 Tricia 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: Hewlett-Packard product: HP Pavilion dv5 Notebook PC 
  v: 049B100000243210110020000 serial: <filter> 
  Mobo: Hewlett-Packard model: 1435 v: KBC Version 58.1D serial: <filter> 
  BIOS: Hewlett-Packard v: F.08 date: 05/24/2010 
Battery:
  ID-1: BAT0 charge: 40.5 Wh condition: 41.1/48.8 Wh (84%) 
  model: Hewlett-Packard Primary status: Unknown 
CPU:
  Topology: Dual Core model: Intel Core i3 M 330 bits: 64 type: MT MCP 
  arch: Nehalem rev: 2 L2 cache: 3072 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 17024 
  Speed: 1463 MHz min/max: 933/2133 MHz Core speeds (MHz): 1: 1357 2: 1414 
  3: 1327 4: 1390 
Graphics:
  Device-1: Intel Core Processor Integrated Graphics vendor: Hewlett-Packard 
  driver: i915 v: kernel bus ID: 00:02.0 
  Display: x11 server: X.Org 1.20.5 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1366x768~60Hz 
  OpenGL: renderer: Mesa DRI Intel Ironlake Mobile v: 2.1 Mesa 19.2.8 
  direct render: Yes 
Audio:
  Device-1: Intel 5 Series/3400 Series High Definition Audio 
  vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  Sound Server: ALSA v: k5.3.0-51-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 2000 bus ID: 01:00.0 
  IF: enp1s0 state: down mac: <filter> 
  Device-2: Qualcomm Atheros AR9285 Wireless Network Adapter 
  vendor: Hewlett-Packard U98Z062.12 802.11bgn driver: ath9k v: kernel 
  port: 2000 bus ID: 02:00.0 
  IF: wlp2s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 238.47 GiB used: 10.56 GiB (4.4%) 
  ID-1: /dev/sda vendor: Crucial model: CT256MX100SSD1 size: 238.47 GiB 
Partition:
  ID-1: / size: 233.73 GiB used: 10.56 GiB (4.5%) fs: ext4 dev: /dev/sda1 
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 184 Uptime: 3h 19m Memory: 2.72 GiB used: 1.64 GiB (60.2%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.5.0 Shell: bash v: 4.4.20 
  inxi: 3.0.32 

The inxi output

User avatar

karlchen

Level 22
Level 22
Posts: 17262
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: error installing linux-firmware

Post

by karlchen » Thu May 14, 2020 10:05 am

Hello, dblake.

Based on the error messages, which you had attached to your initial post, the following steps might help solve the problem:

Code: Select all

sudo dpkg --configure linux-generic-hwe-18.04

Provided the commandline above succeeds, the next commandline would be:

Code: Select all

sudo dpkg --configure linux-generic-hwe-18.04

Provided the commandline above succeeds, the next commandline would be:

Code: Select all

sudo dpkg --configure linux-firmware

Hope this will work.

What causes me to be a bit pessimistic whether it will is the name of /boot/initrd.img-n, which occurs in several places in the error messages. There is no file /boot/initrd.img-n on any of my systems. There are files named like this only:
/boot/initrd.img-5.3.0-46-generic
/boot/initrd.img-5.3.0-51-generic

Karl

Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for more than 12 months now.
The Prophet’s Song

dblake

Re: error installing linux-firmware

Post

by dblake » Thu May 14, 2020 4:51 pm

Hello Karl,

Thank you for your response. Your first two commands, which are the same, fail due to their dependency on linux-firmware. Your third command where we try to configure linux-firmware fails due to (I suppose) a corrupted script somewhere. This is and continues to be my initial problem.

I looked in my /boot directory and found the following:

Code: Select all

-rw-r--r-- 1 18089055 May 14 13:20 initrd.img-HP-Pavilion-dv5-250G
-rw-r--r-- 1 18088789 May 14 13:20 initrd.img-m:
-rw-r--r-- 1 18088682 May 14 13:20 initrd.img-n:
-rw-r--r-- 1 18088803 May 14 13:20 initrd.img-o:
-rw-r--r-- 1 18088947 May 14 13:20 initrd.img-x86_64

I deleted them and reran

Code: Select all

sudo dpkg --configure linux-firmware

and surprise! they all came back.

—Dan

User avatar

karlchen

Level 22
Level 22
Posts: 17262
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: error installing linux-firmware

Post

by karlchen » Thu May 14, 2020 5:46 pm

Hello, Dan.

Giving the same «dpkg —configure» commandline twice happened due to a copy-and-paste error on my side. So my mistake.
But very likely it would not have worked anyway.
The initrd.img-* filename all look terribly wrong. The fact that they came back suggests that something must be fundamentally wrong somewhere. Some configuration file, used by mkinitramfs very likely.
No good idea what precisely, though, at the moment. :oops:

Can you post the complete /boot directory listing, please. Command: ls -l /boot

Best regards,
Karl

Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for more than 12 months now.
The Prophet’s Song

dblake

Re: error installing linux-firmware

Post

by dblake » Thu May 14, 2020 6:04 pm

Code: Select all

[/boot] $ ls -l
total 329072
-rw-r--r-- 1 root root   224447 Oct 10  2019 config-5.0.0-32-generic
-rw-r--r-- 1 root root   235851 Mar 30 19:40 config-5.3.0-46-generic
-rw-r--r-- 1 root root   235851 Apr 23 05:32 config-5.3.0-51-generic
drwxr-xr-x 6 root root     4096 Apr 30 15:16 grub
-rw-r--r-- 1 root root 66907993 Apr 25 23:42 initrd.img-5.0.0-32-generic
-rw-r--r-- 1 root root 68985845 Apr 25 23:44 initrd.img-5.3.0-46-generic
-rw-r--r-- 1 root root 68996552 Apr 30 15:16 initrd.img-5.3.0-51-generic
-rw-r--r-- 1 root root 18089117 May 14 14:51 initrd.img-HP-Pavilion-dv5-250G
-rw-r--r-- 1 root root 18088845 May 14 14:52 initrd.img-m:
-rw-r--r-- 1 root root 18089211 May 14 14:51 initrd.img-n:
-rw-r--r-- 1 root root 18089006 May 14 14:52 initrd.img-o:
-rw-r--r-- 1 root root 18089052 May 14 14:52 initrd.img-x86_64
-rw-r--r-- 1 root root   182704 Jan 28  2016 memtest86+.bin
-rw-r--r-- 1 root root   184380 Jan 28  2016 memtest86+.elf
-rw-r--r-- 1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin
-rw------- 1 root root  4295198 Oct 10  2019 System.map-5.0.0-32-generic
-rw------- 1 root root  4486110 Mar 30 19:40 System.map-5.3.0-46-generic
-rw------- 1 root root  4488286 Apr 23 05:32 System.map-5.3.0-51-generic
-rw-r--r-- 1 root root  8769272 Dec 13 05:23 vmlinuz-5.0.0-32-generic
-rw------- 1 root root  9146616 Mar 30 19:43 vmlinuz-5.3.0-46-generic
-rw------- 1 root root  9150712 Apr 23 12:08 vmlinuz-5.3.0-51-generic
[/boot] $

dblake

Re: error installing linux-firmware

Post

by dblake » Thu May 14, 2020 6:34 pm

Code: Select all

$ ls -l /var/lib/initramfs-tools
total 32
-rw-r--r-- 1 root root 76 Apr 25 23:42 5.0.0-32-generic
-rw-r--r-- 1 root root 76 Apr 25 23:44 5.3.0-46-generic
-rw-r--r-- 1 root root 76 Apr 30 15:16 5.3.0-51-generic
-rw-r--r-- 1 root root 80 May 14 14:51 HP-Pavilion-dv5-250G
-rw-r--r-- 1 root root 62 May 14 14:52 m:
-rw-r--r-- 1 root root 62 May 14 14:51 n:
-rw-r--r-- 1 root root 62 May 14 14:52 o:
-rw-r--r-- 1 root root 66 May 14 14:52 x86_64
$

User avatar

thx-1138

Level 8
Level 8
Posts: 2096
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: error installing linux-firmware

Post

by thx-1138 » Thu May 14, 2020 6:38 pm

Remove the irrelevant entries from there (…HP-Pavilion-dv5-250G, m, n, o, x86_64),
and see if karl’s instructions get the trick done afterwards…

dblake

Re: error installing linux-firmware

Post

by dblake » Thu May 14, 2020 7:14 pm

No. The removed files came back, and the process failed as before.

Code: Select all

  .
  .
  .
dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic-hwe-18.04:
 linux-image-generic-hwe-18.04 depends on linux-firmware; however:
  Package linux-firmware is not configured yet.

dpkg: error processing package linux-image-generic-hwe-18.04 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:
 linux-generic-hwe-18.04 depends on linux-image-generic-hwe-18.04 (= 5.3.0.51.104); however:
  Package linux-image-generic-hwe-18.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-18.04 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-firmware
 linux-image-generic-hwe-18.04
 linux-generic-hwe-18.04
E: Sub-process /usr/bin/dpkg returned an error code (1)

User avatar

thx-1138

Level 8
Level 8
Posts: 2096
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: error installing linux-firmware

Post

by thx-1138 » Fri May 15, 2020 3:28 pm

Thing is, the only thing linux-firmware does when being installed, is to run update-initramfs for all kernels.
Hence why removing / reinstalling such had no effect.
But i can’t really figure out of what else mkinitramfs might be sourcing there & generating those junk entries.
Any similar irrelevant entries under ls /lib/modules/? Aside that, i’m afraid i can’t make any other educated guesses…

rene

Level 20
Level 20
Posts: 12087
Joined: Sun Mar 27, 2016 6:58 pm

Re: error installing linux-firmware

Post

by rene » Fri May 15, 2020 3:56 pm

Also, did you install a weird shell as /bin/sh? You have a very confusing mix of «x» vs «output of uname -x» there as in «HP-Pavilion-dv5-250G» (uname -n), «m» (the switch to have uname -m say «x86_64»), «n» (see first…), «o» (uname -o says GNU/Linux), «x86_64» (see second…). As in, err, what?

dblake

Re: error installing linux-firmware

Post

by dblake » Sat May 16, 2020 12:42 am

thx-1138 wrote: ⤴Fri May 15, 2020 3:28 pm
Any similar irrelevant entries under ls /lib/modules/?

No, nothing odd in /lib/modules/

Code: Select all

[/lib/modules] $ ls -o
total 12
drwxr-xr-x 5 root 4096 Dec 13 05:09 5.0.0-32-generic
drwxr-xr-x 5 root 4096 Apr 25 23:42 5.3.0-46-generic
drwxr-xr-x 5 root 4096 Apr 30 15:15 5.3.0-51-generic
[/lib/modules] $

dblake

Re: error installing linux-firmware

Post

by dblake » Sat May 16, 2020 12:50 am

rene wrote: ⤴Fri May 15, 2020 3:56 pm
Also, did you install a weird shell as /bin/sh? You have a very confusing mix of «x» vs «output of uname -x» there as in «HP-Pavilion-dv5-250G» (uname -n), «m» (the switch to have uname -m say «x86_64»), «n» (see first…), «o» (uname -o says GNU/Linux), «x86_64» (see second…). As in, err, what?

Oh, I wish it were that simple. No, nothing I can think of. The only thing that came to mind when I saw that «confusing mix» was that I define the following alias in my .bashrc file.
alias un='for a in n m o s r v ;do printf "$a: " ; uname -$a ;done'
I removed the alias just in case that was the issue, but the problem persisted.

rene

Level 20
Level 20
Posts: 12087
Joined: Sun Mar 27, 2016 6:58 pm

Re: error installing linux-firmware

Post

by rene » Sat May 16, 2020 7:57 am

Well… that’s still incredibly unlikely to not be related. I noticed that strange uname display at the top of your upgrade_failure.txt report but semi-shrugged it off as «probably normal» but this is then saying that you were executing this in an environment with the alias active. Can only recommend to remove it from wherever you added that alias and reboot, or if added just to e.g. ~/.bashrc, at least open a new terminal and make vewyvewy sure that the alias is not active by simply executing uname before you try and reproduce the issue — for which I do believe that indeed you do still also want to first clean up /var/lib/initramfs-tools/ as previously advised.

[EDIT] Last one, I promise: Yes, the alias is un anyway and yes, you already specified «just ~/.bashrc». Reading and thinking at the same time don’t always work…

[EDIT] Looking at said upgrade_failure,txt again I now see that was a manual edit your-sides, but still. Your issue is utterly inexplicable without a weird /bin/sh or weird configured environment for /bin/sh so, still, can’t imagine this not being related.

[EDIT] Can not reproduce with that exact alias in place either so, frankly, not a clue.

rene

Level 20
Level 20
Posts: 12087
Joined: Sun Mar 27, 2016 6:58 pm

Re: error installing linux-firmware

Post

by rene » Sat May 16, 2020 9:57 am

Again not adding much but I was tracing update-initramfs and I can not see how the bogus entries could return to /var/lib/initramfs-tools/ once manually deleted from there. Unfortunately having it be verbose makes it be very verbose but you may wish to, after deleting the bogus entries from /var/lib/initramfs-tools/, look at and/or post the output of sudo update-initramfs -u -k all -v.

Если в grub выбрать загрузку с предыдущим ядром, то wifi есть?

Не могу нагуглить, что надо нажать, чтобы grub вышел при запуске ОС


Пользователь добавил сообщение 23 Июня 2019, 23:22:18:


Нагуглил — Shift или Esc


Пользователь добавил сообщение 23 Июня 2019, 23:26:03:


да, со старым ядром вай-фай работает


Пользователь добавил сообщение 23 Июня 2019, 23:27:27:


3.2.0-39 — wi-fi работает
3.2.0-126 — wi-fi не работает


Пользователь добавил сообщение 23 Июня 2019, 23:29:52:


Выводы на старом ядре:

sudo lspci -knn | grep -iA2 wireless
02:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)
Subsystem: Dell Device [1028:020c]
Kernel driver in use: ath9k


Пользователь добавил сообщение 23 Июня 2019, 23:30:26:


sudo rfkill list
0: dell-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
1: dell-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
4: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no


Пользователь добавил сообщение 23 Июня 2019, 23:31:12:


cat ~/modules.txt
ath3k
bluetooth
bnep
btusb
cdc_ether
dcdbas
dell_laptop
dell_wmi
drm
drm_kms_helper
hid
i2c_algo_bit
i915
joydev
lp
mac_hid
mei
parport
parport_pc
ppdev
psmouse
r8169
rfcomm
rndis_host
rts5139
serio_raw
shpchp
snd
snd_hda_codec
snd_hda_codec_hdmi
snd_hda_codec_realtek
snd_hda_intel
snd_hwdep
snd_page_alloc
snd_pcm
snd_rawmidi
snd_seq
snd_seq_device
snd_seq_midi
snd_seq_midi_event
snd_timer
soundcore
sparse_keymap
usbhid
usbnet
uvcvideo
v4l2_compat_ioctl32
video
videodev
wmi


Пользователь добавил сообщение 23 Июня 2019, 23:32:04:


iwconfig
lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"TP-LINK_722506" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 10:FE:ED:72:25:06   
          Bit Rate=150 Mb/s   Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=53/70  Signal level=-57 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:61   Missed beacon:0

eth0      no wireless extensions.


Пользователь добавил сообщение 23 Июня 2019, 23:32:38:


ifconfig
eth0      Link encap:Ethernet  HWaddr f0:1f:af:47:fa:6d 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:42 Base address:0x8000

lo        Link encap:Локальная петля (Loopback) 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:451 errors:0 dropped:0 overruns:0 frame:0
          TX packets:451 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:37485 (37.4 KB)  TX bytes:37485 (37.4 KB)

wlan0     Link encap:Ethernet  HWaddr 64:5a:04:98:b8:3e 
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::665a:4ff:fe98:b83e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:922 errors:0 dropped:0 overruns:0 frame:0
          TX packets:938 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:356586 (356.5 KB)  TX bytes:622873 (622.8 KB)


Пользователь добавил сообщение 23 Июня 2019, 23:35:11:


Видимо, при Dist-upgrade встало корявое ядро.


linux-firmware fails to upgrade to 20220314.gitcd01f857-0ubuntu1

Bug #1964814 reported by
NetBit73
on 2022-03-14

This bug affects 66 people

Affects Status Importance Assigned to Milestone


linux-firmware (Ubuntu)

Fix Released

Critical



Juerg Haefliger

Ubuntu ubuntu-22.04-beta

Jammy

Fix Released

Critical



Juerg Haefliger

Ubuntu ubuntu-22.04-beta

Bug Description

linux-firmware fails to upgrade with:

unable to open ‘/lib/firmware/ath11k/WCN6855/hw2.0/regdb.bin.dpkg-new’: No such file or directory

$ sudo apt dist-upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
  linux-firmware
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/238 MB of archives.
After this operation, 24.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 272091 files and directories currently installed.)
Preparing to unpack …/linux-firmware_20220314.gitcd01f857-0ubuntu1_all.deb …
Unpacking linux-firmware (20220314.gitcd01f857-0ubuntu1) over (20220302.gitee0667aa-0ubuntu1) …
dpkg: error processing archive /var/cache/apt/archives/linux-firmware_20220314.gitcd01f857-0ubuntu1_all.deb (—unpack):
 unable to open ‘/lib/firmware/ath11k/WCN6855/hw2.0/regdb.bin.dpkg-new’: No such file or directory
No apport report written because the error message indicates an issue on the local system
update-initramfs: Generating /boot/initrd.img-5.15.0-23-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
update-initramfs: Generating /boot/initrd.img-5.15.0-22-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
Errors were encountered while processing:
 /var/cache/apt/archives/linux-firmware_20220314.gitcd01f857-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Понравилась статья? Поделить с друзьями:
  • Ошибка link2ea launch game
  • Ошибка libparted невозможно создавать пересекающиеся разделы
  • Ошибка link1120 c
  • Ошибка libmtp could not send object info
  • Ошибка link 1104