How can I install additional packages using a file preinstall.sh? #586
Replies: 1 comment 6 replies
-
|
can you share a minimum reproducible of this? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone. There is a specific problem. I need to install packages via preinstall, but the problem is that nfpm cannot unpack the archive. The following errors occur:
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'hello' instead of './hello_1.0.3_amd64.deb' The following NEW packages will be installed: hello 0 upgraded, 1 newly installed, 0 to remove and 642 not upgraded. After this operation, 1 212 kB of additional disk space will be used. Get:1 /home/alexander/hello_test/hello_1.0.3_amd64.deb hello amd64 1.0.3 [570 kB] (Reading database ... 210508 files and directories currently installed.) Preparing to unpack .../hello_1.0.3_amd64.deb ... tar (child): php-8.1.13.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now dpkg: error processing archive /home/alexander/hello_test/hello_1.0.3_amd64.deb (--unpack): new hello package pre-installation script subprocess returned error exit status 2 Errors were encountered while processing: /home/alexander/hello_test/hello_1.0.3_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)I know that the missing packages can be registered in depends in nfpm.yaml, but I need it through the preinstall process
As an example in preinstall.sh I have only tar -xvzf 8.1.13.tar.gz (just an example). And at the same time, if you make this file executable, then everything works, but not through nfpm. I ask for help, thank you.
Beta Was this translation helpful? Give feedback.
All reactions