Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

15 votes
4 answers
1266 views
`checkinstall` seems super dangerous (deletes /lib symlink...) - is there an alternative?
_Heads up: This is *not* a question about how to recover the system (easily done), but about `checkinstall`. Feel free to skip the "Background" section._ # Background _A little rant plus maybe a PSA..._ My scenario is this: I configure and make some application and then run `checkinstall` to create...
_Heads up: This is *not* a question about how to recover the system (easily done), but about checkinstall. Feel free to skip the "Background" section._ # Background _A little rant plus maybe a PSA..._ My scenario is this: I configure and make some application and then run checkinstall to create a .deb package for it. If it works, I find this useful: I see my custom software in apt output; I can put the package on hold to avoid apt trying to install the same package from upstream (if there is one), I can cleanly uninstall it with apt purge mypackage and so on and forth. Also, if other packages depend on this, they will see mine, and will not try to pull in conflicting upstream packages. Unfortunately I just found out that if during the install (when checkinstall seemingly internally calls make install) something goes wrong, then checkinstall will try to restore some files from "backup" (whatever or wherever that may be?). In my case checkinstall thought it would be a good idea to replace the somewhat important /lib symlink with a directory; the content of it was just terminfo/x/xterm-256color after checkinstall was done with it. Needless to say literally every binary in a Ubuntu-based installation depends on something from /lib so the system is immediately broken.
...
make: *** [Makefile:537: lisp] Error 2
****  Installation failed. Aborting package creation.
Restoring overwritten files from backup.../usr/bin/checkinstall: line 95: /usr/bin/gettext: No such file or directory
...
(/usr/bin/gettext of course is still there but like any other binary it requires at least libc.so which is in /lib). You can't even ls or ln anymore to fix the issue right there, the system cannot even shut down anymore as basically no new process can be started whatsoever. The situation is easily remedied booting from a rescue system, the original /usr/lib is thankfully still intact; only the symlink needs to be restored. Obviously I will not be using checkinstall anymore. I have no idea how it decided that this terminfo file needed "recovery", and don't even want to imagine what else it could have destroyed. # Question Is there a safe and easy way on a Ubuntu/Debian based system to create a .deb package for some custom software in a way similar to checkinstall but without the risk of trashing the system like this? Back when I decided to use checkinstall, all alternatives I looked at seemed to involve significant manual work - basically the same as a package maintainer would have to do - which would not be worth it to me. I do not want to distribute the .deb files, just be able to track them a little and make them visible to package management. Heck; is there a standard way to just fake a package and pretend it's installed, somehow?
AnoE (947 rep)
Jun 14, 2025, 07:26 AM • Last activity: Jun 21, 2025, 06:49 AM
1 votes
1 answers
115 views
Using checkinstall on Debian 12 fails for any package
On Debian 12 using `checkinstall` fails on every package I attempt to use it on. If the package has not been `make install`ed prior to using checkinstall, then checkinstall fails as soon as the installation process tries to see or touch a file it already installed (ie: running `ranlib` on a library...
On Debian 12 using checkinstall fails on every package I attempt to use it on. If the package has not been make installed prior to using checkinstall, then checkinstall fails as soon as the installation process tries to see or touch a file it already installed (ie: running ranlib on a library after it copies it). If one runs make install first to put the files on the filesystem, then checkinstall will fail because it won't be able to overwrite the existing file. I also tried with fakeroot which fails to be able to create temp files. I have tried --fstrans=yes to try and turn on filesystem translation, but this has no effect. As far as I can tell, checkinstall is simply broken. Is checkinstall hopelessly broken? This would surprise me as it was a staple for so long. Here is a log of the typical use failing: $ checkinstall --fstrans=yes checkinstall 1.6.3, Copyright 2010 Felipe Eduardo Sanchez Diaz Duran This software is released under the GNU GPL. ***************************************** **** Debian package creation selected *** ***************************************** This package will be built according to these values: 0 - Maintainer: [ kfitzner@artoo ] 1 - Summary: [ Apache Guacamole server ] 2 - Name: [ guacamole-server ] 3 - Version: [ 1.5.5 ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ checkinstall ] 7 - Architecture: [ amd64 ] 8 - Source location: [ guacamole-server-1.5.5 ] 9 - Alternate source location: [ ] 10 - Requires: [ ] 11 - Recommends: [ ] 12 - Suggests: [ ] 13 - Provides: [ guacamole-server ] 14 - Conflicts: [ ] 15 - Replaces: [ ] Enter a number to change any of them or press ENTER to continue: Installing with make install... ========================= Installation results =========================== Making install in src/libguac make: Entering directory '/home/kfitzner/devel/guacamole-server-1.5.5/src/libguac' Making install in . make: Entering directory '/home/kfitzner/devel/guacamole-server-1.5.5/src/libguac' make: Entering directory '/home/kfitzner/devel/guacamole-server-1.5.5/src/libguac' /usr/bin/mkdir -p '/usr/lib' /bin/bash ../../libtool --mode=install /usr/bin/install -c libguac.la '/usr/lib' libtool: install: /usr/bin/install -c .libs/libguac.so.24.0.0 /usr/lib/libguac.so.24.0.0 libtool: install: (cd /usr/lib && { ln -s -f libguac.so.24.0.0 libguac.so.24 || { rm -f libguac.so.24 && ln -s libguac.so.24.0.0 libguac.so.24; }; }) libtool: install: (cd /usr/lib && { ln -s -f libguac.so.24.0.0 libguac.so || { rm -f libguac.so && ln -s libguac.so.24.0.0 libguac.so; }; }) libtool: install: /usr/bin/install -c .libs/libguac.lai /usr/lib/libguac.la libtool: install: /usr/bin/install -c .libs/libguac.a /usr/lib/libguac.a libtool: install: chmod 644 /usr/lib/libguac.a chmod: cannot access '/usr/lib/libguac.a': No such file or directory make: *** [Makefile:649: install-libLTLIBRARIES] Error 1 make: Leaving directory '/home/kfitzner/devel/guacamole-server-1.5.5/src/libguac' make: *** [Makefile:1204: install-am] Error 2 make: Leaving directory '/home/kfitzner/devel/guacamole-server-1.5.5/src/libguac' make: *** [Makefile:1041: install-recursive] Error 1 make: Leaving directory '/home/kfitzner/devel/guacamole-server-1.5.5/src/libguac' make: *** [Makefile:545: install-recursive] Error 1 **** Installation failed. Aborting package creation. Cleaning up...OK Bye. }
Kurt Fitzner (237 rep)
Apr 27, 2025, 10:49 PM • Last activity: Apr 28, 2025, 01:19 AM
1 votes
2 answers
2780 views
Installing a deb file build with checkinstall on Ubuntu into a docker container based on Debian
I have compiled a C++ software on my Ubuntu 22.04 laptop, and used `checkinstall` to install it. This builds the corresponding `.deb` file and that's nice. But now I want to install that `.deb` file into a docker container based on "Debian GNU/Linux 11 (bullseye)" and `dpkg` shows this error: ``` #...
I have compiled a C++ software on my Ubuntu 22.04 laptop, and used checkinstall to install it. This builds the corresponding .deb file and that's nice. But now I want to install that .deb file into a docker container based on "Debian GNU/Linux 11 (bullseye)" and dpkg shows this error:
# dpkg --install mypackage-8.0.0_20221030-1_amd64.deb 
dpkg-deb: error: archive 'mypackage-8.0.0_20221030-1_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive mypackage-8.0.0_20221030-1_amd64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 mypackage-8.0.0_20221030-1_amd64.deb
How could I install this .deb file into my container without having to compile the software *again* (which will mean installing all the C++ building tools into my container, which I want to avoid...)?
s.k (511 rep)
Oct 30, 2022, 01:32 PM • Last activity: Oct 16, 2024, 06:30 PM
1 votes
1 answers
873 views
Using checkinstall in place of sudo cmake?
I've been trying to compile digikam and as part of that process needed to compile jasper. Jasper developers use `cmake`, I wanted to make a .deb package -- in fact was trying to learn how to make a package to share -- and so tried to do this (which errors as below): sudo checkinstall -D "sudo cmake...
I've been trying to compile digikam and as part of that process needed to compile jasper. Jasper developers use cmake, I wanted to make a .deb package -- in fact was trying to learn how to make a package to share -- and so tried to do this (which errors as below): sudo checkinstall -D "sudo cmake --build '/home/username/Downloads/jasper/buildlocal' --target install" Checkinstall run with sudo returns a "not found" error (end of 4th line) despite the command being passed to it working successfully:
Installing with sudo cmake --build '/home/username/Downloads/jasper/buildlocal' --target install...

========================= Installation results ===========================
/var/tmp/tmp.miGWYgiNzT/installscript.sh: 4: sudo cmake --build '/home/username/Downloads/jasper/buildlocal' --target install: not found

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.
To repeat, the command sudo cmake --build '/home/username/Downloads/jasper/buildlocal' --target install was successful, but neither sudo checkinstall, nor sudo cmake with plain checkinstall, nor using sudo for both, worked. How can I pass the correct invocation to checkinstall to make a package here. More details of all commands run at my blog, but I feel this is enough to answer the question.
pbhj (443 rep)
Jan 1, 2022, 10:51 PM • Last activity: Jul 25, 2024, 01:39 PM
0 votes
1 answers
939 views
Does using checkinstall instead of make install allow to easily remove dependencies?
I'm very new to Linux, so please excuse any *normie* errors/misconceptions. I want to learn how to build programs from source, but I'm having a hard time understanding how dependencies are managed when building. I have read that using ```checkinstall``` instead of ```make install``` will package a b...
I'm very new to Linux, so please excuse any *normie* errors/misconceptions. I want to learn how to build programs from source, but I'm having a hard time understanding how dependencies are managed when building. I have read that using
instead of
install
will package a built-form-source program so that uninstalling it is easier (easier as in being able to remove it with a package manager). Does that mean that uninstalling a program [that was installed with
] will also make it's dependencies 'removable' through the package manager (E.g.
autoremove
)?
ache (1 rep)
Jul 28, 2021, 11:30 AM • Last activity: Jul 28, 2021, 12:11 PM
2 votes
1 answers
404 views
Does checkinstall command add dependencies in the package?
I learned about [checkinstall][1] today. I installed [mdp][2] on Linux Lite installed on [VirtualBox][3] using `checkinstall`. `mdp` depends on a package called `libncursesw5-dev`, which wasn't installed on my machine. But when I ran `checkinstall`, `mdp` was installed and worked flawlessly. So, her...
I learned about checkinstall today. I installed mdp on Linux Lite installed on VirtualBox using checkinstall. mdp depends on a package called libncursesw5-dev, which wasn't installed on my machine. But when I ran checkinstall, mdp was installed and worked flawlessly. So, here's what I need to know from you, does checkinstall install the dependencies and pack it in the .deb, .rpm, etc. files? > **NOTE:** And yes, since I'm using Linux Lite on VirtualBox, I took a snapshot of the machine and used make instead of checkinstall, and make threw an error to install the dependencies first.
Wade Wayne (121 rep)
Jul 2, 2021, 02:05 PM • Last activity: Jul 2, 2021, 04:18 PM
0 votes
1 answers
487 views
Checkinstall fails to package QEMU to a deb
I compiled QEMU for my Raspberry pi and want to package it to a deb so I don't need to compile it every time I reflash (it takes a few hours). but every time I run `sudo checkinstall` I get errors (bellow what I think the error is, I includded the full output in a text file) ```bash FAILED: meson-in...
I compiled QEMU for my Raspberry pi and want to package it to a deb so I don't need to compile it every time I reflash (it takes a few hours). but every time I run sudo checkinstall I get errors (bellow what I think the error is, I includded the full output in a text file)
FAILED: meson-install 
/home/pi/.local/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
make: *** [Makefile:172: run-ninja] Error 1
make: Leaving directory '/home/pi/Documents/qemu/build'
make: *** [GNUmakefile:11: install] Error 2

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

