The officially official Devuan Forum!

You are not logged in.

#1176 Re: Other Issues » Devuan and chroot » 2019-09-03 11:12:53

Interesting. Possibly a reinstall would make your problem go away; it tends to work on Windows, so why not with Linux ;D

I just verified that in order to chroot into a directory /BLAH you only need 5 files:

/BLAH/bin/bash
/BLAH/lib/x86_64-linux-gnu/libtinfo.so.5
/BLAH/lib/x86_64-linux-gnu/libc.so.6
/BLAH/lib/x86_64-linux-gnu/libdl.so.2
/BLAH/lib64/ld-linux-x86-64.so.2

So, getting tedious: check that the files concerned are not links that points out of /mnt:

# ls -l /mnt/lib64/ld-linux-x86-64.so.2
# ls -l /mnt/lib/x86_64-linux-gnu/libtinfo.so.5
# ls -l /mnt/lib/x86_64-linux-gnu/libdl.so.2
# ls -l /mnt/lib/x86_64-linux-gnu/libc.so.6
# ls -l /mnt/bin/bash

The first one in particular might point to /lib/x86_64-linux-gnu/ld-2.24.so (or something) and maybe /mnt/lib/x86_64-linux-gnu/ld-2.24.so (or something) is missing. That could explain why it "looks right" in the prior checks, without actually being right under chroot.

#1177 Re: Other Issues » Devuan and chroot » 2019-09-03 09:30:24

Hmm. The problem obviously has little to do bash as such, but with the attempt to run a dynamic 64bit binary. You are sure the sda6 OS is 64 bit as well? For example, that there is a /lib64 directory?

It feels "rude" to ask, but one of the main causes for this problem is simply that one attempts to run with a 64 bit kernel inside a 32 bit OS file system. I missed on confirming before, that you have:

# ls -lL /mnt/lib64/ld-linux-x86-64.so.2

Let's get past this one ....

#1178 Re: Other Issues » Devuan and chroot » 2019-09-03 03:08:57

Yes, it *should* work. But it doesn't smile

I guess you verified that the libs are available:

# ls -lL /mnt/lib/x86_64-linux-gnu/libtinfo.so.5
# ls -lL /mnt/lib/x86_64-linux-gnu/libdl.so.2
# ls -lL /mnt//lib/x86_64-linux-gnu/libc.so.6

Does something else work? Eg
# chroot /mnt ls

... it's gradually rising to be a "peculiar" problem ...

#1179 Re: Other Issues » Devuan and chroot » 2019-09-02 22:19:00

That looks good. I would then confirm the executable by running it

/mnt/bin/bash

When that looks fine, your problem have risen to the level of "intricate" smile

The next is to confirm its dynamically linked libraries, which starts by checking which they are in the current root, and then verify that they are all present within /mnt. Use ldd /mnt/bin/bash.

#1180 Re: Other Issues » Devuan and chroot » 2019-09-02 21:49:32

Apparently sda6 does not contain a complete file system, and in particular it doesn't have an executable program /bin/bash.

I suggest you investigate this directly after the first mount command, which makes the file system of sda6 available under /mnt.

All the other commands (except chroot) are just extra noise here, and they serve no purpose for you being able to change the root file system for a process.

So the investigation sequence would be two commands, with the first one optional (if you have doen it already):

# mount /dev/sda6 /mnt
# ls -l /mnt/bin/bash

Consistently with the chroot error you may get the result:

ls: cannot access '/mnt/bin/bash': No such file or directory

or you may get something else, which in any case should provide something for understanding the chroot error report.

Later, when you have sorted out your chroot problem, you return to also use the other commands, when/if you need access to those virtual file system components.

#1181 Re: Installation » Disabling or changing size of swap PRIOR to guided install? » 2019-08-25 09:45:26

