Article 6EF1C Multiple issues with apt while trying to get a GUI on armv5tejl

Multiple issues with apt while trying to get a GUI on armv5tejl

by
fpp
from LinuxQuestions.org on (#6EF1C)
I've been playing a bit with a small netbook that has a WonderMedia WM8650 CPU (armv5tejl) with 256MB of RAM. This netbook came with android 2 by default, with kernel 2.6.32, and thanks to all the efforts put in this github and all the people involved in this mailing list, it's possible to have up to kernel 4.14 (some people are getting to kernel 6.1).

Now, I've been playing with this github, which is basically a script to build the kernel from linux-vtwm (and also does some things to bump the kernel to version 6.1), build a Debian 12 rootfs using multistrap, add some udev rules, systemd services and first-time config scripts, and pack everything to two compressed files that are ment to be placed onto an SD card for the netbook to boot.

Now, with everything I was able to learn from the previous githubs and mailing lists, I was able to get Debian 11 with Linux 4.14 (from linux-vtwm, with some modifications to dts to add pwm support) working, using the bookconfig repo with some modifications (no kernel/boot partition is built. udev rule and systemd services have some modifications to work with my netbook), just to make things easier. The thing is that everything works perfectly fine up until I want to add a GUI. For the moment, I want to install i3 for the wm, and of course Xorg as the X window server.

So far, I've tried two paths:
1. Install Xorg, i3 and nodm while creating the rootfs (using multistrap): This, results in a totally bootable system (only after the second boot. After finishing setup, I got a black screen, and I wasn't able to change to any tty. On the serial console I had "systemd-journald[7746]: Failed to send WATCHDOG=1 notification message: Connection refused". Unplugging the system was the only way to get out of there), with working GUI. and that's it. You cannot install new packages because the system has a hard time updating the package database. It always has something to complain about:
Code:example 1:
fpp@WM8650:~$ sudo apt update
[sudo] password for fpp:
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian bullseye/main armel Packages [7883 kB]
Get:3 http://deb.debian.org/debian bullseye/main Translation-en [6240 kB]
Get:4 http://deb.debian.org/debian bullseye/contrib armel Packages [37.5 kB]
Get:5 http://deb.debian.org/debian bullseye/contrib Translation-en [46.9 kB]
Get:6 http://deb.debian.org/debian bullseye/non-free armel Packages [51.8 kB]
Get:7 http://deb.debian.org/debian bullseye/non-free Translation-en [92.2 kB]
Fetched 14.5 MB in 53s (271 kB/s)
Reading package lists... Error!
E: Problem parsing Provides line of libghc-monad-par-dev:armel=0.3.5-1+b2
E: Error occurred while processing libghc-monad-par-dev (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-armel_Packages
E: The package lists or status file could not be parsed or opened.

example 2:
fpp@WM8650:~$ sudo apt update
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian bullseye/main armel Packages [7883 kB]
Get:3 http://deb.debian.org/debian bullseye/main Translation-en [6240 kB]
Get:4 http://deb.debian.org/debian bullseye/contrib armel Packages [37.5 kB]
Get:5 http://deb.debian.org/debian bullseye/contrib Translation-en [46.9 kB]
Get:6 http://deb.debian.org/debian bullseye/non-free armel Packages [51.8 kB]
Get:7 http://deb.debian.org/debian bullseye/non-free Translation-en [92.2 kB]
Fetched 14.5 MB in 54s (270 kB/s)
Reading package lists... Error!
E: Malformed Description-md5 line; doesn't have the required length (32 != 19940) '11376f8d2238a196b9a58295f5c2d75(a lot more garbage. Full output is attached)_fTkfNL1fab8'
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.

example 3:
fpp@WM8650:~$ sudo rm /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_i18n_Translation-en
fpp@WM8650:~$ sudo apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Get:2 http://deb.debian.org/debian bullseye/main Translation-en [6240 kB]
Fetched 6240 kB in 33s (191 kB/s)
Segmentation faultsts... 42%These are some of the possible error outputs. They vary from package name. I was able to work (some times) past that error, but installing any package that requires more than two or three dependencies, ends up in one of the previous errors.

2. Install a basic system (packages in .config file), and then, manually install (using apt) xorg, i3 and nodm: In this case, I wasn't able to complete the installation, because on multiple occasions, I got segmentation faults while installing one of the many dependencies of xorg. It was apparently caused by a package that got corrupt (while downloading, I think). Deleting the package on cache and running "sudo apt --fix-missing install" solved that issue, but then near 99% it failed again with another segmentation fault and then I wasn't able to fix the error* (except now, while writing this thread. It had a segmentation fault and some issues with dpkg but it installed succesfully and also i3 and nodm installed after fighting for a little bit, but again, issues with segmentation fault while running apt update occurred. log attached)

I'm kind of lost on what could the culprit be. It could be the kernel, the rootfs, the ram, or I don't know why. What makes fixing this (for me) is the inconsistency between every try. I've probably copied more than 50 rootfs's to my sdcard, and none of them shared the exact same error, all of them had a little difference, primarily on package names.

If any of the config files (kernel, boot, etc) are needed, tell me and I'll upload them.

*between segmentation faults, I always rebooted the netbook using "systemctl reboot". This is because sometimes the screen would get all the characters corrupted (even new ones) or it would cause unexpected behavior from all commands executed (once I wasn't able to execute systemctl reboot)
Attached Files
txt.gifoption1 (2nd boot).txt (12.3 KB)
txt.gifoption2.txt (84.6 KB)
txt.gifmultistrap.conf.txt (320 Bytes)
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments