This also fixed it for me.
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-graphics-drivers-340 in Ubuntu.
https://bugs.launchpad.net/bugs/1791542
Title:
package libglvnd-dev 1.0.0-2ubuntu2.1 failed to upgrade: trying to
overwrite '/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so', which is also
in package nvidia-340 340.107-0ubuntu0~gpu18.04.1
Status in libglvnd package in Ubuntu:
Confirmed
Status in nvidia-graphics-drivers-340 package in Ubuntu:
Fix Released
Status in libglvnd source package in Bionic:
Confirmed
Status in nvidia-graphics-drivers-340 source package in Bionic:
Fix Committed
Bug description:
SRU Request:
[Impact]
The new libgles1 conflicts with nvidia-340 which ships it's own copy
of libGLESv1_CM.so
[Test case]
Enable proposed, install libgles1 and nvidia-340, they should install
fine.
[Regression potential]
none, just fixes a file conflict
--
Looks like I had a similar problem on 18.04.1 than
https://bugs.launchpad.net/ubuntu/+source/libglvnd/+bug/1728352, just
with nvidia-340 from https://launchpad.net/~graphics-
drivers/+archive/ubuntu/ppa .
Apt output:
```
$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
libgles1
The following packages will be upgraded:
libegl1 libgl1 libgles2 libglvnd-core-dev libglvnd-dev libglvnd0 libglx0
libopengl0
8 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 268 kB of archives.
After this operation, 66,6 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64
libglvnd-dev amd64 1.0.0-2ubuntu2.2 [3 408 B]
Get:2 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64
libglvnd-core-dev amd64 1.0.0-2ubuntu2.2 [12,9 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libgles2
amd64 1.0.0-2ubuntu2.2 [17,4 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libgl1
amd64 1.0.0-2ubuntu2.2 [84,8 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libglx0
amd64 1.0.0-2ubuntu2.2 [28,1 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libopengl0
amd64 1.0.0-2ubuntu2.2 [31,3 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libegl1
amd64 1.0.0-2ubuntu2.2 [31,9 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libglvnd0
amd64 1.0.0-2ubuntu2.2 [46,6 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-proposed/main amd64 libgles1
amd64 1.0.0-2ubuntu2.2 [11,2 kB]
Fetched 268 kB in 0s (1 575 kB/s)
(Reading database ... 141610 files and directories currently installed.)
Preparing to unpack .../0-libglvnd-dev_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libglvnd-dev:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
dpkg: error processing archive
/tmp/apt-dpkg-install-Gq7kQI/0-libglvnd-dev_1.0.0-2ubuntu2.2_amd64.deb
(--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so', which is
also in package nvidia-340 340.107-0ubuntu0~gpu18.04.1
Preparing to unpack .../1-libglvnd-core-dev_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libglvnd-core-dev:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1)
...
Preparing to unpack .../2-libgles2_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libgles2:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Preparing to unpack .../3-libgl1_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libgl1:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Preparing to unpack .../4-libglx0_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libglx0:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Preparing to unpack .../5-libopengl0_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libopengl0:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Preparing to unpack .../6-libegl1_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libegl1:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Preparing to unpack .../7-libglvnd0_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libglvnd0:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Selecting previously unselected package libgles1:amd64.
Preparing to unpack .../8-libgles1_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libgles1:amd64 (1.0.0-2ubuntu2.2) ...
dpkg: error processing archive
/tmp/apt-dpkg-install-Gq7kQI/8-libgles1_1.0.0-2ubuntu2.2_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1', which is
also in package nvidia-340 340.107-0ubuntu0~gpu18.04.1
Errors were encountered while processing:
/tmp/apt-dpkg-install-Gq7kQI/0-libglvnd-dev_1.0.0-2ubuntu2.2_amd64.deb
/tmp/apt-dpkg-install-Gq7kQI/8-libgles1_1.0.0-2ubuntu2.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
ProblemType: Package
Dist