Recent

Author Topic: Ubuntu Update screwed up  (Read 10688 times)

Ruptor

  • Full Member
  • ***
  • Posts: 191
Ubuntu Update screwed up
« on: August 06, 2016, 02:49:40 pm »
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. :o
Code: Pascal  [Select][+][-]
  1. paul@paul-LIFEBOOK-T4210:~$ sudo apt-get install -f
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. Correcting dependencies... Done
  6. The following packages were automatically installed and are no longer required:
  7.   lazarus-1.6 lazarus-doc-1.6 lazarus-ide-1.6 lazarus-ide-gtk2-1.6
  8.   lazarus-src-1.6 lcl-1.6 lcl-gtk2-1.6 lcl-nogui-1.6 lcl-units-1.6
  9.   lcl-utils-1.6 libpango1.0-0 libpangox-1.0-0 linux-headers-4.4.0-21
  10.   linux-headers-4.4.0-21-generic linux-image-4.4.0-21-generic
  11.   linux-image-extra-4.4.0-21-generic
  12. Use 'sudo apt autoremove' to remove them.
  13. The following additional packages will be installed:
  14.   fp-compiler-3.0.0 fp-units-base-3.0.0 fp-units-fcl-3.0.0 fp-units-gtk2-3.0.0
  15.   fp-units-rtl-3.0.0 fp-utils-3.0.0 fpc-source-3.0.0
  16. Suggested packages:
  17.   fp-docs-3.0.0 mingw32-binutils uuid-dev
  18. The following NEW packages will be installed
  19.   fp-compiler-3.0.0 fp-units-base-3.0.0 fp-units-fcl-3.0.0 fp-units-gtk2-3.0.0
  20.   fp-units-rtl-3.0.0 fp-utils-3.0.0 fpc-source-3.0.0
  21. 0 to upgrade, 7 to newly install, 0 to remove and 27 not to upgrade.
  22. 13 not fully installed or removed.
  23. Need to get 0 B/27.5 MB of archives.
  24. After this operation, 246 MB of additional disk space will be used.
  25. Do you want to continue? [Y/n] y
  26. Preconfiguring packages ...
  27. (Reading database ... 319725 files and directories currently installed.)
  28. Preparing to unpack .../fp-units-rtl-3.0.0_3.0.0+dfsg-2_i386.deb ...
  29. Unpacking fp-units-rtl-3.0.0 (3.0.0+dfsg-2) ...
  30. dpkg: error processing archive /var/cache/apt/archives/fp-units-rtl-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack):
  31.  trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/rtl/si_c21g.ppu', which is also in package fpc 3.0.0
  32. dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
  33. Preparing to unpack .../fp-compiler-3.0.0_3.0.0+dfsg-2_i386.deb ...
  34. Unpacking fp-compiler-3.0.0 (3.0.0+dfsg-2) ...
  35. dpkg: error processing archive /var/cache/apt/archives/fp-compiler-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack):
  36.  trying to overwrite '/usr/lib/fpc/3.0.0/ppc386', which is also in package fpc 3.0.0
  37. dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
  38. Preparing to unpack .../fp-units-base-3.0.0_3.0.0+dfsg-2_i386.deb ...
  39. Unpacking fp-units-base-3.0.0 (3.0.0+dfsg-2) ...
  40. dpkg: error processing archive /var/cache/apt/archives/fp-units-base-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack):
  41.  trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/ncurses/ocrt.o', which is also in package fpc 3.0.0
  42. dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
  43. Preparing to unpack .../fp-units-fcl-3.0.0_3.0.0+dfsg-2_i386.deb ...
  44. Unpacking fp-units-fcl-3.0.0 (3.0.0+dfsg-2) ...
  45. dpkg: error processing archive /var/cache/apt/archives/fp-units-fcl-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack):
  46.  trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/fcl-passrc/paswrite.ppu', which is also in package fpc 3.0.0
  47. No apport report written because MaxReports has already been reached
  48.                                                                     dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
  49. Preparing to unpack .../fp-units-gtk2-3.0.0_3.0.0+dfsg-2_i386.deb ...
  50. Unpacking fp-units-gtk2-3.0.0 (3.0.0+dfsg-2) ...
  51. dpkg: error processing archive /var/cache/apt/archives/fp-units-gtk2-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack):
  52.  trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/cairo/cairoft.o', which is also in package fpc 3.0.0
  53. No apport report written because MaxReports has already been reached
  54.                                                                     dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
  55. Preparing to unpack .../fpc-source-3.0.0_3.0.0+dfsg-2_all.deb ...
  56. Unpacking fpc-source-3.0.0 (3.0.0+dfsg-2) ...
  57. dpkg: error processing archive /var/cache/apt/archives/fpc-source-3.0.0_3.0.0+dfsg-2_all.deb (--unpack):
  58.  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
  59. No apport report written because MaxReports has already been reached
  60.                                                                     dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
  61. Preparing to unpack .../fp-utils-3.0.0_3.0.0+dfsg-2_i386.deb ...
  62. Unpacking fp-utils-3.0.0 (3.0.0+dfsg-2) ...
  63. dpkg: error processing archive /var/cache/apt/archives/fp-utils-3.0.0_3.0.0+dfsg-2_i386.deb (--unpack):
  64.  trying to overwrite '/usr/lib/fpc/3.0.0/units/i386-linux/utils-lexyacc/lexlib.o', which is also in package fpc 3.0.0
  65. No apport report written because MaxReports has already been reached
  66.                                                                     Errors were encountered while processing:
  67.  /var/cache/apt/archives/fp-units-rtl-3.0.0_3.0.0+dfsg-2_i386.deb
  68.  /var/cache/apt/archives/fp-compiler-3.0.0_3.0.0+dfsg-2_i386.deb
  69.  /var/cache/apt/archives/fp-units-base-3.0.0_3.0.0+dfsg-2_i386.deb
  70.  /var/cache/apt/archives/fp-units-fcl-3.0.0_3.0.0+dfsg-2_i386.deb
  71.  /var/cache/apt/archives/fp-units-gtk2-3.0.0_3.0.0+dfsg-2_i386.deb
  72.  /var/cache/apt/archives/fpc-source-3.0.0_3.0.0+dfsg-2_all.deb
  73.  /var/cache/apt/archives/fp-utils-3.0.0_3.0.0+dfsg-2_i386.deb
  74. E: Sub-process /usr/bin/dpkg returned an error code (1)
  75.  

