The officially official Devuan Forum!

You are not logged in.

#1 Re: Devuan » [SOLVED] Confusion with libcrypt.so.1 » 2024-04-11 23:47:10

Yes! That worked and got it running! In fact I was able to resolve a similar issue with another executable I had that required libstdc++5:i386.

Thanks a million!
Tom

#2 Re: Devuan » [SOLVED] Confusion with libcrypt.so.1 » 2024-04-11 20:16:55

Odd. I did all the above. What I don't quite understand is that the "apt upgrade" didn't update or install anything, and the executable I'm trying to run still can't find libcrypt.so.1. Here are some outputs:

dpkg --print-foreign-architectures
i386

apt policy libcrypt1
libcrypt1:
  Installed: 1:4.4.33-2
  Candidate: 1:4.4.33-2
  Version table:
 *** 1:4.4.33-2 500
        500 http://deb.devuan.org/merged daedalus/main amd64 Packages
        100 /var/lib/dpkg/status

dpkg -L libcrypt1
/.
/lib
/lib/x86_64-linux-gnu
/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libcrypt1
/usr/share/doc/libcrypt1/changelog.Debian.gz
/usr/share/doc/libcrypt1/changelog.gz
/usr/share/doc/libcrypt1/copyright
/lib/x86_64-linux-gnu/libcrypt.so.1

Here's the ldd output of the executable:

	linux-gate.so.1 (0xf7edb000)
	libnsl.so.1 => /lib32/libnsl.so.1 (0xf7eb3000)
	libdl.so.2 => /lib32/libdl.so.2 (0xf7eae000)
	libm.so.6 => /lib32/libm.so.6 (0xf7da9000)
	libcrypt.so.1 => not found
	libutil.so.1 => /lib32/libutil.so.1 (0xf7da4000)
	libpthread.so.0 => /lib32/libpthread.so.0 (0xf7d9f000)
	libc.so.6 => /lib32/libc.so.6 (0xf7a00000)
	/lib/ld-linux.so.2 (0xf7edd000)

As you can see that's still not found. Any ideas? Thanks!

Tom

#4 Devuan » [SOLVED] Confusion with libcrypt.so.1 » 2024-04-11 16:40:25

tlathm
Replies: 5

I've read all sort of things on this that frankly have my head spinning:

In Beowulf the libc6-i386 package provided the file /lib32/libcrypt.so.1. In Daedalus libc6-i386 no longer does.

However in Daedalus, the package libcrypt1 provides libcrypt.so.1, but only at the path /lib/x86_64-linux-gnu/libcrypt.so.1.

I'm hoping to use a binary executable that requires that and did work under Beowulf, but nothing I try gets it to work. It just complains that libcrypt.so.1 can't be found.

Any clues as to all this? Thanks!
Tom

#5 Re: Other Issues » [SOLVED] libhcrypto.so.4 in Devuan Daedalus? » 2024-04-06 01:42:37

Yea...agreed. I'll likely try to compile it from source using the newer libraries.

EDIT: One important thing to note about this post: No clue what I was thinking, but when I was referring the "ld" command I totally intended to be using "ldd". No wonder I got so confused on that.

Thanks!
Tom

#6 Re: Other Issues » [SOLVED] libhcrypto.so.4 in Devuan Daedalus? » 2024-04-05 18:42:30

OK. It turned out that that there was a newer version of that installed (libhcrypto.so.5.0.0). Creating a link to that named libhcrypto.so.4, plus a few other similar ones got the executable running. Seems like a somewhat ugly hack, but did in fact seem to work.

Thanks!
Tom

#7 Re: Other Issues » [SOLVED] libhcrypto.so.4 in Devuan Daedalus? » 2024-04-05 18:25:20

This libhcrypto.so.4 has something to do with Heimdahl stuff. Maybe that's a hint ...

Yea I noticed that. There were some heimdal related packages also required by the same executable. So far I haven't been able to figure out if any others might provide that library.

Tom

#8 Re: Other Issues » [SOLVED] libhcrypto.so.4 in Devuan Daedalus? » 2024-04-05 18:21:08

OMG you're totally correct. That came up in a google search for "libhcrypto4 bookworm" and I didn't notice that difference. Thanks. Just uninstalled that.