Yes, my note regarding consolekit might not be relevant; it does depend on which distro you are talking about. It came up for me when building and testing the beowulf netinstall iso, and I've also seen it popping up elsewhere. It's merely one possible reason for failing grub-install that is easy to check for and rule in/out.

#1182 Re: Installation » Disabling or changing size of swap PRIOR to guided install? » 2019-08-25 06:53:05

It's possible this is not due to the partitioning, but that you've got a sightly buggy consolekit package installed, which makes directories in /usr/share/locale/ with names ending in .gmo, and that this upsets grub-install. One way to work around that would be to remove those directories, and then redo grub-install. Doing so makes consolekit lose its internationalization, but all else would be fine.

#1183 Re: Desktop and Multimedia » A X neo-neophyte getting X running on Devuan 2.0... » 2019-08-23 21:52:37

Another alternative would be to run xvfb on the remote, which provides a headless X server, i.e., without displaying on any of the virtual consoles.

#1184 Re: Other Issues » [Solved] Installing printer Ecotank - cannot install "LSB" » 2019-08-20 09:42:34

For that particular issue, you might want to temporarily put jessie/main back into the sources list, just to pick up the libpng12-0=1.2.50-2+deb8u3 package, and then restore the sources list again (and update egain).

I don't remember the exact details, but when libpng16 came about, libpng12 got left behind, with the result of needlessly but forcefully deprecating dependent packages. Whatever the case was, the "missing" libpng12 from jessie installs without issues on ascii (and both are merged directly from Debian).

#1185 Re: Other Issues » [beowulf] Packages being held back. » 2019-08-19 22:20:59

Perhaps it's due to the version disagreement of libuuid1:amd64 and libuuid1:i386 (in beowulf) (and in unstable).

#1186 Re: Other Issues » [Solved] Installing printer Ecotank - cannot install "LSB" » 2019-08-18 22:01:58

It's not clear to me why you have a problem with installing lsb-desktop. It's a "standard" ascii package and version.
Try doing:

# apt-get update
# apt-get -f install

to ensure you have a workable apt state.

Thereafter a normal ad-hoc installation

# dpkg -i epson-inkjet-printer-escpr.deb
# apt-get -f install

should work fine.

#1187 Re: Other Issues » [Solved] Installing printer Ecotank - cannot install "LSB" » 2019-08-17 23:34:58

The installable package is actually named printer-driver-escpr.

#1188 Re: Other Issues » Submission to Experimental: rmw (ReMove to Waste) » 2019-08-14 00:19:26

Nothing special, other than the name.

In fact, maybe a scavenge hunt at https://git.devuan.org/devuan, https://git.devuan.org/devuan-infrastructure and https://git.devuan.org/devuan-packages would bring some nuggets for you; and if you'd then accrue notes on the what, how and where, it could yield a (new) "Devuan Package Maintainer Cheat Sheet" (or "Comprehensive Guide, Part 1", even), as well as corrections and updates to whatever documentation there is.

#1189 Re: Other Issues » Submission to Experimental: rmw (ReMove to Waste) » 2019-08-13 22:31:33

Great, Andy.

As you are experiencing, there is a bottleneck in the Devuan package building process, where the creative efforts end, and the software transitions into the more "formal" and process oriented treatment at the mouth of Devuan's automated build system. Sometimes tasks end up waiting there for some while simply because the person/people to move it along are few and with already full schedules.

Don't despair; it's not a deliberate inaction against your project and effort.

I'm only at an apprentice level as package maintainer myself, but I did pick up on a couple of small specks on this diamond. I'll go through them here, although it's a public forum, so on the one hand. many people will regard it as noise, and on the other it might attract further comments, views and perspectives in a range of usefullness:

  • The build dependencies (in control) seem incomplete; e.g., is there a dependency on gettext at the build stage? The control file should include "all" dependencies of what is required for building the package as well as what is required for using the built software.

  • The version code (in changelog) might need to separate the source versioning from the packaging versioning. There are some "rules" regarding this, and some "tradition", and in particular, it would be sensible to start at 1 (or 0 even) for the first appearance in Devuan/experimental. I'm fairly sure Dan'll want to discuss this.

  • The targeted suite (in changelog) should be "experimental" rather than "stable".

  • The project needs to have the "suites/experimental" branch with that which is going to be built into the package. The automated builder builds from that branch rather than the master branch.

