Recent

Author Topic: [SOLVED] Online Package Manager: Cannot install package"xxx.lpk".  (Read 4514 times)

andresayang

  • Full Member
  • ***
  • Posts: 124
Hello gents,

Sorry if "wrong section" ...

I face this problem on my linux installation of Lazarus, I can not install package via OPM, I always receive this message.
The message is not explicit, and I the interface is frozen (modal window) so I can not check what exactly is going on.

Files are well decompressed and saved under ~/.lazarus/onlinepackagemanager, but I have no choice that installing them manually.

As I could not install, I think first of some bad config files, so I did a fresh clean install (purging fpc, fpc_source and lazarus_project package, removing ~/.lazarus folder and re-installing lazarus from debian package (version stable 2.2.6).

If any one already face such troubles or have any idea ? (or maybe there is a "debug mode" flag i could set to investigate the trouble)

A+
« Last Edit: November 04, 2023, 10:48:57 am by andresayang »
Linux, Debian 12
Lazarus: always latest release

andresayang

  • Full Member
  • ***
  • Posts: 124
Re: Online Package Manager: Cannot install package"xxx.lpk".
« Reply #1 on: November 01, 2023, 01:24:47 pm »
Hello,

Well, I restart from "Fresh install" again, remove all "fpc-lazarus" files from all directories and still same thing:
- Package downloads well
- Package start compiling

- When OPM wants to install package, I have the error "Cannot install package"xxx.lpk" ... continue with next ..."

I really do not any clues from where it could come. Can this could come from my "home dir" not mounted on "/" (my /home is a link on /data/home) ?

Cheers
« Last Edit: November 01, 2023, 03:09:56 pm by andresayang »
Linux, Debian 12
Lazarus: always latest release

balazsszekely

  • Guest
Re: Online Package Manager: Cannot install package"xxx.lpk".
« Reply #2 on: November 01, 2023, 05:41:41 pm »
Hi andresayang,

OPM uses the package editing interface(unit PackageIntf) to install a package, basically the install is done via the IDE. If OPM fails the IDE also fails and I'm not sure why. Please try to change the local repository path(OPM -> Options -> Folders tab), make sure you have sufficient privileges.

af0815

  • Hero Member
  • *****
  • Posts: 1409
Re: Online Package Manager: Cannot install package"xxx.lpk".
« Reply #3 on: November 02, 2023, 06:10:28 am »
The first ultimative test is, compile Lazarus with Lazarus :-)

Menu Tools-> Configure build Lazarus
Activate Clean all and check the box switch after building to automatic

Then use the button Build

Lazarus must be rebuilded. If something goes wrong, you can see the message. And i never use the packages from the distro for Lazarus (a had often problems in the past).
regards
Andreas

andresayang

  • Full Member
  • ***
  • Posts: 124
Re: Online Package Manager: Cannot install package"xxx.lpk".
« Reply #4 on: November 03, 2023, 01:58:21 am »
Hi andresayang,

OPM uses the package editing interface(unit PackageIntf) to install a package, basically the install is done via the IDE. If OPM fails the IDE also fails and I'm not sure why. Please try to change the local repository path(OPM -> Options -> Folders tab), make sure you have sufficient privileges.

Well IDE compile fine, I install achordocking as usual ...

The first ultimative test is, compile Lazarus with Lazarus :-)

Menu Tools-> Configure build Lazarus
Activate Clean all and check the box switch after building to automatic

Then use the button Build

Lazarus must be rebuilded. If something goes wrong, you can see the message. And i never use the packages from the distro for Lazarus (a had often problems in the past).

I've try this too, no luck
Linux, Debian 12
Lazarus: always latest release

balazsszekely

  • Guest
Re: Online Package Manager: Cannot install package"xxx.lpk".
« Reply #5 on: November 03, 2023, 05:54:10 am »
@andresayang
Press No then check the messages window. Alternatively you can open the package manually and compile it. Either way the error message should be clearly visible in the messages window.

andresayang

  • Full Member
  • ***
  • Posts: 124
Re: Online Package Manager: Cannot install package"xxx.lpk".
« Reply #6 on: November 03, 2023, 05:05:57 pm »
@andresayang
Press No then check the messages window. Alternatively you can open the package manually and compile it. Either way the error message should be clearly visible in the messages window.

"Alternatively you can open the package manually and compile it.": well I have no choice if i want to install something, it is the way I'm proceeding.

"Press No then check the messages window.": Yep, when i do this, there is no more message, and the window close itself.

However gents thanks for your help, I hope we will find the reason !

(I'll try moving my "home" folder on / to see if it may comes from here, as it is the only difference I see between my Debian 12 station with trouble and another Debian 11 station where all is working fine).

Cheers
Linux, Debian 12
Lazarus: always latest release

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Online Package Manager: Cannot install package"xxx.lpk".
« Reply #7 on: November 03, 2023, 05:12:09 pm »
...as it is the only difference I see between my Debian 12 station with trouble and another Debian 11 station where all is working fine).
Note that practically there is no difference between these two. I run Free Pascal and Lazarus happily and without any issue from my home folder on both versions of debian.

Seems like strace might perhaps be a better fit to try and determine what might be wrong/different but do note that its output can be a bit challenging to grasp.
Today is tomorrow's yesterday.

andresayang

  • Full Member
  • ***
  • Posts: 124
Re: Online Package Manager: Cannot install package"xxx.lpk".
« Reply #8 on: November 03, 2023, 05:33:05 pm »
...as it is the only difference I see between my Debian 12 station with trouble and another Debian 11 station where all is working fine).
Note that practically there is no difference between these two. I run Free Pascal and Lazarus happily and without any issue from my home folder on both versions of debian.

Seems like strace might perhaps be a better fit to try and determine what might be wrong/different but do note that its output can be a bit challenging to grasp.

Thanks, I'll run it when installing same package on both station and try to get something.

Cheers
Linux, Debian 12
Lazarus: always latest release

andresayang

  • Full Member
  • ***
  • Posts: 124
Re: Online Package Manager: Cannot install package"xxx.lpk".
« Reply #9 on: November 03, 2023, 09:28:11 pm »
(I'll try moving my "home" folder on / to see if it may comes from here, as it is the only difference I see between my Debian 12 station with trouble and another Debian 11 station where all is working fine).

Well gents,

This is the reason why ! My home folder is not mounted on / but on /data/home with a link /home -> /data/home

I just try, moving one user home on /home directly. Before OPM was not working, now it install package correctly. Maybe this is a bug ?

Cheers

(Well my problem is not solved, but at least, we know the reason !)

Problem solved, solution here: https://forum.lazarus.freepascal.org/index.php/topic,65112.msg495718.html#msg495718
« Last Edit: November 04, 2023, 10:50:09 am by andresayang »
Linux, Debian 12
Lazarus: always latest release

 

TinyPortal © 2005-2018