Ubuntu – Broken package udpating Ubuntu 18.04 GL dispatch library

nvidiapackage-managementvideo-driver

This two updates can't be installed:

Vendor neutral GL dispatch library – development files

Vendor neutral GL dispatch library – GLESV1 support

The update shows a new window with the title: Broken System Package and a message that recommends disabling third-party packages and running apt-get install -f.

This is the output after running the command:

Reading package list... Done
Building the dependency tree       
Reading status information... Done
Correcting dependencies... Ready
The packages listed below were installed automatically and are no longer required.
  libjs-bootstrap libjs-excanvas libjs-jquery-flot libjs-jquery-ui
  libjs-jquery-ui-theme-smoothness libjs-leaflet libjs-requirejs
  libjs-requirejs-text node-sprintf-js
Use "sudo apt autoremove" to remove them.
The following additional packages will be installed:
  libgles1 libglvnd-dev
The following NEW packages will be installed:
  libgles1
The following packages will be updated:
  libglvnd-dev
1 updated, 1 new will be installed, 0 to remove and 10 not updated.
You need to download 0 B/14.6 kB of files.
66.6 kB of additional disk space will be used after this operation.
Do you want to continue? [Y/N] Y
(Reading the database ... 704136 files or directories currently installed.)
Preparing to unpack ... 
libgles1_1.0.0-2ubuntu2.2_amd64.deb ...
Unpacking libgles1:amd64 (1.0.0-2ubuntu2.2) ...
dpkg: error processing /var/cache/apt/archives/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.106-0ubuntu3
Preparing to unpack ...
/libglvnd-dev_1.0.0-2ubuntu2.2_amd64.deb ...Unpacking libglvnd-dev:amd64 (1.0.0-2ubuntu2.2) on (1.0.0-2ubuntu2.1) ...
dpkg: error processing /var/cache/apt/archives/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.106-0ubuntu3
dpkg: error processing /var/cache/apt/archives/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 the package nvidia-340 340.106-0ubuntu3
Errors were encountered while processing:
 /var/cache/apt/archives/libgles1_1.0.0-2ubuntu2.2_amd64.deb
 /var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Best Answer

  • I just had this issue, run

    sudo dpkg -i --force-overwrite /var/cache/apt/archives/libglvnd-dev_1.0.0-2ubuntu2.2_amd64.deb
    sudo dpkg -i --force-overwrite /var/cache/apt/archives/libgles1_1.0.0-2ubuntu2.2_amd64.deb
    sudo apt -f install
    
  • Related Question