[SRU][Jammy]Package firmware-sof-signed (not installed) failed to install/upgrade: trying to overwrite '/lib/firmware/intel/sof/sof-apl.ri', which is also in package linux-firmware 1.197
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firmware-sof (Ubuntu) |
Fix Released
|
High
|
Hui Wang | ||
Jammy |
Fix Released
|
High
|
Hui Wang | ||
linux-firmware (Ubuntu) |
Fix Released
|
High
|
Hui Wang | ||
Jammy |
Fix Released
|
High
|
Hui Wang |
Bug Description
SRU template for firmware-
[Impact]
We put the Recommends: firmware-sof-signed (>= 1.9-1) in the
linux-firmware/
the firmware-sof-signed will be downloaded and unpacked first, this
will introduce below errors:
Unpacking firmware-sof-signed (1.9-1) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/lib/firmware/
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../linux-
Unpacking linux-firmware (1.202+staging.1) over (1.202) ...
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
[Fix]
Need to put Replaces: linux-firmware (<= 1.203) in the debian/control,
and the sof-tplg is a symbol link in the firmware-
replaces the sof-tplg folder in the linux-firmware of old version, it will
generate an empty sof-tplg folder, there are no any topology files in the
folder and the symbol link is not generated. To solve it, modify the debian/rules
to change symbol link to a copy of folder.
[Test]
put the updated firmware-sof-signed and linux-firmware to my ppa,
and run sudo apt install linux-firmware, then the two packages are upgraded
and installed, reboot all audio function work as well as before.
[Where problems could occur]
The firmware-sof-signed doesn't contain all files that we plan to remove from
linux-firmware, but there is no evidence that those files are used by
any platforms, If some platforms fail to load the sof-firmware or topology
files and audio function fail to work, it is possibily this SRU introduce the
regression.
SRU template for linux-firmware:
[Impact]
In the past we put the sof-firmware files into the linux-firmware,
and about half year ago, the sof-firmware has its own debian package,
it is firmware-
from linux-firmware and replace them with the package firmware-
Here put Recommends: firmware-sof-signed (>= 1.9-1) in the
linux-firmware/
firmware-sof-signed will be unpacked first, it will have conflicts
because this package update the same files in the linux-firmware of
old version, so apart of this pull-request to linux-firmware, also need to
do some change on firmware-
firmware-sof-signed in the launchpad.
This is the error log when unpacking the firmware-
Unpacking firmware-sof-signed (1.9-1) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/lib/firmware/
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../linux-
Unpacking linux-firmware (1.202+staging.1) over (1.202) ...
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
[Fix]
remove the sof-firmware files from linux-firmware, and replace
them with a debian package firmware-
[Test]
put the updated firmware-sof-signed and linux-firmware to my ppa,
and run sudo apt install linux-firmware, then the two packages are upgraded
and installed, reboot all audio function work as well as before.
[Where problems could occur]
The firmware-sof-signed doesn't contain all files that we plan to remove from
linux-firmware, but there is no evidence that those files are used by
any platforms, If some platforms fail to load the sof-firmware or topology
files and audio function fail to work, it is possibily this SRU introduce the
regression.
(Reading database ... 220533 files and directories currently installed.)
Preparing to unpack .../firmware-
Unpacking firmware-sof-signed (1.6.1-2) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/lib/firmware/
Errors were encountered while processing:
/var/cache/
Is there a work around?
ProblemType: Package
DistroRelease: Ubuntu 21.04
Package: firmware-sof-signed (not installed)
ProcVersionSign
Uname: Linux 5.11.0-18-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu65.1
AptOrdering:
firmware-
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
Date: Fri Jun 4 17:22:54 2021
DpkgTerminalLog:
Preparing to unpack .../firmware-
Unpacking firmware-sof-signed (1.6.1-2) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/lib/firmware/
DuplicateSignature:
package:
Unpacking firmware-sof-signed (1.6.1-2) ...
dpkg: error processing archive /var/cache/
trying to overwrite '/lib/firmware/
ErrorMessage: trying to overwrite '/lib/firmware/
InstallationDate: Installed on 2021-06-02 (2 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
Python3Details: /usr/bin/python3.9, Python 3.9.5, python3-minimal, 3.9.4-1
PythonDetails: N/A
RelatedPackageV
dpkg 1.20.9ubuntu1
apt 2.2.3
SourcePackage: firmware-sof
Title: package firmware-sof-signed (not installed) failed to install/upgrade: trying to overwrite '/lib/firmware/
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
description: | updated |
tags: |
added: jammy removed: hirsute |
description: | updated |
Changed in linux-firmware (Ubuntu Jammy): | |
status: | Triaged → Fix Committed |
Changed in firmware-sof (Ubuntu Jammy): | |
status: | Triaged → Fix Committed |
Changed in linux-firmware (Ubuntu Jammy): | |
status: | Fix Committed → Fix Released |
The current firmware-sof version 1.6.1-2 can't replace the sof-firmware in our linux-firmware package. At least an important firmware file is missing in the firmware-sof.
I have wrote an email to debian maintainer, he told me he is planning a higher version (1.7), once the 1.7 is ready, we could remove the sof-firmware in the linux-firmware and use the firmware-sof package.
Below is the reply from the maintainer:
Hi Hui,
I hadn't realised that's how it worked 🙂
So I had prepared a 1.7 version a month ago: /salsa. debian. org/mpearson/ firmware- sof/-/commit/ fdce28e87c495ab 69c1cdfaaff19bc 7aff70af5f
https:/
But I wasn't able to get this uploaded as there was a freeze on so the debian maintainer who has been helping me wouldn't take it. I'll see if that's possible now (and likely have to update to the latest...)
Mark