I saw some have problems installing Lazarus 1.8.0 on Ubuntu, so I decided to test it. No problems, the installation process run smoothly with some non-critical messages.
My system:
- Ubuntu Mate 17.10 64-bit
- Previous Lazarus version was 1.8.0RC5
- Installation tool: Gdebi (read more
https://simple.wikipedia.org/wiki/Gdebi)
- My home folder:
/home/handoko- Installation files downloaded from
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.8.0/I use
Gdebi (instead of sudo dpkg), which is more user friendly and it can provide you some useful information if the installation fails. Also I recommend
Synaptic Package Manager, which can be useful if you want to fix broken packages and do version locking.
On this test, I did not do version locking and I also did not reboot my computer. The test result was: it installed successfully, I can compile my old projects. Lets see, will Ubuntu downgrade my FPC or not, the version is not locked.
My installation process:
01. I downloaded all the 3 deb files
02. Double clicked fpc_3.0.4-1_amd64.deb (it will start Gdebi)
03. Got a warning: "An older version is available ..." (see pic: Message 1)
04. Ignored the message and continue the installation
05. Got an error: "Error: Breaks existing package ..." (see pic: Message 2)
06. Ignored the error and the fpc installion will be finished
07. Double clicked and installed fpc-src_3.0.4-1_amd64.deb
07. Double clicked and installed lazarus-project_1.8.0-0_amd64.deb
08. Started Lazarus and got a message "Multiple lazarus found" (see pic: Message 3)
09. I chose Abort and deleted the "bin" folder: /home/handoko/.lazarus/bin
10. Started Lazarus again and got a message "Incorrect configuration ..." (see pic: Message 4)
11. I chose Update info
12 And got a message "Upgrade configuration" (see pic: Message 5)
12. I chose Upgrade
13. Well done, everything is working correctly nowNote:
If you already have fpc/fpc-source/Lazarus installed, you have remove them before installing version 1.8.0. I used Synaptic Package Manager to do
complete removal of all the 3 packages (fpc/fpc-source/Lazarus).
You may need to do cleaning up if you installation become messy.
More information about FPC/Lazarus installation,
cleaning up and
version locking can be read here:
http://forum.lazarus.freepascal.org/index.php/topic,38828.msg265293.html#msg265293---edit---
I also tested how to install Lazarus 1.8.0 on Ubuntu 16.04, read here if you're interested:
http://forum.lazarus.freepascal.org/index.php/topic,39281.msg269112.html#msg269112