Tom

#9 Re: Other Issues » [SOLVED] libhcrypto.so.4 in Devuan Daedalus? » 2024-04-05 18:14:43

This is odd. So I was able to find that package for Debian Bookworm here:

https://packages.debian.org/bookworm/libmcrypt4

I installed the deb file libmcrypt4_2.5.8-7_amd64.deb. It's clearly installed:

dpkg-query -L libmcrypt4
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libmcrypt.so.4.4.8
/usr/share
/usr/share/doc
/usr/share/doc/libmcrypt4
/usr/share/doc/libmcrypt4/changelog.Debian.gz
/usr/share/doc/libmcrypt4/changelog.gz
/usr/share/doc/libmcrypt4/copyright
/usr/lib/x86_64-linux-gnu/libmcrypt.so.4

Yet my executable still says it's missing:

error while loading shared libraries: libhcrypto.so.4: cannot open shared object file: No such file or directory

What do you suppose that's all about?

Thanks!
Tom

#10 Re: Other Issues » [SOLVED] libhcrypto.so.4 in Devuan Daedalus? » 2024-04-05 18:10:37

Thanks for the reply! I'll have to figure out how to best handle this one.

What I was hoping to use ld for was to see if there are any other missing libraries in the executable. That's something I'd always done in the past. Is that no longer possible?

Thanks!
Tom

#11 Re: Other Issues » [SOLVED] libhcrypto.so.4 in Devuan Daedalus? » 2024-04-05 17:12:31

On a related topic, I've installed binutils to get the ld command, but ls doesn't work on anything I try. It always fails with an error like this:

ld: cannot use executable file '<filename>' as input to a link

I've read some things about that though I can't make any sense out of it. I've seen suggestions to use "-r" but that doesn't help.

Any clue on that would be appreciated as well.

Thanks!
Tom

#12 Other Issues » [SOLVED] libhcrypto.so.4 in Devuan Daedalus? » 2024-04-05 16:37:15

tlathm
Replies: 15

I'm trying to use an executable under Daedalus that needs the missing library libhcrypto.so.4.

Does anyone know if any package provides that? I'm seeing things about a "libhcrypto4" package in Bookworm but that doesn't appear to be available. Currently I have the daedalus, daedalus-security, and daedalus-updates repos enabled.

Thanks in advance!

Tom

#13 Installation » Odd udevd boot error on new install? » 2024-04-03 19:18:42

tlathm
Replies: 0

I've just done an install of Daedalus on a VM running from within VMware Workstation Player. It currently is headless and has almost nothing except the base system installed. I'm getting these during the boot:

[Wed Apr  3 14:52:23 2024] udevd[409]: 'dmi_memory_id' ressize 16384 too short
[Wed Apr  3 14:52:23 2024] udevd[409]: 'dmi_memory_id' ressize 16384 too short
[Wed Apr  3 14:52:23 2024] udevd[409]: 'dmi_memory_id' ressize 16384 too short
[Wed Apr  3 14:52:23 2024] udevd[409]: 'dmi_memory_id' ressize 16384 too short
[Wed Apr  3 14:52:23 2024] udevd[409]: 'dmi_memory_id' ressize 16384 too short
[Wed Apr  3 14:52:23 2024] udevd[409]: 'dmi_memory_id' ressize 16384 too short
[Wed Apr  3 14:52:23 2024] udevd[409]: 'dmi_memory_id' ressize 16384 too short
[Wed Apr  3 14:52:23 2024] udevd[409]: 'dmi_memory_id' ressize 16384 too short
[Wed Apr  3 14:52:23 2024] udevd[409]: 'dmi_memory_id' ressize 16384 too short

Any clue what that means or what might be causing it?

Thanks!
Tom

#14 Re: Installation » [SOLVED] Creating a VM using GPT partitions » 2023-11-28 20:01:03

Thanks for that! If I decide to even do this I might try that.

You're correct that this really isn't really an issue. When a customer of ours ends up needing that much space we have them add a new disk and just add it to our LVM logical volume as a raw disk with no partitions at all. We did however have one customer that increased the existing disk to well over 2 TB which we were not able to fully use due to the DOS partitions, and VM doesn't let you get it back.