pi@Twisterpi4-ultra-4gb:~/Documents/qemu $
full output: https://app.box.com/s/50lgoo1ibd59qlqim30tzczla2b6ibxq (can't post it here in any other way because its so long stack exchange thinks its spam). terminal output when using newer version of checkinstall:
pi@Twisterpi4-ultra-4gb:~/Documents/qemu $ sudo checkinstall

checkinstall 1.6.3, Copyright 2010 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.


The package documentation directory ./doc-pak does not exist. 
Should I create a default set of package docs?  [y]: y

Preparing package documentation...OK

Please choose the packaging method you want to use.
Slackware [S], RPM [R] or Debian [D]? d


Please write a description for the package.
End your description with an empty line or EOF.
>> QEMU 2.5.50 armhf for the raspberry pi 4
>> 

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values: 

0 -  Maintainer: [ root@Twisterpi4-ultra-4gb ]
1 -  Summary: [ QEMU 2.5.50 armhf for the raspberry pi 4 ]
2 -  Name:    [ qemu ]
3 -  Version: [ 20210123 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ armhf ]
8 -  Source location: [ qemu ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Recommends: [  ]
12 - Suggests: [  ]
13 - Provides: [ qemu ]
14 - Conflicts: [  ]
15 - Replaces: [  ]

Enter a number to change any of them or press ENTER to continue: 3
Enter new version: 
>> 2.5.50

This package will be built according to these values: 

0 -  Maintainer: [ root@Twisterpi4-ultra-4gb ]
1 -  Summary: [ QEMU 2.5.50 armhf for the raspberry pi 4 ]
2 -  Name:    [ qemu ]
3 -  Version: [ 2.5.50 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ armhf ]
8 -  Source location: [ qemu ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Recommends: [  ]
12 - Suggests: [  ]
13 - Provides: [ qemu ]
14 - Conflicts: [  ]
15 - Replaces: [  ]

Enter a number to change any of them or press ENTER to continue: 

Installing with make install...

========================= Installation results ===========================
changing dir to build for make "install"...
make: Entering directory '/home/pi/Documents/qemu/build'
[1/144] Generating qemu-version.h with a custom command (wrapped by meson to capture output)
[1/2] Installing files.
Installing subdir /home/pi/Documents/qemu/qga/run to /usr/local/var/run
Installing trace/trace-events-all to /usr/local/share/qemu
Installing qemu-system-aarch64 to /usr/local/bin
Stripping target 'qemu-system-aarch64' using strip.
Installing qemu-system-alpha to /usr/local/bin
Stripping target 'qemu-system-alpha' using strip.
Installing qemu-system-arm to /usr/local/bin
Stripping target 'qemu-system-arm' using strip.
Installing qemu-system-avr to /usr/local/bin
Stripping target 'qemu-system-avr' using strip.
Installing qemu-system-cris to /usr/local/bin
Stripping target 'qemu-system-cris' using strip.
Installing qemu-system-hppa to /usr/local/bin
Stripping target 'qemu-system-hppa' using strip.
Installing qemu-system-i386 to /usr/local/bin
Stripping target 'qemu-system-i386' using strip.
Installing qemu-system-m68k to /usr/local/bin
Stripping target 'qemu-system-m68k' using strip.
Installing qemu-system-microblaze to /usr/local/bin
Stripping target 'qemu-system-microblaze' using strip.
Installing qemu-system-microblazeel to /usr/local/bin
Stripping target 'qemu-system-microblazeel' using strip.
Installing qemu-system-mips to /usr/local/bin
Stripping target 'qemu-system-mips' using strip.
Installing qemu-system-mips64 to /usr/local/bin
Stripping target 'qemu-system-mips64' using strip.
Installing qemu-system-mips64el to /usr/local/bin
Stripping target 'qemu-system-mips64el' using strip.
Installing qemu-system-mipsel to /usr/local/bin
Stripping target 'qemu-system-mipsel' using strip.
Installing qemu-system-moxie to /usr/local/bin
Stripping target 'qemu-system-moxie' using strip.
Installing qemu-system-nios2 to /usr/local/bin
Stripping target 'qemu-system-nios2' using strip.
Installing qemu-system-or1k to /usr/local/bin
Stripping target 'qemu-system-or1k' using strip.
Installing qemu-system-ppc to /usr/local/bin
Stripping target 'qemu-system-ppc' using strip.
Installing qemu-system-ppc64 to /usr/local/bin
Stripping target 'qemu-system-ppc64' using strip.
Installing qemu-system-riscv32 to /usr/local/bin
Stripping target 'qemu-system-riscv32' using strip.
Installing qemu-system-riscv64 to /usr/local/bin
Stripping target 'qemu-system-riscv64' using strip.
Installing qemu-system-rx to /usr/local/bin
Stripping target 'qemu-system-rx' using strip.
Installing qemu-system-s390x to /usr/local/bin
Stripping target 'qemu-system-s390x' using strip.
Installing qemu-system-sh4 to /usr/local/bin
Stripping target 'qemu-system-sh4' using strip.
Installing qemu-system-sh4eb to /usr/local/bin
Stripping target 'qemu-system-sh4eb' using strip.
Installing qemu-system-sparc to /usr/local/bin
Stripping target 'qemu-system-sparc' using strip.
Installing qemu-system-sparc64 to /usr/local/bin
Stripping target 'qemu-system-sparc64' using strip.
Installing qemu-system-tricore to /usr/local/bin
Stripping target 'qemu-system-tricore' using strip.
Installing qemu-system-x86_64 to /usr/local/bin
Stripping target 'qemu-system-x86_64' using strip.
Installing qemu-system-xtensa to /usr/local/bin
Stripping target 'qemu-system-xtensa' using strip.
Installing qemu-system-xtensaeb to /usr/local/bin
Stripping target 'qemu-system-xtensaeb' using strip.
Installing qemu-aarch64 to /usr/local/bin
Stripping target 'qemu-aarch64' using strip.
Installing qemu-aarch64_be to /usr/local/bin
Stripping target 'qemu-aarch64_be' using strip.
Installing qemu-alpha to /usr/local/bin
Stripping target 'qemu-alpha' using strip.
Installing qemu-arm to /usr/local/bin
Stripping target 'qemu-arm' using strip.
Installing qemu-armeb to /usr/local/bin
Stripping target 'qemu-armeb' using strip.
Installing qemu-cris to /usr/local/bin
Stripping target 'qemu-cris' using strip.
Installing qemu-hppa to /usr/local/bin
Stripping target 'qemu-hppa' using strip.
Installing qemu-i386 to /usr/local/bin
Stripping target 'qemu-i386' using strip.
Installing qemu-m68k to /usr/local/bin
Stripping target 'qemu-m68k' using strip.
Installing qemu-microblaze to /usr/local/bin
Stripping target 'qemu-microblaze' using strip.
Installing qemu-microblazeel to /usr/local/bin
Stripping target 'qemu-microblazeel' using strip.
Installing qemu-mips to /usr/local/bin
Stripping target 'qemu-mips' using strip.
Installing qemu-mips64 to /usr/local/bin
Stripping target 'qemu-mips64' using strip.
Installing qemu-mips64el to /usr/local/bin
Stripping target 'qemu-mips64el' using strip.
Installing qemu-mipsel to /usr/local/bin
Stripping target 'qemu-mipsel' using strip.
Installing qemu-mipsn32 to /usr/local/bin
Stripping target 'qemu-mipsn32' using strip.
Installing qemu-mipsn32el to /usr/local/bin
Stripping target 'qemu-mipsn32el' using strip.
Installing qemu-nios2 to /usr/local/bin
Stripping target 'qemu-nios2' using strip.
Installing qemu-or1k to /usr/local/bin
Stripping target 'qemu-or1k' using strip.
Installing qemu-ppc to /usr/local/bin
Stripping target 'qemu-ppc' using strip.
Installing qemu-ppc64 to /usr/local/bin
Stripping target 'qemu-ppc64' using strip.
Installing qemu-ppc64le to /usr/local/bin
Stripping target 'qemu-ppc64le' using strip.
Installing qemu-riscv32 to /usr/local/bin
Stripping target 'qemu-riscv32' using strip.
Installing qemu-riscv64 to /usr/local/bin
Stripping target 'qemu-riscv64' using strip.
Installing qemu-s390x to /usr/local/bin
Stripping target 'qemu-s390x' using strip.
Installing qemu-sh4 to /usr/local/bin
Stripping target 'qemu-sh4' using strip.
Installing qemu-sh4eb to /usr/local/bin
Stripping target 'qemu-sh4eb' using strip.
Installing qemu-sparc to /usr/local/bin
Stripping target 'qemu-sparc' using strip.
Installing qemu-sparc32plus to /usr/local/bin
Stripping target 'qemu-sparc32plus' using strip.
Installing qemu-sparc64 to /usr/local/bin
Stripping target 'qemu-sparc64' using strip.
Installing qemu-x86_64 to /usr/local/bin
Stripping target 'qemu-x86_64' using strip.
Installing qemu-xtensa to /usr/local/bin
Stripping target 'qemu-xtensa' using strip.
Installing qemu-xtensaeb to /usr/local/bin
Stripping target 'qemu-xtensaeb' using strip.
Installing qga/qemu-ga to /usr/local/bin
Stripping target 'qga/qemu-ga' using strip.
Installing qemu-keymap to /usr/local/bin
Stripping target 'qemu-keymap' using strip.
Installing qemu-img to /usr/local/bin
Stripping target 'qemu-img' using strip.
Installing qemu-io to /usr/local/bin
Stripping target 'qemu-io' using strip.
Installing qemu-nbd to /usr/local/bin
Stripping target 'qemu-nbd' using strip.
Installing storage-daemon/qemu-storage-daemon to /usr/local/bin
Stripping target 'storage-daemon/qemu-storage-daemon' using strip.
Installing contrib/elf2dmp/elf2dmp to /usr/local/bin
Stripping target 'contrib/elf2dmp/elf2dmp' using strip.
Installing qemu-edid to /usr/local/bin
Stripping target 'qemu-edid' using strip.
Installing contrib/vhost-user-gpu/vhost-user-gpu to /usr/local/libexec
Stripping target 'contrib/vhost-user-gpu/vhost-user-gpu' using strip.
Installing qemu-bridge-helper to /usr/local/libexec
Stripping target 'qemu-bridge-helper' using strip.
Installing qemu-pr-helper to /usr/local/bin
Stripping target 'qemu-pr-helper' using strip.
Installing pc-bios/edk2-aarch64-code.fd to /usr/local/share/qemu
Installing pc-bios/edk2-arm-code.fd to /usr/local/share/qemu
Installing pc-bios/edk2-arm-vars.fd to /usr/local/share/qemu
Installing pc-bios/edk2-i386-code.fd to /usr/local/share/qemu
Installing pc-bios/edk2-i386-secure-code.fd to /usr/local/share/qemu
Installing pc-bios/edk2-i386-vars.fd to /usr/local/share/qemu
Installing pc-bios/edk2-x86_64-code.fd to /usr/local/share/qemu
Installing pc-bios/edk2-x86_64-secure-code.fd to /usr/local/share/qemu
Installing pc-bios/keymaps/ar to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/bepo to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/cz to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/da to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/de to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/de-ch to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/en-gb to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/en-us to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/es to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/et to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/fi to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/fo to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/fr to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/fr-be to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/fr-ca to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/fr-ch to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/hr to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/hu to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/is to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/it to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/ja to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/lt to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/lv to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/mk to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/nl to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/no to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/pl to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/pt to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/pt-br to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/ru to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/th to /usr/local/share/qemu/keymaps
Installing pc-bios/keymaps/tr to /usr/local/share/qemu/keymaps
Installing /home/pi/Documents/qemu/ui/icons/qemu_16x16.png to /usr/local/share/icons/hicolor/16x16/apps
Installing /home/pi/Documents/qemu/ui/icons/qemu_24x24.png to /usr/local/share/icons/hicolor/24x24/apps
Installing /home/pi/Documents/qemu/ui/icons/qemu_32x32.png to /usr/local/share/icons/hicolor/32x32/apps
Installing /home/pi/Documents/qemu/ui/icons/qemu_48x48.png to /usr/local/share/icons/hicolor/48x48/apps
Installing /home/pi/Documents/qemu/ui/icons/qemu_64x64.png to /usr/local/share/icons/hicolor/64x64/apps
Installing /home/pi/Documents/qemu/ui/icons/qemu_128x128.png to /usr/local/share/icons/hicolor/128x128/apps
Installing /home/pi/Documents/qemu/ui/icons/qemu_256x256.png to /usr/local/share/icons/hicolor/256x256/apps
Installing /home/pi/Documents/qemu/ui/icons/qemu_512x512.png to /usr/local/share/icons/hicolor/512x512/apps
Installing /home/pi/Documents/qemu/ui/icons/qemu_32x32.bmp to /usr/local/share/icons/hicolor/32x32/apps
Installing /home/pi/Documents/qemu/ui/icons/qemu.svg to /usr/local/share/icons/hicolor/scalable/apps
Installing /home/pi/Documents/qemu/ui/qemu.desktop to /usr/local/share/applications
Installing /home/pi/Documents/qemu/build/contrib/vhost-user-gpu/50-qemu-gpu.json to /usr/local/share/qemu/vhost-user
Installing /home/pi/Documents/qemu/pc-bios/bios.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/bios-256k.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/bios-microvm.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/qboot.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/sgabios.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/vgabios.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/vgabios-cirrus.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/vgabios-stdvga.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/vgabios-vmware.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/vgabios-qxl.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/vgabios-virtio.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/vgabios-ramfb.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/vgabios-bochs-display.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/vgabios-ati.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/openbios-sparc32 to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/openbios-sparc64 to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/openbios-ppc to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/QEMU,tcx.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/QEMU,cgthree.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/pxe-e1000.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/pxe-eepro100.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/pxe-ne2k_pci.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/pxe-pcnet.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/pxe-rtl8139.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/pxe-virtio.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/efi-e1000.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/efi-eepro100.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/efi-ne2k_pci.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/efi-pcnet.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/efi-rtl8139.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/efi-virtio.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/efi-e1000e.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/efi-vmxnet3.rom to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/qemu-nsis.bmp to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/bamboo.dtb to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/canyonlands.dtb to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/petalogix-s3adsp1800.dtb to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/petalogix-ml605.dtb to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/multiboot.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/linuxboot.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/linuxboot_dma.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/kvmvapic.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/pvh.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/s390-ccw.img to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/s390-netboot.img to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/slof.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/skiboot.lid to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/palcode-clipper to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/u-boot.e500 to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/u-boot-sam460-20100605.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/qemu_vga.ndrv to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/edk2-licenses.txt to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/hppa-firmware.img to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/opensbi-riscv32-generic-fw_dynamic.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/opensbi-riscv64-generic-fw_dynamic.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/opensbi-riscv32-generic-fw_dynamic.elf to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/opensbi-riscv64-generic-fw_dynamic.elf to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/pc-bios/npcm7xx_bootrom.bin to /usr/local/share/qemu
Installing /home/pi/Documents/qemu/build/pc-bios/descriptors/50-edk2-i386-secure.json to /usr/local/share/qemu/firmware
Installing /home/pi/Documents/qemu/build/pc-bios/descriptors/50-edk2-x86_64-secure.json to /usr/local/share/qemu/firmware
Installing /home/pi/Documents/qemu/build/pc-bios/descriptors/60-edk2-aarch64.json to /usr/local/share/qemu/firmware
Installing /home/pi/Documents/qemu/build/pc-bios/descriptors/60-edk2-arm.json to /usr/local/share/qemu/firmware
Installing /home/pi/Documents/qemu/build/pc-bios/descriptors/60-edk2-i386.json to /usr/local/share/qemu/firmware
Installing /home/pi/Documents/qemu/build/pc-bios/descriptors/60-edk2-x86_64.json to /usr/local/share/qemu/firmwareTraceback (most recent call last):
  File "/home/pi/.local/bin/meson", line 10, in 
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/mesonbuild/mesonmain.py", line 228, in main
    return run(sys.argv[1:], launcher)
  File "/usr/local/lib/python3.7/dist-packages/mesonbuild/mesonmain.py", line 217, in run
    return run_script_command(args, args[2:])
  File "/usr/local/lib/python3.7/dist-packages/mesonbuild/mesonmain.py", line 165, in run_script_command
    return module.run(script_args)
  File "/usr/local/lib/python3.7/dist-packages/mesonbuild/scripts/gettext.py", line 120, in run
    do_install(src_sub, bld_sub, dest, options.pkgname, langs)
  File "/usr/local/lib/python3.7/dist-packages/mesonbuild/scripts/gettext.py", line 87, in do_install
    shutil.copystat(srcfile, tempfile)
  File "/usr/lib/python3.7/shutil.py", line 205, in copystat
    follow_symlinks=follow)
FileNotFoundError: [Errno 2] No such file or directory

Installing /home/pi/Documents/qemu/pc-bios/keymaps/sl to /usr/local/share/qemu/keymaps
Installing /home/pi/Documents/qemu/pc-bios/keymaps/sv to /usr/local/share/qemu/keymaps
Running custom install script '/home/pi/.local/bin/meson --internal gettext install --subdir=po --localedir=share/locale --pkgname=qemu'
FAILED: meson-install 
/home/pi/.local/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
make: *** [Makefile:172: run-ninja] Error 1
make: Leaving directory '/home/pi/Documents/qemu/build'
make: *** [GNUmakefile:11: install] Error 2

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

pi@Twisterpi4-ultra-4gb:~/Documents/qemu $
I'm on latest TwisterOS (RPiOS) 32bit running on pi4 4gb. I tried compiling checkinstall but got the same error. edit: I compiled QEMU and packaged it using checkinstall on a linux x86 machine and it worked perfectly fine. any help is appreciated!
Itai Nelken (113 rep)
Jan 23, 2021, 12:32 PM • Last activity: May 28, 2021, 08:09 PM
3 votes
0 answers
263 views
All linux commands no working after try install python3.7
I have big, weird problem. I have server on Hetzner with Ubuntu 20. I tried install python3.7.2 with this instruction: wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz Where version can be specific, the above FTP location contains lots of versions. tar -xvf Python- .tgz cd Python- ./con...
I have big, weird problem. I have server on Hetzner with Ubuntu 20. I tried install python3.7.2 with this instruction: wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz Where version can be specific, the above FTP location contains lots of versions. tar -xvf Python-.tgz cd Python- ./configure make sudo checkinstall Until 'make' command everything was fine, but after 'sudo checkinstall' I get a error: File "/home/Python-3.7.2/Lib/ctypes/__init__.py", line 7, in from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes' make: *** [Makefile:1130: install] Error 1 **** Installation failed. Aborting package creation. Restoring overwritten files from backup.../usr/bin/checkinstall: line 95: /usr/bin/gettext: No such file or directory /usr/bin/checkinstall: line 102: /usr/bin/gettext: No such file or directory /usr/bin/checkinstall: line 319: /usr/bin/rm: No such file or directory /usr/bin/checkinstall: line 320: /usr/bin/rm: No such file or directory /usr/bin/checkinstall: line 95: /usr/bin/gettext: No such file or directory /usr/bin/checkinstall: line 95: /usr/bin/gettext: No such file or directory And now in this moment all linux commands not working, ls, ps, python etc... -bash: /usr/bin/su: No such file or directory -bash: /usr/bin/ls: No such file or directory -bash: /usr/bin/ps: No such file or directory I reboot server manually, but it's not working. Anybody have a idea what's now? I never used 'make' and 'checkinstall' commands and now I'm stuck
Bob (41 rep)
Mar 12, 2021, 02:13 PM • Last activity: Apr 26, 2021, 12:57 AM
1 votes
1 answers
2071 views
ERROR: A failure occurred in build(). while installing "checkinstall" help the newbie out
I wanted to uninstall [conky][1] that I built from source on my arch linux and [this thread][2] suggested installing [checkinstall][3]. But I am new to all this and `makepkg -sic` resulted in the following error - makepkg -si ==> Making package: checkinstall 1.6.2-5 (Thursday 22 April 2021 12:28:02...
I wanted to uninstall conky that I built from source on my arch linux and this thread suggested installing checkinstall . But I am new to all this and makepkg -sic resulted in the following error - makepkg -si ==> Making package: checkinstall 1.6.2-5 (Thursday 22 April 2021 12:28:02 AM) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found checkinstall-1.6.2.tar.gz -> Found 0001-Felipe-Sateler-Tag-only-regular-files-as-conffiles.patch -> Found 0002-Backtick-patch-from-Andrey-Schmachev-Copyright-year-.patch -> Found 0003-Fixed-bug-3-Removed-extra-okfail-and-fixed-spanish-t.patch -> Found 0004-Fixed-bug-1-Source-directory-package-name-with-space.patch -> Found 0005-Applied-patch-from-Ladislav-Hagara-for-compiling-ins.patch -> Found 0006-Added-Norwegian-translation-update-from-Andreas-Note.patch -> Found 0007-Added-summary-command-line-option.patch -> Found 0008-Fixed-glibc-minor-version-handling.patch -> Found 0009-Fixed-warning-about-uninitialized-variable-in-fopen-.patch -> Found 0010-Support-for-the-Makefile-PREFIX-variable.patch -> Found 0011-We-now-create-Slackware-packages-in-TMP_DIR.patch -> Found 0012-Fixed-bug-110.-create-localdecls-correctly-identifie.patch -> Found 0013-Fixed-bug-23.-We-remove-empty-fields-from-the-Debian.patch -> Found 0014-Fixed-typo-in-create-localdecls.patch -> Found 0015-Fixed-bug-30.-Newlines-are-converted-to-underscores-.patch -> Found 0016-Fixed-bug-38.-.spec-file-macro-processing.patch -> Found 0017-Fixed-bug-112-make-install-fails-on-Fedora-21.patch -> Found 0018-Fixed-bug-137-Missing-in-copy_dir_hierarchy.patch -> Found 0019-Fixed-bug-35-Directories-in-etc-are-incorrectly-incl.patch -> Found 0020-add-support-for-recommends-and-suggests-AKA-weak-dep.patch -> Found 0021-Load-checkinstallrc-from-etc.patch -> Found 0022-Drop-cases-for-glibc-2.4.patch -> Found 0023-fix-usr-sbin-merge-to-usr-bin-in-Arch.patch -> Found 0024-using-custom-cflag-and-ldflag.patch -> Found 0025-fix-installwatch-path-usr-local.patch ==> Validating source files with b2sums... checkinstall-1.6.2.tar.gz ... Passed 0001-Felipe-Sateler-Tag-only-regular-files-as-conffiles.patch ... Passed 0002-Backtick-patch-from-Andrey-Schmachev-Copyright-year-.patch ... Passed 0003-Fixed-bug-3-Removed-extra-okfail-and-fixed-spanish-t.patch ... Passed 0004-Fixed-bug-1-Source-directory-package-name-with-space.patch ... Passed 0005-Applied-patch-from-Ladislav-Hagara-for-compiling-ins.patch ... Passed 0006-Added-Norwegian-translation-update-from-Andreas-Note.patch ... Passed 0007-Added-summary-command-line-option.patch ... Passed 0008-Fixed-glibc-minor-version-handling.patch ... Passed 0009-Fixed-warning-about-uninitialized-variable-in-fopen-.patch ... Passed 0010-Support-for-the-Makefile-PREFIX-variable.patch ... Passed 0011-We-now-create-Slackware-packages-in-TMP_DIR.patch ... Passed 0012-Fixed-bug-110.-create-localdecls-correctly-identifie.patch ... Passed 0013-Fixed-bug-23.-We-remove-empty-fields-from-the-Debian.patch ... Passed 0014-Fixed-typo-in-create-localdecls.patch ... Passed 0015-Fixed-bug-30.-Newlines-are-converted-to-underscores-.patch ... Passed 0016-Fixed-bug-38.-.spec-file-macro-processing.patch ... Passed 0017-Fixed-bug-112-make-install-fails-on-Fedora-21.patch ... Passed 0018-Fixed-bug-137-Missing-in-copy_dir_hierarchy.patch ... Passed 0019-Fixed-bug-35-Directories-in-etc-are-incorrectly-incl.patch ... Passed 0020-add-support-for-recommends-and-suggests-AKA-weak-dep.patch ... Passed 0021-Load-checkinstallrc-from-etc.patch ... Passed 0022-Drop-cases-for-glibc-2.4.patch ... Passed 0023-fix-usr-sbin-merge-to-usr-bin-in-Arch.patch ... Passed 0024-using-custom-cflag-and-ldflag.patch ... Passed 0025-fix-installwatch-path-usr-local.patch ... Passed ==> Extracting sources... -> Extracting checkinstall-1.6.2.tar.gz with bsdtar ==> Starting prepare()... patching file INSTALL Reversed (or previously applied) patch detected! Assuming -R. patching file checkinstall patching file description-pak Reversed (or previously applied) patch detected! Assuming -R. patching file installwatch/create-localdecls The next patch would delete the file installwatch/description-pak, which does not exist! Assuming -R. patching file installwatch/description-pak patching file installwatch/installwatch.c patching file checkinstall patching file installwatch/installwatch patching file checkinstall patching file locale/checkinstall-es.po patching file checkinstall patching file installwatch/create-localdecls patching file checkinstall-man.sgml patching file installwatch-man.sgml patching file locale/checkinstall-no.po patching file checkinstall patching file installwatch/create-localdecls patching file installwatch/installwatch.c patching file Makefile patching file checkinstall.in (renamed from checkinstall) patching file checkinstall.in patching file installwatch/Makefile patching file installwatch/create-localdecls patching file installwatch/installwatch.c patching file installwatch/libcfiletest.c patching file installwatch/libctest.c patching file checkinstall.in patching file installwatch/create-localdecls patching file checkinstall.in patching file checkinstall.in patching file Makefile patching file checkinstall.in patching file checkinstall.in patching file checkinstall.in patching file checkinstall.in patching file installwatch/installwatch.c patching file Makefile patching file checkinstall.in patching file checkinstallrc-dist patching file installwatch/Makefile patching file checkinstallrc-dist ==> Removing existing $pkgdir/ directory... ==> Starting build()... for file in locale/checkinstall-*.po ; do \ case ${file} in \ locale/checkinstall-template.po) ;; \ *) \ out=echo $file | sed -s 's/po/mo/' ; \ msgfmt -o ${out} ${file} ; \ if [ $? != 0 ] ; then \ exit 1 ; \ fi ; \ ;; \ esac ; \ done sed 's%MAKEFILE_PREFIX%/usr/local%g' checkinstall.in > checkinstall make -C installwatch make[1] : Entering directory '/home/privileged/applications/checkinstall/src/checkinstall-1.6.2/installwatch' ./create-localdecls Checking truncate argument type... off_t Checking readlinkat result type... ssize_t Checking which libc we are using... libc.so.6 Checking libc version... 2.33 glibc >= 2 found Checking glibc subversion... 33 gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wall -c -g -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"0.7.0beta7\" installwatch.c installwatch.c: In function ‘true_stat’: installwatch.c:161:20: error: ‘_STAT_VER’ undeclared (first use in this function) 161 | return true_xstat(_STAT_VER,pathname,info); | ^~~~~~~~~ installwatch.c:161:20: note: each undeclared identifier is reported only once for each function it appears in installwatch.c: In function ‘true_mknod’: installwatch.c:165:21: error: ‘_MKNOD_VER’ undeclared (first use in this function) 165 | return true_xmknod(_MKNOD_VER,pathname,mode,&dev); | ^~~~~~~~~~ installwatch.c: In function ‘true_lstat’: installwatch.c:169:21: error: ‘_STAT_VER’ undeclared (first use in this function) 169 | return true_lxstat(_STAT_VER,pathname,info); | ^~~~~~~~~ installwatch.c: In function ‘true_fstatat’: installwatch.c:173:23: error: ‘_STAT_VER’ undeclared (first use in this function) 173 | return true_fxstatat(_STAT_VER, dirfd, pathname, info, flags); | ^~~~~~~~~ installwatch.c: In function ‘true_fstatat64’: installwatch.c:177:25: error: ‘_STAT_VER’ undeclared (first use in this function) 177 | return true_fxstatat64(_STAT_VER, dirfd, pathname, info, flags); | ^~~~~~~~~ installwatch.c: In function ‘true_mknodat’: installwatch.c:181:23: error: ‘_MKNOD_VER’ undeclared (first use in this function) 181 | return true_xmknodat(_MKNOD_VER, dirfd, pathname, mode, &dev); | ^~~~~~~~~~ installwatch.c: In function ‘instw_init’: installwatch.c:1209:3: warning: ignoring return value of ‘realpath’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1209 | realpath(proot,wrkpath); | ^~~~~~~~~~~~~~~~~~~~~~~ installwatch.c:1328:3: warning: ignoring return value of ‘realpath’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1328 | realpath(__instw.root,wrkpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ installwatch.c:1346:4: warning: ignoring return value of ‘realpath’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1346 | realpath(pexclude,wrkpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ installwatch.c: In function ‘true_stat’: installwatch.c:162:1: warning: control reaches end of non-void function [-Wreturn-type] 162 | } | ^ installwatch.c: In function ‘copy_path’: installwatch.c:755:5: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 755 | write(translfd,buffer,bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ installwatch.c: In function ‘true_lstat’: installwatch.c:170:1: warning: control reaches end of non-void function [-Wreturn-type] 170 | } | ^ installwatch.c: In function ‘true_mknod’: installwatch.c:166:1: warning: control reaches end of non-void function [-Wreturn-type] 166 | } | ^ make[1] : *** [Makefile:22: installwatch.o] Error 1 make[1] : Leaving directory '/home/privileged/applications/checkinstall/src/checkinstall-1.6.2/installwatch' make: *** [Makefile:12: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... I am not sure what this means and searching online did not result in any useful hits either. Anybody well versed with this mind helping me out perhaps?
user467690
Apr 21, 2021, 07:03 PM • Last activity: Apr 21, 2021, 07:38 PM
5 votes
0 answers
16363 views
Installing custom RPM says "does not update installed package"
I've inherited some servers which have previously always had its software as custom compiled versions (apache, perl, mod_perl etc). I was thinking rather than compile every time, it may be better to put them into RPMs. I'm trying out some new ideas on Vagrant. This is also partly for a learning proc...
I've inherited some servers which have previously always had its software as custom compiled versions (apache, perl, mod_perl etc). I was thinking rather than compile every time, it may be better to put them into RPMs. I'm trying out some new ideas on Vagrant. This is also partly for a learning process. One of these is a custom Perl version 5.14.2, we have a compile script, which I have run on a fresh Vagrant box and uses 'checkinstall' to create an RPM. It all works fine when compiled, 2 versions of Perl on the same box (custom version goes into /opt/perl). However, I then have the perl RPM, if I take a fresh box and try and install via yum, I get... yum -y install /vagrant/perl-5.14.2-1.x86_64.rpm Examining /vagrant/perl-5.14.2-1.x86_64.rpm: perl-5.14.2-1.x86_64 /vagrant/perl-5.14.2-1.x86_64.rpm: does not update installed package. Which maybe makes sense, so I thought I would try rpm... rpm -ivh /vagrant/perl-5.14.2-1.x86_64.rpm perl(DBD::SQLite) is needed by perl-5.14.2-1.x86_64 perl(DBIx::Simple) is needed by perl-5.14.2-1.x86_64 perl(FCGI) is needed by perl-5.14.2-1.x86_64 perl(Mac::BuildTools) is needed by perl-5.14.2-1.x86_64 perl(Mac::InternetConfig) is needed by perl-5.14.2-1.x86_64 perl(Tk) is needed by perl-5.14.2-1.x86_64 perl(Tk::Pod) is needed by perl-5.14.2-1.x86_64 perl(Your::Module::Here) is needed by perl-5.14.2-1.x86_64 So there's a couple of questions. Is creating an RPM of custom compiled scripts the correct thing to do (assuming it needs to be compiled and not a distributions own version), and would I install this via rpm or via yum ? Why does the rpm -ivh say there are dependencies, when the orginal compile/checkinstall didn't shout about any and worked fine ? Edit: Here's an output of rpm -qi rpm -qi perl Name : perl Relocations: (not relocatable) Version : 5.10.1 Vendor: CentOS Release : 136.el6_6.1 Build Date: Wed 12 Nov 2014 09:22:55 UTC Install Date: Thu 14 May 2015 09:55:13 UTC Build Host: c6b8.bsys.dev.centos.org Group : Development/Languages Source RPM: perl-5.10.1-136.el6_6.1.src.rpm
Ian (388 rep)
May 14, 2015, 10:21 AM • Last activity: Oct 21, 2020, 12:21 PM
1 votes
1 answers
603 views
How friendly is checkinstall with CMake rather than autotools?
It's been recommended to me to use the [`checkinstall` mechanism][1] to install artifacts I build from source. But - the example involves GNU autotools (`./configure`) while I use CMake. How "friendly" is checkinstall towards CMake builds? Note: I'm using Devuan 3 Beowulf, in case it matters. [1]: h...
It's been recommended to me to use the checkinstall mechanism to install artifacts I build from source. But - the example involves GNU autotools (./configure) while I use CMake. How "friendly" is checkinstall towards CMake builds? Note: I'm using Devuan 3 Beowulf, in case it matters.
einpoklum (10753 rep)
Apr 23, 2020, 10:50 AM • Last activity: Apr 23, 2020, 12:22 PM
3 votes
1 answers
693 views
How can I use checkinstall to replace multiple packages?
I'm building my own `ffmpeg` package using `checkinstall`, with all of the various `ffmpeg` libraries included. In the Ubuntu package repos these ffmpeg libraries are broken up into many separate packages. Is there any way to tell apt/dpkg that all of these requirements are satisfied by my ffmpeg pa...
I'm building my own ffmpeg package using checkinstall, with all of the various ffmpeg libraries included. In the Ubuntu package repos these ffmpeg libraries are broken up into many separate packages. Is there any way to tell apt/dpkg that all of these requirements are satisfied by my ffmpeg package. That way, for example, installing Handbrake from the repos would not install the repo package libavfilter7, which would break my ffmpeg build? So far, I've tried using the --provides or --replaces checkinstall options without success. For example:
sudo checkinstall -y --deldoc=yes --requires=libc6,libsdl2-2.0-0 --pkgversion=10:$ffmpeg_version  --provides=ffmpeg,libavcodec58,libavdevice58,libavfilter7,libavformat58,libavresample4,libavutil56,libpostproc55,libswresample3,libswresample3,ffmpeg-doc
Sean W. (331 rep)
Jun 6, 2019, 05:51 PM • Last activity: Aug 7, 2019, 01:05 PM
1 votes
1 answers
457 views
Installing checkinstall locally
I'm trying to install [checkinstall][1] locally in my home directory. Though, in the `INSTALL` file is only described how to do a system wide installation: Simple enough: make su make install checkinstall Instead I'd like to use the `configure` script this way: ./configure --prefix=~/opt/ make make...
I'm trying to install checkinstall locally in my home directory. Though, in the INSTALL file is only described how to do a system wide installation: Simple enough: make su make install checkinstall Instead I'd like to use the configure script this way: ./configure --prefix=~/opt/ make make install checkinstall but checkinstall distribution doesn't provide configure. I think it's possible to do what I want meddling with make files.
Paolo (17915 rep)
Oct 1, 2012, 09:57 PM • Last activity: Nov 17, 2018, 01:15 AM
0 votes
1 answers
238 views
checkinstall equivalent of `make install -C build`
What is the equivalent of: `sudo make install -C build` for `checkinstall`? Is it enough to: cd build sudo checkinstall ?
What is the equivalent of: sudo make install -C build for checkinstall? Is it enough to: cd build sudo checkinstall ?
Kossak (679 rep)
Nov 15, 2018, 03:21 PM • Last activity: Nov 15, 2018, 03:45 PM
0 votes
1 answers
33 views
Checking packages state in Synaptic
I have recently installed some packages which are necessary for building executables: > python-central \ > > texlive-latex-base \ > > texlive-latex-extra \ > > texlive-latex-recommended \ > > texlive-fonts-extra \ > > texlive-fonts-recommended \ Using Synaptic package manager on Debian distro. Didn'...
I have recently installed some packages which are necessary for building executables: > python-central \ > > texlive-latex-base \ > > texlive-latex-extra \ > > texlive-latex-recommended \ > > texlive-fonts-extra \ > > texlive-fonts-recommended \ Using Synaptic package manager on Debian distro. Didn't consider that the final size of the packages after extraction would wipe all free space on the root partition. Got the error while installation progress and it was interrupted. But after expanding the partition and launching Synaptic no error was displayed. And every package listed above is marked as alreary installed. So I guess that some of dependencies were not installed correclty. How can I perform the revision of recently installed packages?
Max Bender (103 rep)
Apr 29, 2018, 05:50 PM • Last activity: Apr 29, 2018, 06:12 PM
3 votes
2 answers
727 views
Problems packing a .deb from autotools. (checkinstall, debhelper, ...)
I'm currently building a large project that contains sources written in few languages such as C,C++ & Python. I recently managed to (painfuly) handle autotools to make a proper install. Next step is to create .deb because our project is meant to run on debian stretch. I tried several ways to do this...
I'm currently building a large project that contains sources written in few languages such as C,C++ & Python. I recently managed to (painfuly) handle autotools to make a proper install. Next step is to create .deb because our project is meant to run on debian stretch. I tried several ways to do this but i can't get it working whether the way. Tree .deb generated by checkinstall : unpack/ ├── etc │   └── nina │   ├── auto_blacklist.txt │   ├── blacklist.txt │   ├── conf │   ├── keywords.txt │   ├── rubbish_links.txt │   └── whitelist.txt └── usr ├── local │   ├── bin │   │   ├── geckodriver │   │   └── nina │   ├── lib │   │   └── python2.7 │   │   └── dist-packages │   │   ├── nina.py │   │   ├── nina_py_installed_files.txt │   │   ├── Uinput_wrapping_module-2.0.egg-info │   │   └── uinput_wrapping_module.so │   └── share │   └── man │   └── man1 │   └── nina.1.gz └── share └── doc └── nina ├── COPYING ├── doc │   ├── Doxyfile │   └── nina.1 ├── README └── README.md Tree .deb generated by debhelper (v9): unpack/ ├── etc │   └── nina │   ├── auto_blacklist.txt │   ├── blacklist.txt │   ├── conf │   ├── keywords.txt │   ├── rubbish_links.txt │   └── whitelist.txt └── usr ├── bin │   └── nina ├── lib │   └── python2.7 │   └── dist-packages │   └── nina.py └── share ├── doc │   └── nina │   ├── changelog.Debian.gz │   └── copyright └── man └── man1 └── nina.1.gz As you can see it's not quite the same (sic). I'm more or less understanding what checkinstall does : it runs make install commands and just get files outputs to place it where it's installing on **MY** machine. debhelper seems to be a way more proper tool here. (installing in /usr/lib and not /usr/local/lib, allow us to sign packages & so on.) and i'd prefer to use it but it's not working as expected to do. And on **huge** plus on debhelper way is that it's actually handling dependancies specified in debian/control and stuff. But checkinstall doesn't. What debhelper is not doing : - Getting some binary (geckodriver) from internet source and placing it in /usr/bin - installing an homemade python module Those actions are performed in my Makefile.am by overriding install-exec-local: (& respectively uninstall-local:) methods and executing some bash commands. **---** So my question is : how could i keep best parts of those two packaging ways to made it "perfect" ?
Neah-Ko (123 rep)
Mar 9, 2017, 07:48 AM • Last activity: Mar 17, 2018, 11:33 PM
5 votes
0 answers
622 views
checkinstall --include option not working
I am successfully able to create a .deb package from source using `checkinstall`. However can someone help me with why I cannot add custom/additional files to the package created using the `--include` option with `checkinstall`. For instance I use `checkinstall –-install=no --include="/home/user/*pa...
I am successfully able to create a .deb package from source using checkinstall. However can someone help me with why I cannot add custom/additional files to the package created using the --include option with checkinstall. For instance I use checkinstall –-install=no --include="/home/user/*package-name*/include-list.txt" , I assume this should be sufficient to include additional files & dirs listed in the include-list.txt in the package(.deb) created. My include-list.txt is just a simple txt file and contains 1 line as follows : /etc/systemd/system/example.service & my intention is to include this .service file as a part of the package created. I have checked the checkinstall help and its seems like --include option is the way to go. Any help will be appreciated.
Siddharth Shetty (51 rep)
Jan 8, 2018, 10:23 AM • Last activity: Jan 8, 2018, 10:34 AM
6 votes
2 answers
9803 views
how to tell checkinstall only create package file, but not install?
How can I tell `checkinstall` only create deb package file, but not install? *************************************** with `checkinstall --install=no`, it fails at the end, for not having permission to do something. Does it really need root to create a deb file without installation? $ checkinstall --...
How can I tell checkinstall only create deb package file, but not install? *************************************** with checkinstall --install=no, it fails at the end, for not having permission to do something. Does it really need root to create a deb file without installation? $ checkinstall --install=no checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran This software is released under the GNU GPL. ***************************************** **** Debian package creation selected *** ***************************************** This package will be built according to these values: 0 - Maintainer: [ tim@admin ] 1 - Summary: [ wine 1.6.2 built from source Oct 3, 2014 ] 2 - Name: [ wine ] 3 - Version: [ 1.6.2 ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ checkinstall ] 7 - Architecture: [ i386 ] 8 - Source location: [ wine-1.6.2 ] 9 - Alternate source location: [ ] 10 - Requires: [ ] 11 - Provides: [ wine ] 12 - Conflicts: [ ] 13 - Replaces: [ ] Enter a number to change any of them or press ENTER to continue: Installing with make install... ========================= Installation results =========================== make: Entering directory `/tmp/wine-1.6.2/tools' make: `makedep' is up to date. make: Leaving directory `/tmp/wine-1.6.2/tools' make: Entering directory `/tmp/wine-1.6.2/libs/port' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/libs/port' make: Entering directory `/tmp/wine-1.6.2/libs/wine' version=(GIT_DIR=../../.git git describe HEAD 2>/dev/null || echo "wine-1.6.2") | sed -n -e '$s/\(.*\)/const char wine_build[] = "\1";/p' && (echo $version | cmp -s - version.c) || echo $version >version.c || (rm -f version.c && exit 1) make: Leaving directory `/tmp/wine-1.6.2/libs/wine' make: Entering directory `/tmp/wine-1.6.2/libs/wpp' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/libs/wpp' make: Entering directory `/tmp/wine-1.6.2/tools' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/tools' make: Entering directory `/tmp/wine-1.6.2/tools/widl' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/tools/widl' make: Entering directory `/tmp/wine-1.6.2/tools/winebuild' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/tools/winebuild' make: Entering directory `/tmp/wine-1.6.2/tools/winedump' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/tools/winedump' make: Entering directory `/tmp/wine-1.6.2/tools/winegcc' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/tools/winegcc' make: Entering directory `/tmp/wine-1.6.2/tools/wmc' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/tools/wmc' make: Entering directory `/tmp/wine-1.6.2/tools/wrc' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/tools/wrc' make: Entering directory `/tmp/wine-1.6.2/include' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/include' make: Entering directory `/tmp/wine-1.6.2/dlls/adsiid' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/dlls/adsiid' make: Entering directory `/tmp/wine-1.6.2/dlls/dinput' make: `libdinput.def' is up to date. make: Leaving directory `/tmp/wine-1.6.2/dlls/dinput' make: Entering directory `/tmp/wine-1.6.2/dlls/dinput' make: `libdinput.def.a' is up to date. make: Leaving directory `/tmp/wine-1.6.2/dlls/dinput' make: Entering directory `/tmp/wine-1.6.2/dlls/dxerr8' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/dlls/dxerr8' make: Entering directory `/tmp/wine-1.6.2/dlls/dxerr9' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/dlls/dxerr9' make: Entering directory `/tmp/wine-1.6.2/dlls/dxguid' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/dlls/dxguid' make: Entering directory `/tmp/wine-1.6.2/dlls/strmbase' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/dlls/strmbase' make: Entering directory `/tmp/wine-1.6.2/dlls/strmiids' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/dlls/strmiids' make: Entering directory `/tmp/wine-1.6.2/dlls/uuid' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/dlls/uuid' make: Entering directory `/tmp/wine-1.6.2/dlls/winecrt0' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/dlls/winecrt0' make: Entering directory `/tmp/wine-1.6.2/dlls/acledit' make: Nothing to be done for `all'. make: Leaving directory `/tmp/wine-1.6.2/dlls/acledit' ./tools/mkinstalldirs -m 755 /usr/local/lib/wine mkdir /usr/local/lib/wine mkdir: cannot create directory `/usr/local/lib/wine': Permission denied make: *** [/usr/local/lib/wine] Error 1 **** Installation failed. Aborting package creation. Cleaning up...OK Bye. with fakeroot checkinstall, also fail due to permission problem.
Tim (106430 rep)
Sep 28, 2014, 06:00 PM • Last activity: May 1, 2017, 08:49 AM
4 votes
1 answers
3566 views
checkinstall freezes at "Copying files to the temporary directory..." when building vim8
I'm having a very strange problem with checkinstall when trying to build vim8. Here's what I did (although probably irrelevant): - Cloned from vim8 git source - Ran configure & make --enable-gui=auto. No problem. Then I ran sudo checkinstall, the installation and man page generation progressed all r...
I'm having a very strange problem with checkinstall when trying to build vim8. Here's what I did (although probably irrelevant): - Cloned from vim8 git source - Ran configure & make --enable-gui=auto. No problem. Then I ran sudo checkinstall, the installation and man page generation progressed all right, but somehow the program got stuck at the last steps: Some of the files created by the installation are inside the build directory: /mnt/C/XXXX You probably don't want them to be included in the package, especially if they are inside your home directory. Do you want me to list them? [n]: y Should I exclude them from the package? (Saying yes is a good idea) [y]: y Copying files to the temporary directory... I also tried: checkinstall --install=no, which didn't work either. Anyone has any ideas? Thanks!
peidaqi (163 rep)
Feb 5, 2017, 09:07 AM • Last activity: Feb 22, 2017, 01:04 PM
15 votes
5 answers
10608 views
Debian checkinstall ignores install=no; how to have it build, but NOT autoinstall a package?
Ok, here is one thing that puzzles me... I'm trying to build a package from source, and then use `checkinstall` to generate a .deb package. Note that I want to just create the .deb package, but I do NOT want to _install_ it. So, here's an example - I'm on Ubuntu 11.04, and first I install it's `feh`...
Ok, here is one thing that puzzles me... I'm trying to build a package from source, and then use checkinstall to generate a .deb package. Note that I want to just create the .deb package, but I do NOT want to _install_ it. So, here's an example - I'm on Ubuntu 11.04, and first I install it's feh package from the default repositories; which has a version number apparently being [1.3.4.dfsg.1-3](http://packages.ubuntu.com/lucid/feh) Then I'm trying to build feh [from source](http://feh.finalrewind.org/) ; got make to pass, and can run the new feh from the command line; splendid. Now finally, to create a deb package, I use the following command line: sudo checkinstall -D -y \ --install=no \ --fstrans=no \ --reset-uids=yes \ --pkgname=feh \ --pkgversion=2.7 \ --pkgrelease="tar.bz2" \ --arch=i386 \ --pkglicense=GPL \ --maintainer="Debian PhotoTools Maintainers " \ --pakdir=../.. \ --requires=libc6,libice6,libsm6,libx11-6,libxaw7,libxext6,libxmu6,libxt6,dpkg,install-info OK, notice that I've used **--install=no** there? Even man checkinstall says: > --install Toggle installation of the created package. Well, this is what this checkinstall command replies: checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran This software is released under the GNU GPL. /usr/bin/checkinstall: eval: line 598: syntax error near unexpected token `newline' /usr/bin/checkinstall: eval: line 598: `echo Debian PhotoTools Maintainers ' The package documentation directory ./doc-pak does not exist. Should I create a default set of package docs? [y]: y Preparing package documentation...OK ***************************************** **** Debian package creation selected *** ***************************************** This package will be built according to these values: 0 - Maintainer: [ root@mypc ] 1 - Summary: [ Package created with checkinstall 1.6.2 ] 2 - Name: [ feh ] 3 - Version: [ 2.7 ] 4 - Release: [ tar.bz2 ] 5 - License: [ GPL ] 6 - Group: [ checkinstall ] 7 - Architecture: [ i386 ] 8 - Source location: [ feh-2.7 ] 9 - Alternate source location: [ ] 10 - Requires: [ libc6,libice6,libsm6,libx11-6,libxaw7,libxext6,libxmu6,libxt6,dpkg,install-info ] 11 - Provides: [ feh ] 12 - Conflicts: [ ] 13 - Replaces: [ ] Enter a number to change any of them or press ENTER to continue: Installing with make install... ========================= Installation results =========================== installing manuals to /usr/local/share/man installing docs to /usr/local/share/doc/feh installing executables to /usr/local/bin installing fonts to /usr/local/share/feh/fonts installing images to /usr/local/share/feh/images installing examples to /usr/local/share/doc/feh/examples ======================== Installation successful ========================== NOOOOOOOOOOOOOOOOO!!!!!!!!!! I did NOT want the damn package to INSTALL -- THAT IS WHY I USED --install=no FOR CRYIN OUT LOUD!!! And then, apparently in an attempt to be sarcastic, the log continues: Copying documentation directory... ./ ./TODO ./AUTHORS ./COPYING ./ChangeLog ./README Copying files to the temporary directory...OK Stripping ELF binaries and libraries...OK Compressing man pages...OK Building file list...OK Building Debian package...OK NOTE: The package will not be installed You must be kidding with this "_NOTE: The package will not be installed_", right, Mr. checkinstall? Sure you are; after this is done, note what I get: $ apt-cache show feh | grep Version Version: 1.10-1 $ feh --version feh version 2.7 Compile-time switches: curl xinerama $ which feh /usr/local/bin/feh Not sure where that 1.10-1 came from (it should have been at least 1.3.4, as per above?) - but its damn obvious that the 2.7 DID get installed, IN SPITE of my instruction NOT to install... Surely, I can try to remove afterwards: $ sudo dpkg -r feh (Reading database ... 202193 files and directories currently installed.) Removing feh ... $ sudo dpkg --purge feh (Reading database ... 202163 files and directories currently installed.) Removing feh ... Purging configuration files for feh ... $ feh --version feh version 2.7 Compile-time switches: curl xinerama $ which feh /usr/local/bin/feh ... but not even dpkg --purge works (apt-get remove wouldn't work to begin with, since it's a manually installed .deb package). And besides dpkg -r not giving a version (so I'm not really sure what it is that should have been removed) - it in fact did NOT remove the bloody executable ?! But can anyone explain what is going here - and how to get checkinstall to _only_ generate a .deb, and NOT install it at the same time? Bonus question - how to remove ALL files, _including_ executables in /usr/local/bin/, that got installed in this way - since apparently dpkg -r doesn't work?
sdaau (7098 rep)
Nov 5, 2012, 09:18 AM • Last activity: Feb 13, 2017, 07:18 AM
Showing page 1 of 20 total questions