doing dist-upgrade got error related do Broadcom

Bug #1878045 reported by joaorami on 2020-05-11
90
This bug affects 15 people
Affects Status Importance Assigned to Milestone
bcmwl (Ubuntu)
High
Alberto Milone

Bug Description

I had a working 20.04 installation running, including the Broadcom Wifi. After upgrade to 20.10 the Broadcom Wifi is not working. I tried several suggestions and always end to an error similiar to this one:
...
Building initial module for 5.4.0-30-generic
ERROR (dkms apport): kernel package linux-headers-5.4.0-30-generic is not supported
Error! Application of patch 0028-add-support-for-linux-5.6.patch failed.
Check /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/ for more information.
dpkg: error processing package bcmwl-kernel-source (--configure):
 installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 6
Errors were encountered while processing:
 bcmwl-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)
...

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: ubuntu-release-upgrader-core 1:20.10.1
ProcVersionSignature: Ubuntu 5.4.0-30.34-generic 5.4.34
Uname: Linux 5.4.0-30-generic x86_64
ApportVersion: 2.20.11-0ubuntu33
Architecture: amd64
CasperMD5CheckResult: skip
CrashDB: ubuntu
Date: Mon May 11 17:16:43 2020
InstallationDate: Installed on 2020-02-22 (78 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: dist-upgrade
UpgradeStatus: Upgraded to groovy on 2020-05-07 (3 days ago)
VarLogDistupgradeXorgFixuplog:
 INFO:root:/usr/bin/do-release-upgrade running
 INFO:root:No xorg.conf, exiting
mtime.conffile..etc.update-manager.release-upgrades: 2020-05-07T09:26:37.178586

joaorami (joaomppr) wrote :
affects: ubuntu-release-upgrader (Ubuntu) → bcmwl (Ubuntu)
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bcmwl (Ubuntu):
status: New → Confirmed
Garth McDermott (garthm) wrote :

Fresh 20.10 install, experienced the same issue caused when attempting either manually attempting to install "bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu6_amd64.deb" or using "Additional Drivers".

sudo apt-get remove --purge bcmwl-kernel-source

Synaptic Package Manager installed:
broadcom-sta-source
broadcom-sta-dkms
broadcom-sta-common

(It also added some dependencies)

Works again!

joaorami (joaomppr) wrote :

I did same and its working again, thanks! What I did:

apt purge bcmwl-kernel-source
apt-get install broadcom-sta-source
apt-get install broadcom-sta-dkms
apt-get install broadcom-sta-common

Wladimir Mutel (mwg) wrote :

Thanks, this eliminated the problem.
The only unexplained thing is what was the urge to break the "old" package which perfectly worked before. If Ubuntu planned to reorder/restructure package names, the reasonable way would be to turn 'bcmwl-kernel-source' into a dummy/transitional package which would pull new broadcom-sta-* packages as its dependencies. But probably Ubuntu plans were more mysterial than that.

apt-ghetto (apt-ghetto) wrote :

Thank you for this solution. It is working again.

Petr Janecek (janecekp) wrote :

There seems to be a bug in

/usr/src/bcmwl-6.30.223.271+bdcom/patches/0028-add-support-for-linux-5.6.patch

-- all the paths have the 'src' component doubled. Changed
all 'src/src' to just 'src' and it compiles and works for
me.

Norbert (nrbrtx) wrote :

Seeing this bug on 20.10 groovy system.

```
$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu6) ...
Removing old bcmwl-6.30.223.271+bdcom DKMS files...

------------------------------
Deleting module version: 6.30.223.271+bdcom
completely from the DKMS tree.
------------------------------
Done.
Loading new bcmwl-6.30.223.271+bdcom DKMS files...
Building for 5.4.0-42-generic
Building for architecture x86_64
Building initial module for 5.4.0-42-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/bcmwl-kernel-source.0.crash'
Error! Application of patch 0028-add-support-for-linux-5.6.patch failed.
Check /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/ for more information.
dpkg: error processing package bcmwl-kernel-source (--configure):
 installed bcmwl-kernel-source package post-installation script subprocess returned error exit status 6
Errors were encountered while processing:
 bcmwl-kernel-source
E: Sub-process /usr/bin/dpkg returned an error code (1)

```

Yann (yourfrenchman) wrote :

I have exactly the same message as above on the 20.10 beta version.

Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1878045

tags: added: iso-testing
Changed in bcmwl (Ubuntu):
milestone: none → ubuntu-20.10
Łukasz Zemczak (sil2100) wrote :

I have made sure that the kernel team is aware of this issue. We will not be able to deal with it for beta, but hopefully this will be resolved before the final release.

Changed in bcmwl (Ubuntu):
importance: Undecided → High
Changed in bcmwl (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bcmwl - 6.30.223.271+bdcom-0ubuntu7

---------------
bcmwl (6.30.223.271+bdcom-0ubuntu7) groovy; urgency=medium

  * debian/patches/0028-add-support-for-linux-5.6.patch:
    - Remove extra src prefix, which prevented the patch from
      being applied correctly (LP: #1878045).

 -- Alberto Milone <email address hidden> Fri, 02 Oct 2020 11:57:47 +0200

Changed in bcmwl (Ubuntu):
status: Confirmed → Fix Released
Download full text (13.9 KiB)

on a fresh ubuntu 20.10 install ( not upgrade ) seeing same bug

wifi not working
in settings option to change wifi is grayed out
able to reach internet OK using ethernet

x86_64
5.8.0-26-generic
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.10
DISTRIB_CODENAME=groovy
DISTRIB_DESCRIPTION="Ubuntu 20.10"

uname -a
Linux andes 5.8.0-26-generic #27-Ubuntu SMP Wed Oct 21 22:29:16 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

 dpkg -l|grep bcmwl
ii bcmwl-kernel-source 6.30.223.271+bdcom-0ubuntu7 amd64 Broadcom 802.11 Linux STA wireless driver source
olaf@andes ~ $

sudo apt-get remove --purge bcmwl-kernel-source

sudo apt-get install broadcom-sta-source

   ran OK

sudo apt-get install broadcom-sta-source -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  dkms
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  module-assistant
The following NEW packages will be installed:
  broadcom-sta-source module-assistant
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,308 kB of archives.
After this operation, 2,639 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu groovy/multiverse amd64 broadcom-sta-source all 6.30.223.271-14 [2,218 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu groovy/universe amd64 module-assistant all 0.11.10 [90.3 kB]
Fetched 2,308 kB in 1s (2,106 kB/s)
Requesting to save current system state
Successfully saved as "autozsys_iyujmr"
Selecting previously unselected package broadcom-sta-source.
(Reading database ... 210357 files and directories currently installed.)
Preparing to unpack .../broadcom-sta-source_6.30.223.271-14_all.deb ...
Unpacking broadcom-sta-source (6.30.223.271-14) ...
Selecting previously unselected package module-assistant.
Preparing to unpack .../module-assistant_0.11.10_all.deb ...
Unpacking module-assistant (0.11.10) ...
Setting up broadcom-sta-source (6.30.223.271-14) ...
Setting up module-assistant (0.11.10) ...
Processing triggers for man-db (2.9.3-2) ...
ZSys is adding automatic system snapshot to GRUB menu

sudo apt-get install broadcom-sta-dkms -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  broadcom-sta-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,210 kB of archives.
After this operation, 14.5 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu groovy/multiverse amd64 broadcom-sta-dkms all 6.30.223.271-14 [2,210 kB]
Fetched 2,210 kB in 0s (5,178 kB/s)
Requesting to save current system state
Successfully saved as "autozsys_x9zm88"
Selecting previously unselected package broadcom-sta-dkms.
(Reading database ... 210406 files and directories currently installed.)
Preparing to unpack .../broadcom-sta-dkms_6.30.223.271-14_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-14) ...
Setting up broadcom-sta-dkms (6.30.223.271-14) ...
Loading new broadcom-s...

lspci | grep -i network
02:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4352 802.11ac Wireless Network Adapter (rev 03)

sudo lshw -C network
  *-network UNCLAIMED
       description: Network controller
       product: BCM4352 802.11ac Wireless Network Adapter
       vendor: Broadcom Inc. and subsidiaries
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 03
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:ed400000-ed407fff memory:ed200000-ed3fffff
  *-network
       description: Ethernet interface
       physical id: 1
       bus info: usb@2:2
       logical name: enx000edab6c1eb
       serial: 00:0e:da:b6:c1:eb
       size: 1Gbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=ax88179_178a driverversion=5.8.0-26-generic duplex=full ip=192.168.0.167 link=yes multicast=yes port=MII speed=1Gbit/s

To post a comment you must log in.