Ubuntu Update screwed up lazarus / 1-Linux ---------------------------------------------------------------------- Ruptor · 2016-08-06 12:49 I installed Lazarus DEB 32 version from here http://www.lazarus-ide.org/index.php?page=downloads It appeared to be OK but it gave two Lazarus icons in the installed software list where one was labeled Lazarus(1.6) and the other was just Lazarus. Unfortunately after an update that included fpc updates my Ubuntu update system is screwed up and can't do further updates. I ran the things in the Ubuntu suggested in the terminal to try and fix things like unmet dependencies but I can't fix it. I get this when I do the suggested command but I don't know what to do about it. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i paul@paul- LIFEBOOK-T4210:~$ sudo apt-get install -fReading package lists... DoneBuilding dependency tree       Reading state information... DoneCorrecting dependencies... DoneThe following packages were automatically installed and are no longer required:  lazarus-1.6 lazarus-doc-1.6 lazarus-ide-1.6 lazarus-ide-gtk2-1.6  lazarus-src-1.6 lcl-1.6 lcl-gtk2-1.6 lcl-nogui-1.6 lcl-units-1.6  lcl-utils-1.6 libpango1.0-0 libpangox-1.0-0 linux-headers-4.4.0-21  linux- headers-4.4.0-21-generic linux-image-4.4.0-21-generic  linux-image- extra-4.4.0-21-genericUse 'sudo apt autoremove' to remove them.The following additional packages will be installed:  fp-compiler-3.0.0 fp-units-base-3.0.0 fp-units-fcl-3.0.0 fp-units-gtk2-3.0.0  fp-units- rtl-3.0.0 fp-utils-3.0.0 fpc-source-3.0.0Suggested packages:  fp- docs-3.0.0 mingw32-binutils uuid-devThe following NEW packages will be installed  fp-compiler-3.0.0 fp-units-base-3.0.0 fp-units-fcl-3.0.0 fp-units-gtk2-3.0.0  fp-units-rtl-3.0.0 fp-utils-3.0.0 fpc- source-3.0.00 to upgrade, 7 to newly install, 0 to remove and 27 not to upgrade.13 not fully installed or removed.Need to get 0 B/27.5 MB of archives.After this operation, 246 MB of additional disk space will be used.Do you want to continue? [Y/n] yPreconfiguring packages ...(Reading database ... 319725 files and directories currently installed.)Preparing to unpack .../fp-units- rtl-3.0.0_3.0.0+dfsg-2_i386.deb ...Unpacking fp-units-rtl-3.0.0 (3.0.0+dfsg-2) ...dpkg: error processing archive /var/cache/apt/archives/fp-units-rtl-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack): trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/rtl/si_c21g.ppu', which is also in package fpc 3.0.0dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)Preparing to unpack .../fp- compiler-3.0.0_3.0.0+dfsg-2_i386.deb ...Unpacking fp-compiler-3.0.0 (3.0.0+dfsg-2) ...dpkg: error processing archive /var/cache/apt/archives/fp-compiler-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack): trying to overwrite '/usr/lib/fpc/3.0.0/ppc386', which is also in package fpc 3.0.0dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)Preparing to unpack .../fp-units- base-3.0.0_3.0.0+dfsg-2_i386.deb ...Unpacking fp-units-base-3.0.0 (3.0.0+dfsg-2) ...dpkg: error processing archive /var/cache/apt/archives/fp-units-base-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack): trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/ncurses/ocrt.o', which is also in package fpc 3.0.0dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)Preparing to unpack .../fp-units- fcl-3.0.0_3.0.0+dfsg-2_i386.deb ...Unpacking fp-units-fcl-3.0.0 (3.0.0+dfsg-2) ...dpkg: error processing archive /var/cache/apt/archives/fp-units-fcl-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack): trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/fcl-passrc/paswrite.ppu', which is also in package fpc 3.0.0No apport report written because MaxReports has already been reached                                                                  dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)Preparing to unpack .../fp-units- gtk2-3.0.0_3.0.0+dfsg-2_i386.deb ...Unpacking fp-units-gtk2-3.0.0 (3.0.0+dfsg-2) ...dpkg: error processing archive /var/cache/apt/archives/fp-units-gtk2-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack): trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/cairo/cairoft.o', which is also in package fpc 3.0.0No apport report written because MaxReports has already been reached                                                                  dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)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.0No apport report written because MaxReports has already been reached                                                                  dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)Preparing to unpack .../fp- utils-3.0.0_3.0.0+dfsg-2_i386.deb ...Unpacking fp-utils-3.0.0 (3.0.0+dfsg-2) ...dpkg: error processing archive /var/cache/apt/archives/fp-utils-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack): trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/utils-lexyacc/lexlib.o', which is also in package fpc 3.0.0No apport report written because MaxReports has already been reached                                                                  Errors were encountered while processing: /var/cache/apt/archives/fp-units- rtl-3.0.0_3.0.0+dfsg-2_i386.deb /var/cache/apt/archives/fp- compiler-3.0.0_3.0.0+dfsg-2_i386.deb /var/cache/apt/archives/fp-units- base-3.0.0_3.0.0+dfsg-2_i386.deb /var/cache/apt/archives/fp-units- fcl-3.0.0_3.0.0+dfsg-2_i386.deb /var/cache/apt/archives/fp-units- gtk2-3.0.0_3.0.0+dfsg-2_i386.deb /var/cache/apt/archives/fpc- source-3.0.0_3.0.0+dfsg-2_all.deb /var/cache/apt/archives/fp- utils-3.0.0_3.0.0+dfsg-2_i386.debE: Sub-process /usr/bin/dpkg returned an error code (1) ---------------------------------------------------------------------- Thaddy · 2016-08-06 14:09 Quote from: Ruptor on August 06, 2016, 02:49:40 pmI installed Lazarus DEB 32 version from here http://www.lazarus-ide.org/index.php?page=downloads Should download from here: https://sourceforge.net/projects/lazarus/files/ as per the menu entry to the left on this forum. ---------------------------------------------------------------------- Ruptor · 2016-08-06 20:01 Hi Thaddy     That is the same location. Even if I uninstall Lazarus and fpc the updating is still screwed because it is still looking for the unmet dependencies that fpc left behind. ---------------------------------------------------------------------- Phil · 2016-08-06 20:21 I sympathize. I've always found apt-get to be a source of great uncertainty on Ubuntu. Try downloading the 3 .deb files from the Lazarus site given above. Then install them yourself: sudo dpkg -i fpc_3.0.0-151205_i386.deb sudo dpkg -i fpc-src_3.0.0-151205_i386.deb sudo dpkg -i lazarus_1.6-0_i386.deb -Phil ---------------------------------------------------------------------- Ruptor · 2016-08-06 22:00 Hi Phil     I did that but my update system is still screwed up. I think although the package manager accepted the previous remove commands it didn't do anything since when I manually installed it said installing over so the Lazarus code was still there. The Lazarus (1.6) icon says it can't find the executable and comes up as 1.6+dfsg-1 what ever that means. The other icon Lazarus appears to run normally. The main thing is the fpc updating information is wrong and has screwed up my whole Ubuntu update software. This is just wrong and particularly painful for people like me that are not experts with Linux being left with a computer that doesn't work. At one point I found information about how to remove the offending package from the list but I edited the list file only to find something put the offending line back in the file. It is all too deep for me to fix. ---------------------------------------------------------------------- Phil · 2016-08-06 22:13 You might save time just by re-installing Ubuntu. I run it in VirtualBox on my Mac and upgrading to 14.04 a while back borked it competely, so I just deleted the .vdi and created a new one with 14.04. Painful, I know. Now Ubu is nagging me to upgrade to 16.04. Nothing doing. -Phil ---------------------------------------------------------------------- Handoko · 2016-08-07 02:59 Hello Ruptor, have you solved the issue? I ever had bad experience installing Lazarus/FPC on Ubuntu 64-bit. I use Synaptec Package manager, which is handy tool to understand the package dependencies and fix broken packages. Sometimes the fixing broken package doesn't work or maybe there is a bug in Synaptec/Ubuntu/Linux, a simple computer restarting does the magic. It is good to perform a complete removing of your previous Lazarus/FPC/FPC-src installation before you install the new packages. I use Synaptic to search with this keyword: "fp*". Uninstall them but pay attention not all item started with fp* are FPC related. This is the steps I use for complete uninstall & install Lazarus/FPC: 1. Uninstall lazarus, fpc, fpc-src (using Synaptec Package Manager) 2. Delete ~/.lazarus, except: editoroptions, environmentoption 4. Delete /etc/fp.* 3. Delete /usr/share/fpcsrc 5. Delete /usr/lib/fpc 6. Delete /usr/bin/ppc* 7. Install fpc_3.0.0-151205_amd64.deb 8. Install fpc-src_3.0.0-151205_amd64.deb 9. Install lazarus_1.6-0_amd64.deb On the step #2, some files are kept because I customized my Lazarus settings and I want to keep it. On step #7 - #9, the file names maybe differ, depend on the version of you installation package. I found the step-by-step above very useful, so I saved it in my notepad files. Hope it can be useful for others. Good luck! ---------------------------------------------------------------------- Ruptor · 2016-08-07 13:12 Hi Phil Quote from: Phil on August 07, 2016, 12:13:47 amYou might save time just by re-installing Ubuntu. I run it in VirtualBox on my Mac and upgrading to 14.04 a while back borked it competely, so I just deleted the .vdi and created a new one with 14.04. Painful, I know. Now Ubu is nagging me to upgrade to 16.04. Nothing doing.I am running 16.04 that has done many updates and now has 200 Meg waiting but can't take place due to the Lazarus screw up. I have already installed Ubuntu before on an SSD thinking it was an SSD fault making the Lazarus install go wrong but that was before I understood what was going on. The SSD was small so I fitted a SATA with a new Ubuntu install and come across the same problem with Lazarus that I want to learn how to fix because I don't want to keep installing Ubuntu to fix every little problem or be scared of upgrades. ---------------------------------------------------------------------- Ruptor · 2016-08-07 13:18 Hi Handoko Quote from: Handoko on August 07, 2016, 04:59:39 amHello Ruptor, have you solved the issue? I ever had bad experience installing Lazarus/FPC on Ubuntu 64-bit. I use Synaptec Package manager, which is handy tool to understand the package dependencies and fix broken packages.I haven't fixed it yet. I will have a look at Synaptec and see if it can help. That is a useful list for making sure you get everything but my problem is in the lists that tell the updater what to look for and I don't know enough about their generator to figure out what to change yet. It would be great if a package manager could make it easier for me. Oh! yes I can't install Synaptec because of the faulty update system ---------------------------------------------------------------------- Ruptor · 2016-08-07 14:45 I have poked around in my system and found that unmet dependencies are coming from fpc packages that have this (= 3.0.0+dfsg-2) in the title. What is dfsg and what does it mean? The four problem packages are causing the bother but are not installed so I can't understand why the system worries about unmet things that are not installed. Any pointers would be appreciated. ---------------------------------------------------------------------- Ruptor · 2016-09-26 13:12 I am still stuck with not being able to put Lazarus on Ubuntu 16.04. Any which way I have tried the unmet dependencies need to be installed then the Lazarus packages get picked up and screw up the update system. I can't see a way of installing Lazarus because I am not proficient in Linux commands I am just a simple user. ---------------------------------------------------------------------- JD · 2016-09-26 15:08 Quote from: Ruptor on September 26, 2016, 03:12:13 pmI am still stuck with not being able to put Lazarus on Ubuntu 16.04. Any which way I have tried the unmet dependencies need to be installed then the Lazarus packages get picked up and screw up the update system. I can't see a way of installing Lazarus because I am not proficient in Linux commands I am just a simple user. You will be better off by reinstalling Ubuntu 16.04, doing a general system update after installation and then installing Lazarus IMHO. Linux dependencies are notoriously difficult to correct. JD ---------------------------------------------------------------------- Ruptor · 2016-09-26 20:03 Hi JD    I have reinstalled Ubuntu but I am not loading Lazarus because I found there is a reported bug for my problem so I will wait until it is fixed. I tried the fix they suggest but it doesn't work and the problem is deeper than they thought. I shall try running Lazarus in Wine at least I will be able to use my Ubuntu computer to write and compile but not make native code if it works in Wine. ---------------------------------------------------------------------- Scoops · 2016-09-26 21:38 hi all, one problem i had when installing Lazarus on ubuntu was once i had installed everything just from the debs, when my system updated the fpc was replaced with a previous version. Which killed the manual deb installation. From what i remember i had to disable automatic updates via synaptic for lazarus and fpc. maybe this doesnt help a buggered up system, but keep it in mind for your next clean ubuntu install, ---------------------------------------------------------------------- Handoko · 2016-09-27 03:18 I ever had same problem as Scoops too. My manual installed Lazarus was replaced with older version by Ubuntu update. So I had to uninstalled both Lazarus and FPC and installed again from the debs. After that, I never want to install or update Lazarus/FPC from Ubuntu or its update. ---------------------------------------------------------------------- mdalacu · 2016-09-27 05:16 Someone should start making snap packages fast for Lazarus....i think it is the best solution for our problem....build easy and upload fast to the store vs debs where you always had to wait for a new Ubuntu version. We just need someone to do it...i am not that guy...sorry. It was another opportunity to include Lazarus in Ubuntu Make project but i was unable to find any volunteer for that... http://forum.lazarus.freepascal.org/index.php/topic,30368.msg193195.ht ml#msg193195