Thaddy

  • Hero Member
  • *****
  • Posts: 14211
  • Probably until I exterminate Putin.
Re: Ubuntu Update screwed up
« Reply #1 on: August 06, 2016, 04:09:28 pm »
I 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.
Specialize a type, not a var.

Ruptor

  • Full Member
  • ***
  • Posts: 191
Re: Ubuntu Update screwed up
« Reply #2 on: August 06, 2016, 10:01:56 pm »
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.
« Last Edit: August 06, 2016, 10:18:52 pm by Ruptor »

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Ubuntu Update screwed up
« Reply #3 on: August 06, 2016, 10:21:35 pm »
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

  • Full Member
  • ***
  • Posts: 191
Re: Ubuntu Update screwed up
« Reply #4 on: August 07, 2016, 12:00:12 am »
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

  • Hero Member
  • *****
  • Posts: 2737
Re: Ubuntu Update screwed up
« Reply #5 on: August 07, 2016, 12:13:47 am »
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

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Ubuntu Update screwed up
« Reply #6 on: August 07, 2016, 04:59:39 am »
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!
« Last Edit: August 07, 2016, 06:00:10 am by Handoko »

Ruptor

  • Full Member
  • ***
  • Posts: 191
Re: Ubuntu Update screwed up
« Reply #7 on: August 07, 2016, 03:12:12 pm »
Hi Phil
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.
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

  • Full Member
  • ***
  • Posts: 191
Re: Ubuntu Update screwed up
« Reply #8 on: August 07, 2016, 03:18:11 pm »
Hi Handoko
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.
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  >:(
« Last Edit: August 07, 2016, 03:23:14 pm by Ruptor »

Ruptor

  • Full Member
  • ***
  • Posts: 191
Re: Ubuntu Update screwed up
« Reply #9 on: August 07, 2016, 04:45:25 pm »
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

  • Full Member
  • ***
  • Posts: 191
Re: Ubuntu Update screwed up
« Reply #10 on: September 26, 2016, 03:12:13 pm »
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

  • Hero Member
  • *****
  • Posts: 1848
Re: Ubuntu Update screwed up
« Reply #11 on: September 26, 2016, 05:08:33 pm »
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. :-\

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
« Last Edit: September 26, 2016, 06:26:19 pm by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Ruptor

  • Full Member
  • ***
  • Posts: 191
Re: Ubuntu Update screwed up
« Reply #12 on: September 26, 2016, 10:03:33 pm »
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

  • Full Member
  • ***
  • Posts: 100
Re: Ubuntu Update screwed up
« Reply #13 on: September 26, 2016, 11:38:29 pm »
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,

« Last Edit: September 26, 2016, 11:42:12 pm by Scoops »

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Ubuntu Update screwed up
« Reply #14 on: September 27, 2016, 05:18:21 am »
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.

 

TinyPortal © 2005-2018