I was hoping to avoid that but I'm starting to think it's not worth it...especially if it gets into changing stuff to use EFI etc. That could even end up causing worse issues.

Thanks again!
Tom

#15 Re: Installation » [SOLVED] Creating a VM using GPT partitions » 2023-11-28 18:49:52

Actually that gets into several things that get very confusing about all this.

For example, if I'm creating a new VM that I plan on installing Devuan, I'm actually unclear as to how I even could partition it ahead of time. On real hardware I'd just boot from some removable drive, mount the disk, and format it. I have no idea how to do that in this case.

Things get even more confusing regarding the boot. I'm unclear as to what VM even does for a new VM regarding legacy BIOS boot vs EFI. Maybe there are some options there though I don't recall any. Very confusing.

I may just try the approach in that link and see if it works.

Tom

#16 Installation » [SOLVED] Creating a VM using GPT partitions » 2023-11-28 16:13:01

tlathm
Replies: 4

I'm looking to create a VM using VMware workstation player that initially will have a 250 GB disk, but I'd like to force it to use GPT partitions. The reason is that there can be cases where at some point there's a need to increase a partition to more than 2 TB. From what I've read I don't think that GPT partitions would get used in that case by default(?).

I found an interesting post related to Debian here:

https://unix.stackexchange.com/question … mbr-vs-gpt

That is, to add this to the end of the boot command line:

d-i:partman-partitioning/default_label=gpt

Can anyone confirm whether or not that works, and most importantly, if the resulting install would actually boot correctly?

Thanks in advance!
Tom

#17 Re: Other Issues » What is /etc/cron.daily/apt-compat? » 2021-03-05 21:53:22

In addition to purging the unattended-upgrades package, I also just moved the apt-compat script out of /etc/cron-daily altogether. That appears to be installed by the apt package and seems to do that random sleep (up to 30 minutes) regardless of whether any of that is enabled. Still seems odd to me.

Tom

#18 Re: Other Issues » What is /etc/cron.daily/apt-compat? » 2021-03-05 17:59:26

What also bothers me is that, unless I'm misreading it, the /etc/cron.daily/apt-compat script appears to do that random sleep regardless of whether or not any of this is enabled. That seems odd to me.

Again, this was from a rackspace Buster VM and they apparently had the unattended upgrade stuff installed. I've never installed that on Devuan installs I've done from scratch.

Tom

#19 Re: Other Issues » What is /etc/cron.daily/apt-compat? » 2021-03-05 17:50:36

Head_on_a_Stick wrote:
tlathm wrote:

I'm assuming (hoping) that's not enabled by default

Is the unattended-upgrades package installed and if so is the service enabled?

Wow...apparently yes and yes. Looking at the logs in /var/log/apt it certainly doesn't appear that any upgrades have run on their own. I'm assuming they'd log there(?). I have to confess I knew nothing about this one at all.

Tom

#20 Other Issues » What is /etc/cron.daily/apt-compat? » 2021-03-05 16:40:33

tlathm
Replies: 4

I have a rackspace server that's been converted from Debian Buster to Beowulf. I just spent a lot of time trying to figure out why my daily cron jobs appeared to be running much later than intended. I have the daily crons set up to run at 4:02 AM and it appeared that the jobs I care about ran at about 4:30 this morning.

Looking at /var/log/syslog I can see that the daily jobs did in fact start at 4:02, but my jobs appear to be getting delayed by /etc/cron.daily/apt-compat.

It appears that it does a random sleep and I think that's what delayed things. From what I read it appears that has something to do with unattended updates(??). If so I'm assuming (hoping) that's not enabled by default.

Thanks in advance for any clarification!

Tom

#21 Re: Installation » Converting from Buster and usr merge » 2021-02-25 19:36:44

Head_on_a_Stick wrote:
tlathm wrote:

That failed at first because I had /bin/sh as the users shell and needed to change that to /usr/bin/bash

/bin/sh is linked to dash in Debian and Devuan. The usr merge does not break /bin/sh in any way — all of the system scripts have a /bin/sh shebang so nothing would work if the usr merge broke that.

To clarify what actually happened to me there: I have a script that copies the minimum of executable programs and libraries I need in a users home to allow rsync to work in that chroot...and because of the nature of the usr merge and the way my script works I didn't have any /bin/sh in that chroot home.