As you know, it's very important to have both the build dependencies and the run-time dependencies set out relative to a "pristine", minimal installation.

To move your project further, it's good with some gentle prod's like this, although I think Dan is more often at IRC than at this forum, and well, "busy" is a good term for his time between sleeps smile

#1190 Re: Desktop and Multimedia » [SOLVED] Ceres 64-bit and cannot install wine32:i386 » 2019-08-04 22:15:27

Yeah, the "problem" is also found in Debian buster; I got a count of some ~120 packages with different version codes between amd64 and i386, and some ~30 more cases added for Devuan beowulf alone. It would appear to be some weakness in the automatic build pipeline, except of course were it is on purpose (if any).

I'm not sure why I had thought that there would be separate "version planes" for the different architectures. Obviously I have just been lucky at my multi-arch excursions smile

TL;DR; I compared various distributions by looking at their Packages files, which get downloaded into /var/lib/apt/lists/ when the repositories are in the sources list. Each of those files include the meta information about the packages of the distribution, where e.g. deb.devuan.org_merged_dists_beowulf_main_binary-amd64_Packages tells the story about the binary packages in beowulf's main section for the amd64 architecture.

The Packages files are also manually downloadable over HTTP from the repositories, e.g. for comparing distribution sections for other reasons.

From there, it's a matter of some scripting to compare package versions between a pair of such files. That comparison gets a bit fiddly since there are packages that only belong to the one or the other, as well as common packages with meta data differences other than version codes. But that's where your newlisp skills get a freshening (or you might choose to use some lesser scripting language) smile

#1191 Re: Desktop and Multimedia » [SOLVED] Ceres 64-bit and cannot install wine32:i386 » 2019-08-03 08:23:47

Eventually I worked something out. smile

The cause of this problem is simply that apt does not see different dependency chains for different architectures. Therefore, where a package (like libuuid1) has different version codes for amd64 and i386, then, in a multi-architecture setting, the attempt to install the one will "knock out" the other, with all its ramifications.

libuuid1:amd64 and libuuid1:i386 have different version codes in Devuan beowulf.

A smaller and safer example to experiment with would be xfsdump, where also xfsdump:amd64 and xfsdump:i386 have different version codes. It's easy to see that installing the one will knock out the other (without a total system havoc). (This package is similar in Debian buster, with two different version codes for the different architectures)

#1192 Re: Desktop and Multimedia » [SOLVED] Ceres 64-bit and cannot install wine32:i386 » 2019-08-02 11:12:02

After some experiments, I've come to believe that the reason for this problem (that libuuid1 installation causes havoc) is something else than what I suggested. I'm not sure exactly what the issue is, but it seems to come up following the plain upgrade from ascii to beowulf.

#1194 Re: Desktop and Multimedia » [SOLVED] Ceres 64-bit and cannot install wine32:i386 » 2019-08-02 01:56:35

Yes, equivs is a powerful albeit dangerous scalpel for the tool belt. It lets you lobotomize the system to a hollow shell of nothingness and yet appear fine smile

And yes, it looks like something is wrong with libuuid. Maybe just a copy-and-paste mistake when rearranging things; the package was built from the util-linux source which includes several packages. I submitted a bug report to Debian (where this originated), and perhaps we can temporarily patch ascii/beowulf as well.

#1195 Re: Desktop and Multimedia » [SOLVED] Ceres 64-bit and cannot install wine32:i386 » 2019-08-02 00:16:28

It seems like libuuid1 has an explicit "Replaces: e2fsprogs" declaration, which causes great havoc in the base set up. I haven't looked into the details, but that "Replaces" directive seems totally misplaced, since libuuid1 only provides a single library, whereas e2fsprogs provides more than a few useful and essential things, but not that library, nor (as far as I can see at a glance) anything conflicting with that library.

Thus, you don't ever want to install libuuid1. Well, I wouldn't.

Perhaps you can bypass this by using equivs, and (learning to) use it; it's a fairly simple way to tell your system that you have a package of a particular version installed without actually having it installed. In this case you would fool your system with an "equivs" installation of libuuid1:i386=2.33.1-0.1+devuan1, and that might be sufficient to get all else installed. I suppose, it might affect the audio (since this library is pulled in due to pulse0), so it might need additional hands-on later. But It is for instance, trivial to download that missing library /lib/i386-linux-gnu/libuuid.so.1.3.0 and "install" it manually.

#1196 Re: Other Issues » Ceres will not update » 2019-07-28 00:28:25

Have you compared the system time with the wall clock?

#1197 Re: Hardware & System Configuration » Serial console install » 2019-07-20 22:07:38

but the system does not boot.
Anyway, I think this is not very useful, since the file system on the USB stick is in format
squashfs (a read-only compressed file system). It is impossible to modify it without rebuilding it.

Well, I think it boots the first stage, and enters a shell prompt instead of booting the second stage, but after "pivot_root", and having "/" overlayed by a tmpfs. Therefore /etc/inittab is editable, although whatever you do to it is not persistent.

In other words, the steps are as follows. First use the advice by @Head_on_a_Stick to get serial boot console, plus the init=/bin/sh parameter to get a shell after first stage boot:

console=ttyS0 init=/bin/sh

Then modify /etc/inittab (non-persistently) for an autologin on the serial line:

# echo "T0:23:respawn:/sbin/getty -a root ttyS0 vt100" >> /etc/inittab

And then, enter second stage init:

# exec /sbin/init

Obviously you'll need to do all that every time you boot, until you get persistence set up.

#1198 Re: Hardware & System Configuration » Serial console install » 2019-07-20 12:02:29

Have you tried with init=/bin/sh as boot parameter? That parameter might give you a shell prompt instead of the normal boot process, but subsequent to the initrd set up. And it might not. I'm afraid it's some few decades since I toyed at that level, so don't expect miracles.

If it brings you that far, you should enable getty on the serial console by appending the line

T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100

to /etc/inittab in the root file system (not the initrd file system), which you need to mount first. Then reboot without the init=...

#1199 Re: Devuan » RC script templates » 2019-07-15 09:36:25

Well, crazy or not, I think today's easiest method is to copy /etc/init.d/skeleton into the target init script, which then is a configuration for the interpreter script /lib/init/init-d-script that implements the control actions around the nominated "service program".

The init-d-script can also itself be copied, modified (especially by adding an LSB header) and used as the init.d script. That's a good approach if for instance your KPI is a lines-per-day measure, or more seriously, the actual service control is significantly unusual and/or complex.

The middle ground is to rather expand the skeleton copy with overriding functions for the actions where the generic implementations don't suffice.

The "difficult" part is still to read and digest the section 22.2 on Init Actions in Linux Standard Base Core Specification, Generic Part, plus a few sections following that, and to map that to the specifics of the system at hand.

#1200 Re: Other Issues » system hangs after exiting second tty » 2019-07-13 14:16:57

Yes, if it's a case of the shell not terminating, then one of those might hold the cause.

There are also other problem cases where the shell indeed terminates, but getty still doesn't get duly respawned. It really depends on the particular set up of this system; i.e., what the OP means with "using stable".

Perhaps a telinit q command in tty1 (in my test sequence), will trigger a respawn. That would be an indication of some different problem, relating to init and its various configurations, and possibly including the hotplug handling s/w.

Board footer

Forum Software