** Description changed:

+ SRU template for firmware-sof-signed:
+ [Impact]
+ We put the Recommends: firmware-sof-signed (>= 1.9-1) in the
+ linux-firmware/debian/control, when upgrading 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/apt/archives/firmware-sof-signed_1.9-1_all.deb (--unpack):
+  trying to overwrite '/lib/firmware/intel/sof/sof-bdw.ri', which is also in 
package linux-firmware 1.202
+ dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
+ Preparing to unpack .../linux-firmware_1.202+staging.1_all.deb ...
+ Unpacking linux-firmware (1.202+staging.1) over (1.202) ...
+ Errors were encountered while processing:
+  /var/cache/apt/archives/firmware-sof-signed_1.9-1_all.deb
+ 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-sof-signed, when it
+ 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-sof-signed, here we remove the sof-firmware files
  from linux-firmware and replace them with the package firmware-sof-signed.
  
  Here put Recommends: firmware-sof-signed (>= 1.9-1) in the
  linux-firmware/debian/control, when upgrading the linux-firmware, the
  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-sof-signed. Please see the debdiff for
  firmware-sof-signed in the launchpad.
  
  This is the error log when unpacking the firmware-sof-signed:
  Unpacking firmware-sof-signed (1.9-1) ...
  dpkg: error processing archive 
/var/cache/apt/archives/firmware-sof-signed_1.9-1_all.deb (--unpack):
-  trying to overwrite '/lib/firmware/intel/sof/sof-bdw.ri', which is also in 
package linux-firmware 1.202
+  trying to overwrite '/lib/firmware/intel/sof/sof-bdw.ri', which is also in 
package linux-firmware 1.202
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Preparing to unpack .../linux-firmware_1.202+staging.1_all.deb ...
  Unpacking linux-firmware (1.202+staging.1) over (1.202) ...
  Errors were encountered while processing:
-  /var/cache/apt/archives/firmware-sof-signed_1.9-1_all.deb
+  /var/cache/apt/archives/firmware-sof-signed_1.9-1_all.deb
  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-sof-signed.
  
  [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.  
- 
- 
+ regression.
  
  (Reading database ... 220533 files and directories currently installed.)
  Preparing to unpack .../firmware-sof-signed_1.6.1-2_all.deb ...
  Unpacking firmware-sof-signed (1.6.1-2) ...
  dpkg: error processing archive 
/var/cache/apt/archives/firmware-sof-signed_1.6.1-2_all.deb (--unpack):
   trying to overwrite '/lib/firmware/intel/sof/sof-apl.ri', which is also in 
package linux-firmware 1.197
  Errors were encountered while processing:
   /var/cache/apt/archives/firmware-sof-signed_1.6.1-2_all.deb
  
  Is there a work around?
  
  ProblemType: Package
  DistroRelease: Ubuntu 21.04
  Package: firmware-sof-signed (not installed)
  ProcVersionSignature: Ubuntu 5.11.0-18.19-generic 5.11.17
  Uname: Linux 5.11.0-18-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia zfs zunicode zavl icp zcommon 
znvpair
  ApportVersion: 2.20.11-0ubuntu65.1
  AptOrdering:
   firmware-sof-signed:amd64: Install
   NULL: ConfigurePending
  Architecture: amd64
  CasperMD5CheckResult: pass
  Date: Fri Jun  4 17:22:54 2021
  DpkgTerminalLog:
   Preparing to unpack .../firmware-sof-signed_1.6.1-2_all.deb ...
   Unpacking firmware-sof-signed (1.6.1-2) ...
   dpkg: error processing archive 
/var/cache/apt/archives/firmware-sof-signed_1.6.1-2_all.deb (--unpack):
    trying to overwrite '/lib/firmware/intel/sof/sof-apl.ri', which is also in 
package linux-firmware 1.197
  DuplicateSignature:
   package:firmware-sof-signed:(not installed)
   Unpacking firmware-sof-signed (1.6.1-2) ...
   dpkg: error processing archive 
/var/cache/apt/archives/firmware-sof-signed_1.6.1-2_all.deb (--unpack):
    trying to overwrite '/lib/firmware/intel/sof/sof-apl.ri', which is also in 
package linux-firmware 1.197
  ErrorMessage: trying to overwrite '/lib/firmware/intel/sof/sof-apl.ri', which 
is also in package linux-firmware 1.197
  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
  RelatedPackageVersions:
   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/intel/sof/sof-apl.ri', which is also in 
package linux-firmware 1.197
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1930868

Title:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firmware-sof/+bug/1930868/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to