Now it is totally screwed up. Lazarus itself seemed to install. When I run Lazarus, "Configure Lazarus IDE" gives an error "Warning: wrong version in ide/version.inc: 1.6.2". I did a purge and autoremove of the install from the Ubuntu repository before trying to install. If I skip past that and run the IDE anyway, the first time it showed that lazopenglcontext was already installed, but the opengl tab does not appear on the tool bar. I tried to remove and that gave an error that I did not copy, however lazopenglcontext did then move from installed to available. When I try to install the package it complains about not being able to find LCLProc in openglcontext as shown here:
uses
Classes, SysUtils, LCLProc
All of which probably stems from the installation. There were a few dependencies that had to be resolved to get all of the packages to install. I got through them, but when re-installing libgl1-mesa-dev I get the following
eric@eric-HP-ProBook-4710s:~$ sudo apt-get install libgl1-mesa-dev
[sudo] password for eric:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgl1-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 installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Doing sudo apt-get -f install results in:
[sudo] password for eric:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
fpc-source-3.0.0
The following NEW packages will be installed:
fpc-source-3.0.0
0 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.0
dpkg-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.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Is there anything I can do besides uninstalling everything and starting over?