Error updating Ubuntu Mate 18.04 on Pi 3B+

I am receiving the following errors when attempting to install updates on 3 of 3 Pi computers. I suspect it is bigger than my systems. Does anyone have on information/recommendations?

TIA,

Ken

[email protected]:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
linux-firmware-raspi2
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
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 ... 145272 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
E: Sub-process /usr/bin/dpkg returned an error code (1)

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.

2 Likes

[email protected]:~$ 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.


[email protected]:~$ 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
1 Like

Thanks Norbert X,

That did the trick! Only the smallest puff of smoke from the Pi when I ran it :grin: Just kidding. The first Pi seems to be running fine. I will now apply it to the other two.

Ken

1 Like

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

1 Like

thank you @Norbert_X this worked for me as well

Thank you -- worked here, too. First time installing Ubuntu on a pi.