libgl1-mesa-dri 22.3.4-1ubuntu1 vs libgl1-amber-dri 21.3.7-0ubuntu1 file conflict

Bug #2006744 reported by Danilo Egea Gondolfo
134
This bug affects 23 people
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Fix Released
Undecided
Unassigned
mesa-amber (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I enabled lunar-proposed today (with APT::Default-Release "lunar-proposed";) and got the error below during update:

Preparing to unpack .../39-libgl1-mesa-dri_22.3.4-1ubuntu1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.3.4-1ubuntu1) over (22.2.5-0ubuntu1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-AkyzpG/39-libgl1-mesa-dri_22.3.4-1ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1

Then it will be broken:

root@deleteme-lunar:~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libgl1-mesa-dri : Depends: libglapi-mesa (= 22.2.5-0ubuntu1) but 22.3.4-1ubuntu1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

root@deleteme-lunar:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libicu71 libpython3.10-minimal libpython3.10-stdlib python3.10 python3.10-minimal
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libgl1-mesa-dri
The following packages will be upgraded:
  libgl1-mesa-dri
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
62 not fully installed or removed.
Need to get 0 B/7806 kB of archives.
After this operation, 809 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 81205 files and directories currently installed.)
Preparing to unpack .../libgl1-mesa-dri_22.3.4-1ubuntu1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (22.3.4-1ubuntu1) over (22.2.5-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libgl1-mesa-dri_22.3.4-1ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/libgl1-mesa-dri_22.3.4-1ubuntu1_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

How to reproduce:

1. Spin up a Lunar VM
2. Enable -proposed
3. Install libgl1-mesa-dri and libgl1-amber-dri
4. Add APT::Default-Release "lunar-proposed"; to /etc/apt/apt.conf.d/somefile
5. Try to upgrade

Timo Aaltonen (tjaalton)
affects: mesa (Ubuntu) → mesa-amber (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in mesa-amber (Ubuntu):
status: New → Confirmed
Revision history for this message
Granville Xiong (g4x86) wrote :

I just ran into this bug today, and a Google search shows that it has been affecting many distros based on Ubuntu starting more than half year ago and many users complained about it without real solutions. Hope it can be fixed ASAP.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

"more than half a year ago" seems a bit too much, as the gallium i915 was enabled in Debian in December, and was uploaded to lunar two weeks ago..

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa-amber - 21.3.9-0ubuntu1

---------------
mesa-amber (21.3.9-0ubuntu1) lunar; urgency=medium

  * Merge from Debian.

 -- Timo Aaltonen <email address hidden> Tue, 21 Feb 2023 09:38:30 +0200

Changed in mesa-amber (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

mesa needs a fix too to add a Replaces/Breaks

Changed in mesa (Ubuntu):
status: New → In Progress
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Indeed, on an upgrade today I got:

--->
dpkg: error processing archive /tmp/apt-dpkg-install-ufaKMu/10-libgl1-mesa-dri_22.3.6-1ubuntu1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/dri/i915_dri.so', which is also in package libgl1-amber-dri:amd64 21.3.7-0ubuntu1
<---

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa - 22.3.6-1ubuntu2

---------------
mesa (22.3.6-1ubuntu2) lunar; urgency=medium

  * control: Add replaces/breaks to -dri for amber. (LP: #2006744)

 -- Timo Aaltonen <email address hidden> Tue, 07 Mar 2023 10:24:33 +0200

Changed in mesa (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.