Perhaps you can try:1. Unintall your Lazarus2. Download Lazarus from the official website3. Install the downloaded files (3 deb packages)4. Install libgl1-mesa-dev5. Install LazOpenGLContext
eric@eric-HP-ProBook-4710s:~$ sudo apt-get install libgl1-mesa-dev[sudo] password for eric: Reading package lists... DoneBuilding dependency tree Reading state information... Donelibgl1-mesa-dev is already the newest version (12.0.6-0ubuntu0.16.04.1).You might want to run 'apt-get -f install' to correct these:The following packages have unmet dependencies: fp-utils-3.0.0 : Depends: fpc-source-3.0.0 but it is not going to be installedE: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
[sudo] password for eric: Reading package lists... DoneBuilding dependency tree Reading state information... DoneCorrecting dependencies... DoneThe following additional packages will be installed: fpc-source-3.0.0The following NEW packages will be installed: fpc-source-3.0.00 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.16 not fully installed or removed.Need to get 0 B/15.7 MB of archives.After this operation, 166 MB of additional disk space will be used.Do you want to continue? [Y/n] y(Reading database ... 291757 files and directories currently installed.)Preparing to unpack .../fpc-source-3.0.0_3.0.0+dfsg-2_all.deb ...Unpacking fpc-source-3.0.0 (3.0.0+dfsg-2) ...dpkg: error processing archive /var/cache/apt/archives/fpc-source-3.0.0_3.0.0+dfsg-2_all.deb (--unpack): trying to overwrite '/usr/share/fpcsrc/3.0.0/rtl/android/jvm/java_sys_android.inc', which is also in package fpc-src 3.0.0dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)Errors were encountered while processing: /var/cache/apt/archives/fpc-source-3.0.0_3.0.0+dfsg-2_all.debE: Sub-process /usr/bin/dpkg returned an error code (1)