Forum > Linux
[SOLVED] Need Help Installing FPC
(1/1)
guest48180:
Hello Forum:
I have a helluva mess here and need help straightening it out so I can use fpc 3.0.4-2 and Lazarus 1.8.2-0. It seems I had an older version of fpc already installed and the fpc deb files wouldn't take. This is what I get from the package installer:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---dpkg: regarding .../fpc_3.0.4-2_amd64.deb containing fpc: fpc conflicts with fpc fpc-3.0.0 provides fpc and is present and installed. dpkg: error processing archive /home/floyd/Downloads/fpc_3.0.4-2_amd64.deb (--install): conflicting packages - not installing fpcSelecting previously unselected package fpc.dpkg: regarding .../fpc_3.0.4-2_amd64.deb containing fpc: fpc conflicts with fp-compiler fp-compiler (version 3.0.0+dfsg-2) is present and installed. fp-compiler-3.0.0 provides fp-compiler and is present and installed. dpkg: error processing archive /home/floyd/Downloads/fpc_3.0.4-2_amd64.deb (--install): conflicting packages - not installing fpcdpkg: regarding .../fpc_3.0.4-2_amd64.deb containing fpc: fpc conflicts with fp-compiler fp-compiler (version 3.0.0+dfsg-2) is present and installed. fp-compiler-3.0.0 provides fp-compiler and is present and installed. dpkg: error processing archive /home/floyd/Downloads/fpc_3.0.4-2_amd64.deb (--install): conflicting packages - not installing fpc
So I did this:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---floyd@floyd-HP-Pavilion-Desktop-PC-570-p0xx ~ $ sudo apt-get remove --purge fpc*[sudo] password for floyd: Reading package lists... DoneBuilding dependency tree Reading state information... DoneNote, selecting 'fpc-3.0.0' for glob 'fpc*'Note, selecting 'fpc' for glob 'fpc*'Note, selecting 'fpc-src' for glob 'fpc*'Note, selecting 'fpc-abi-3.0.0' for glob 'fpc*'Note, selecting 'fpc-source' for glob 'fpc*'Note, selecting 'fpc-source-3.0.0' for glob 'fpc*'Note, selecting 'fp-units-rtl-3.0.0' instead of 'fpc-abi-3.0.0'Package 'fpc-src' is not installed, so not removedPackage 'fpc-source' is not installed, so not removedThe following packages were automatically installed and are no longer required: fp-ide-3.0.0 fp-units-base-3.0.0 fp-units-db-3.0.0 fp-units-fcl-3.0.0 fp-units-fv-3.0.0 fp-units-gfx-3.0.0 fp-units-gtk2-3.0.0 fp-units-math-3.0.0 fp-units-misc-3.0.0 fp-units-multimedia-3.0.0 fp-units-net-3.0.0 gir1.2-gtk-2.0 libatk1.0-dev libcairo-script-interpreter2 libcairo2-dev libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev libgtk2.0-dev libharfbuzz-dev libharfbuzz-gobject0 libice-dev libpango1.0-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpng12-dev libsm-dev libxcb-shm0-dev libxcomposite-dev libxcursor-dev libxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev x11proto-composite-dev x11proto-randr-dev x11proto-render-dev x11proto-xinerama-devUse 'sudo apt autoremove' to remove them.The following packages will be REMOVED: fpc* fpc-3.0.0* fpc-source-3.0.0*0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.After this operation, 167 MB disk space will be freed.Do you want to continue? [Y/n] (Reading database ... 358524 files and directories currently installed.)Removing fpc (3.0.0+dfsg-2) ...Removing fpc-3.0.0 (3.0.0+dfsg-2) ...Removing fpc-source-3.0.0 (3.0.0+dfsg-2) ...
Then I ran autoremove:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---floyd@floyd-HP-Pavilion-Desktop-PC-570-p0xx ~ $ sudo apt autoremove Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages will be REMOVED: fp-ide-3.0.0 fp-units-base-3.0.0 fp-units-db-3.0.0 fp-units-fcl-3.0.0 fp-units-fv-3.0.0 fp-units-gfx-3.0.0 fp-units-gtk2-3.0.0 fp-units-math-3.0.0 fp-units-misc-3.0.0 fp-units-multimedia-3.0.0 fp-units-net-3.0.0 gir1.2-gtk-2.0 libatk1.0-dev libcairo-script-interpreter2 libcairo2-dev libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev libgtk2.0-dev libharfbuzz-dev libharfbuzz-gobject0 libice-dev libpango1.0-dev libpcre3-dev libpcre32-3 libpcrecpp0v5 libpixman-1-dev libpng12-dev libsm-dev libxcb-shm0-dev libxcomposite-dev libxcursor-dev libxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev x11proto-composite-dev x11proto-randr-dev x11proto-render-dev x11proto-xinerama-dev0 upgraded, 0 newly installed, 42 to remove and 0 not upgraded.After this operation, 139 MB disk space will be freed.Do you want to continue? [Y/n] (Reading database ... 350263 files and directories currently installed.)Removing fp-ide-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-gfx-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-gtk2-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-fcl-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-base-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-db-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-fv-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-math-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-misc-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-multimedia-3.0.0 (3.0.0+dfsg-2) ...Removing fp-units-net-3.0.0 (3.0.0+dfsg-2) ...Removing libgtk2.0-dev (2.24.30-1ubuntu1.16.04.2) ...Removing gir1.2-gtk-2.0 (2.24.30-1ubuntu1.16.04.2) ...Removing libatk1.0-dev (2.18.0-1) ...Removing libpango1.0-dev (1.38.1-1) ...Removing libcairo2-dev (1.14.6-1) ...Removing libcairo-script-interpreter2:amd64 (1.14.6-1) ...Removing libxft-dev (2.3.2-1) ...Removing libfontconfig1-dev:amd64 (2.11.94-0ubuntu1.1) ...Removing libfreetype6-dev:amd64 (2.6.1-0.1ubuntu2.3) ...Removing libgdk-pixbuf2.0-dev (2.32.2-1ubuntu1.4) ...Removing libglib2.0-dev (2.48.2-0ubuntu1) ...Removing libharfbuzz-dev (1.0.1-1ubuntu0.1) ...Removing libharfbuzz-gobject0:amd64 (1.0.1-1ubuntu0.1) ...Removing libsm-dev:amd64 (2:1.2.2-1) ...Removing libice-dev:amd64 (2:1.0.9-1) ...Removing libpcre3-dev:amd64 (2:8.38-3.1) ...Removing libpcre32-3:amd64 (2:8.38-3.1) ...Removing libpcrecpp0v5:amd64 (2:8.38-3.1) ...Removing libpixman-1-dev (0.33.6-1) ...Removing libpng12-dev:amd64 (1.2.54-1ubuntu1) ...Removing libxcb-shm0-dev:amd64 (1.11.1-1ubuntu1) ...Removing libxcomposite-dev (1:0.4.4-1) ...Removing libxcursor-dev:amd64 (1:1.1.14-1ubuntu0.16.04.1) ...Removing libxi-dev (2:1.7.6-1) ...Removing libxinerama-dev:amd64 (2:1.1.3-1) ...Removing libxrandr-dev:amd64 (2:1.5.0-1) ...Removing libxrender-dev:amd64 (1:0.9.9-0ubuntu1) ...Removing x11proto-composite-dev (1:0.4.2-2) ...Removing x11proto-randr-dev (1.5.0-1) ...Removing x11proto-render-dev (2:0.11.1-2) ...Removing x11proto-xinerama-dev (1.2.1-2) ...Processing triggers for man-db (2.7.5-1) ...Processing triggers for libc-bin (2.23-0ubuntu10) ...Processing triggers for doc-base (0.10.7) ...Processing 2 removed doc-base files...Registering documents with scrollkeeper...Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu1) ...floyd@floyd-HP-Pavilion-Desktop-PC-570-p0xx ~ $
And when I tried to reinstall the new fpc again, I got the same msg:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---dpkg: regarding .../fpc_3.0.4-2_amd64.deb containing fpc: fpc conflicts with fpc fpc-3.0.0 provides fpc and is present and installed. dpkg: error processing archive /home/floyd/Downloads/fpc_3.0.4-2_amd64.deb (--install): conflicting packages - not installing fpcSelecting previously unselected package fpc.dpkg: regarding .../fpc_3.0.4-2_amd64.deb containing fpc: fpc conflicts with fp-compiler fp-compiler (version 3.0.0+dfsg-2) is present and installed. fp-compiler-3.0.0 provides fp-compiler and is present and installed. dpkg: error processing archive /home/floyd/Downloads/fpc_3.0.4-2_amd64.deb (--install): conflicting packages - not installing fpcdpkg: regarding .../fpc_3.0.4-2_amd64.deb containing fpc: fpc conflicts with fp-compiler fp-compiler (version 3.0.0+dfsg-2) is present and installed. fp-compiler-3.0.0 provides fp-compiler and is present and installed. dpkg: error processing archive /home/floyd/Downloads/fpc_3.0.4-2_amd64.deb (--install): conflicting packages - not installing fpcdpkg: regarding .../fpc_3.0.4-2_amd64.deb containing fpc: fpc conflicts with fp-compiler fp-compiler (version 3.0.0+dfsg-2) is present and installed. fp-compiler-3.0.0 provides fp-compiler and is present and installed. dpkg: error processing archive /home/floyd/Downloads/fpc_3.0.4-2_amd64.deb (--install): conflicting packages - not installing fpc
I do NOT want to reinstall my OS to fix this. But that's all I know to do. Does someone know how I can install fpc 3.0.4-2 without doing that?
Handoko:
Maybe this thread can help you:
https://forum.lazarus.freepascal.org/index.php/topic,40230.msg277736.html#msg277736
guest48180:
BAM!! Worked like a charm! A million thanks, Handoko.
Navigation
[0] Message Index