Are you sure that you do not mix Raspbian and Ubuntu repositories?
Please add output of the
apt-cache policy bluez-firmware* linux-firmware-raspi2
to the answer.
Are you sure that you do not mix Raspbian and Ubuntu repositories?
Please add output of the
apt-cache policy bluez-firmware* linux-firmware-raspi2
to the answer.
18.04.1 over 18.04.2
? IMHO, that is not normal. Did you do apt update
first?
The straightforward solution would be to run file overwriting process by sending the following command:
sudo dpkg -i --force-all /var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_armhf.deb
and then resume the upgrade process with
sudo apt-get upgrade
Update: previously I have a typo here --force --all
instead of --force-all
.
ken@taylor23:~$ apt-cache policy bluez-firmware* linux-firmware-raspi2
bluez-firmware:
Installed: 1.2-4+rpt1~bionic1.0
Candidate: 1.2-4+rpt1~bionic1.0
Version table:
*** 1.2-4+rpt1~bionic1.0 990
990 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic/main armhf Packages
100 /var/lib/dpkg/status
linux-firmware-raspi2:
Installed: 1.20180919-0ubuntu0.18.04.2
Candidate: 1.20190215-0ubuntu0.18.04.1
Version table:
1.20190215-0ubuntu0.18.04.1 500
500 http://ports.ubuntu.com bionic-updates/multiverse armhf Packages
*** 1.20180919-0ubuntu0.18.04.2 100
100 /var/lib/dpkg/status
1.20161020-0ubuntu1 500
500 http://ports.ubuntu.com bionic/multiverse armhf Packages
Yes, I ran apt-get update first.
ken@taylor23:~$ sudo dpkg -i --force --all /var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_armhf.deb
[sudo] password for ken:
dpkg: error: unknown force/refuse option '--all'
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
oh, my bad, there was a typo. The correct is --force-all
:
sudo dpkg -i --force-all /var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_armhf.deb
Thanks Norbert X,
That did the trick! Only the smallest puff of smoke from the Pi when I ran it Just kidding. The first Pi seems to be running fine. I will now apply it to the other two.
Ken
I am now seeing the same error.
The following packages will be upgraded:
linux-firmware-raspi2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,612 kB of archives.
After this operation, 35.8 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 314093 files and directories currently installed.)
Preparing to unpack .../linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_armhf.deb ...
Unpacking linux-firmware-raspi2 (1.20190215-0ubuntu0.18.04.1) over (1.20180919-0ubuntu0.18.04.2) ...
dpkg: error processing archive /var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_armhf.deb (--unpack):
trying to overwrite '/lib/firmware/brcm/BCM43430A1.hcd', which is also in package bluez-firmware 1.2-4+rpt1~bionic1.0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_armhf.deb
I did create a bug report
Thank you -- worked here, too. First time installing Ubuntu on a pi.
Resurrecting this, had this issue and wanted to thank Norbert_X for providing the fix!
$ apt-cache policy bluez-firmware* linux-firmware-raspi2
bluez-firmware:
Installed: 1.2-4+rpt1~bionic1.0
Candidate: 1.2-4+rpt1~bionic1.0
Version table:
*** 1.2-4+rpt1~bionic1.0 990
990 http://ppa.launchpad.net/ubuntu-pi-flavour-makers/ppa/ubuntu bionic/main arm64 Packages
100 /var/lib/dpkg/status
linux-firmware-raspi2:
Installed: 1.20180919-0ubuntu0.18.04.2
Candidate: 1.20190215-0ubuntu0.18.04.1
Version table:
1.20190215-0ubuntu0.18.04.1 500
500 http://ports.ubuntu.com bionic-updates/multiverse arm64 Packages
*** 1.20180919-0ubuntu0.18.04.2 100
100 /var/lib/dpkg/status
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
apt-clone archdetect-deb cryptsetup-bin dpkg-repack gir1.2-json-1.0 gir1.2-nm-1.0 gir1.2-nma-1.0 gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common
libdebian-installer4 libllvm7 libtimezonemap-data libtimezonemap1 os-prober python3-icu python3-pam rdate
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
linux-firmware-raspi2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,612 kB of archives.
After this operation, 35.8 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 139579 files and directories currently installed.)
Preparing to unpack .../linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_arm64.deb ...
Unpacking linux-firmware-raspi2 (1.20190215-0ubuntu0.18.04.1) over (1.20180919-0ubuntu0.18.04.2) ...
dpkg: error processing archive /var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_arm64.deb (--unpack):
trying to overwrite '/lib/firmware/brcm/BCM43430A1.hcd', which is also in package bluez-firmware 1.2-4+rpt1~bionic1.0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo dpkg -i --force-all /var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_armhf.deb
dpkg: error: cannot access archive '/var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_armhf.deb': No such file or directory
You should use exactly this filename:
sudo dpkg -i --force-all /var/cache/apt/archives/linux-firmware-raspi2_1.20190215-0ubuntu0.18.04.1_arm64.deb
That's fixed it now (other than [ 0.174745] dmi: Firmware registration failed. as the only boot screen message), thanks!
Gracias ha solucionado el problema.
Thank you has solved the problem.
Hi all,
I'm experiencing the same issue here.
Unfortunately the dpkg --force command breaks the brcm driver, so that the embedded wifi stops working!
I'm fighting to fix it - no luck so far.
Any of you have experiences the same situation?
Cheers
Hi Norbert, I used your suggestion and forced with the latest filename that wouldn't upgrade.
linux-firmware-raspi2_1.20200601+arm64-0ubuntu2~18.04.1_armhf.deb
everything went smooth and now apt get upgrade end smoothly BUT since restarting the wifi will not find any available connection.
What do you suggest?
Thanks in advance and please consider I'm a noob
read your post too late
have the same problem
did you fix this?
Hello, I've just received an error doing yout solution:
ERROR: cannot access archive /var/cache/apt/linux-firmware-raspi2.1.20190205-0ubuntu0.18.04.1_armhf.deb: No such file or directory
I usually run ubuntu on a Rasberry pi 4, with a OS manager called berryboot
thank you for your contribution
This doesn't work:
Do you want to continue? [Y/n] y
(Reading database ... 200754 files and directories currently installed.)
Preparing to unpack .../linux-firmware-raspi2_1.20200601+arm64-0ubuntu2~18.04.1_armhf.deb ...
Leaving 'diversion of /lib/firmware/brcm/brcmfmac43455-sdio.bin to /lib/firmware/brcm/brcmfmac43455-sdio.bin.distrib by linux-firmware-raspi2'
Leaving 'diversion of /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt to /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt.distrib by linux-firmware-raspi2'
Leaving 'diversion of /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt to /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt.distrib by linux-firmware-raspi2'
dpkg-divert: error: 'diversion of /lib/firmware/brcm/brcmfmac43430-sdio.bin to /lib/firmware/brcm/brcmfmac43430-sdio.bin.distrib by linux-firmware-raspi2' clashes with 'diversion of /lib/firmware/brcm/brcmfmac43430-sdio.bin to /lib/firmware/brcm/brcmfmac43430-sdio-2.bin by linux-firmware-raspi2'
dpkg: error processing archive /var/cache/apt/archives/linux-firmware-raspi2_1.20200601+arm64-0ubuntu2~18.04.1_armhf.deb (--unpack):
new linux-firmware-raspi2 package pre-installation script subprocess returned error exit status 2
Removing 'diversion of /lib/firmware/brcm/brcmfmac43430-sdio.bin to /lib/firmware/brcm/brcmfmac43430-sdio-2.bin by linux-firmware-raspi2'
dpkg-divert: error: rename involves overwriting '/lib/firmware/brcm/brcmfmac43430-sdio.bin' with
different file '/lib/firmware/brcm/brcmfmac43430-sdio-2.bin', not allowed
dpkg: error while cleaning up:
new linux-firmware-raspi2 package post-removal script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/linux-firmware-raspi2_1.20200601+arm64-0ubuntu2~18.04.1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
shrimp ~ ✗ sudo dpkg -i --force-all /var/cache/apt/archives/linux-firmware-raspi2_1.20200601+arm64-0ubuntu2\~18.04.1_armhf.deb
(Reading database ... 200754 files and directories currently installed.)
Preparing to unpack .../linux-firmware-raspi2_1.20200601+arm64-0ubuntu2~18.04.1_armhf.deb ...
Leaving 'diversion of /lib/firmware/brcm/brcmfmac43455-sdio.bin to /lib/firmware/brcm/brcmfmac43455-sdio.bin.distrib by linux-firmware-raspi2'
Leaving 'diversion of /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt to /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt.distrib by linux-firmware-raspi2'
Leaving 'diversion of /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt to /lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt.distrib by linux-firmware-raspi2'
dpkg-divert: error: 'diversion of /lib/firmware/brcm/brcmfmac43430-sdio.bin to /lib/firmware/brcm/brcmfmac43430-sdio.bin.distrib by linux-firmware-raspi2' clashes with 'diversion of /lib/firmware/brcm/brcmfmac43430-sdio.bin to /lib/firmware/brcm/brcmfmac43430-sdio-2.bin by linux-firmware-raspi2'
dpkg: error processing archive /var/cache/apt/archives/linux-firmware-raspi2_1.20200601+arm64-0ubuntu2~18.04.1_armhf.deb (--install):
new linux-firmware-raspi2 package pre-installation script subprocess returned error exit status 2
Removing 'diversion of /lib/firmware/brcm/brcmfmac43430-sdio.bin to /lib/firmware/brcm/brcmfmac43430-sdio-2.bin by linux-firmware-raspi2'
dpkg-divert: error: rename involves overwriting '/lib/firmware/brcm/brcmfmac43430-sdio.bin' with
different file '/lib/firmware/brcm/brcmfmac43430-sdio-2.bin', not allowed
dpkg: error while cleaning up:
new linux-firmware-raspi2 package post-removal script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/linux-firmware-raspi2_1.20200601+arm64-0ubuntu2~18.04.1_armhf.deb
%
Fixed this -- I had previously had to put in a redirect to fix a previous problem with the firmware issue. Leaving this post in case other people went through the same process.