$ sudo apt-get install libgl1-mesa-glx Reading package lists... Done Building dependency tree... Done The following packages will be upgraded: libgl1-mesa-glx 1 upgraded, 0 newly installed, 0 to remove and 318 not upgraded. Need to get 0B/142kB of archives. After unpacking 0B of additional disk space will be used. Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Parsing Found/Fixed information... Done Reading changelogs... Done (Reading database ... 180064 files and directories currently installed.) Preparing to replace libgl1-mesa-glx 6.5.2-4 (using .../libgl1-mesa-glx_6.5.2-6_i386.deb) ... Unpacking replacement libgl1-mesa-glx ... dpkg: error processing /var/cache/apt/archives/libgl1-mesa-glx_6.5.2-6_i386.deb (--unpack): unable to create `./usr/lib/libGL.so.1.2': No such file or directory dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/libgl1-mesa-glx_6.5.2-6_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)