Thanks for the replies! I don't think I'll attempt any conversion to the separate usr here, as the server's already in use and serving it's purpose just fine. Thanks!

Tom

#22 Re: Installation » Converting from Buster and usr merge » 2021-02-24 15:21:45

Thanks! I'm sure you're correct, and given that this was starting with a rackspace server I really have no option to do an install from scratch. Having said that, it's actually a rather simple LAMP server for the most part and I seriously doubt it would ever cause me any problems.

The only reason I noticed was that I set up a user specifically for rsync backups that's restricted to a chroot in it's home. That requires having a few binaries and libraries installed in the home. That failed at first because I had /bin/sh as the users shell and needed to change that to /usr/bin/bash.

Only the systemd and freedesktop.org asshats could manage to make such an asinine decision to screw with shit that's been in place as long as that. I use Gentoo on my own machines which, by default, doesn't do that BS either. Thank God for distros like that, and for the wonderful maintainers of Devuan!

Thanks
Tom

#23 Installation » Converting from Buster and usr merge » 2021-02-24 13:19:08

tlathm
Replies: 5

I recently converted a Rackspace server from Buster to Beowulf mostly based on this:

https://www.devuan.org/os/documentation … owulf.html

Worked really well. One thing I noticed is that this ends up with a usr merged system:

ls -l /bin
lrwxrwxrwx 1 root root 7 Feb  6 05:30 /bin -> usr/bin

Two questions about this:

1. I'm assuming there's probably no way to change that...or at least nothing I'd want to attempt(?).

2. Are there any possible issues going forward because of that?...for example with updates etc.

Thanks!
Tom

#24 Re: Documentation » How to get Devuan running on Rackspace. » 2021-02-19 17:28:37

I figured I'd add to this old post to report my recent experience with this. I've been able to convert a Rackspace Debian Buster to Devuan Beowulf successfully, and wanted to outline what I did. For the most part is mostly just involved converting the original VM based on this:

https://www.devuan.org/os/documentation … owulf.html

For the nova-agent I used your init script above and enabled it with update-rc.d...thanks for that! Seems to be fine and, given my understanding of what that does I really doubt that it's lack of any "stop" functionality makes any difference. I also disabled those cloud services.

One additional thing I did was to get the Rackspace driveclient working. We downloaded and installed that, but just as with the nova-agent, they had no traditional init script. I was able to come up with this one which seems to work fine, and it appears that backups are working OK:

#!/bin/sh
### BEGIN INIT INFO
# Provides:          Rackspace Backup Agent
# Required-Start:    networking
# Required-Stop:     networking
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Rackspace Backup Agent
# Description:       Rackspace Backup Agent
### END INIT INFO

# Using the lsb functions to perform the operations.
. /lib/lsb/init-functions

export HOME=/root

PIDFILE=/var/run/driveclient.pid

case "$1" in
    start)
        log_begin_msg "Starting Rackspace Backup Agent..."
        start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --exec /usr/local/bin/driveclient -- --daemon
        log_end_msg $?
        ;;
    stop)
        log_begin_msg "Stopping Rackspace Backup Agent..."
        start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
        log_end_msg $?
        ;;
    restart)
        $0 stop
        sleep 1
        $0 start
        ;;
    status)
        if [ -e $PIDFILE ]; then
            status_of_proc -p $PIDFILE driveclient "Rackspace Backup Agent Service" && exit 0 || exit $?
        else
            log_success_msg "Rackspace Backup Agent Service is stopped"
            exit 3
        fi
        ;;
    *)
        log_success_msg "Usage: /etc/init.d/driveclient {start|stop|restart|status}"
        exit 1
esac

All seems to be working great. Rackspace without systemd lives!

Tom

#25 Re: Other Issues » dpkg-reconfigure -f noninteractive tzdata not working in Beowulf? » 2020-08-29 11:03:39

Yea, that's what I ended up doing in out stuff. Odd though...I have no idea what dpkg-reconfigure with the noninteractive frontend is doing as compared to what it used to do. It seems to be basing it on the existing /etc/localtime link instead of the timezone in /etc/timezone.

Tom

Board footer

Forum Software