pinetab2 danctnix broken during upgrade - shell error
#1
Hello all.

I was doing some package upgrades on my pinetab2 running danctnix and I started noticing some errors with the shell:

-bash: symbol lookup error: -bash: undefined symbol: rl_completion_rewrite_hook

Recklessly, I rebooted and now I can't log in.

It boots up to the graphical login screen. I authenticate, and something happens and I come back to the graphical login screen.

If I try to log in via ssh, I get the error above.

How can I boot into single user? I'm not finding much.

I'm thinking I should try to boot into single user and try to fix it, but I don't know how.

Any other advice?

Thanks!
  Reply
#2
I think your best bet is to boot a known working DanctNIX image off a microSD card, then mount the internal eMMC storage from there and try to fix the system that way. With a broken bash, it might not even be possible to chroot into it, so you will likely need to fix the bash on the eMMC from outside (from the system on microSD). The error is because the installed versions of bash and readline (libreadline.so.*) are not compatible. So, if you have the eMMC mounted at /mnt/emmc, try something like sudo pacman --sysroot /mnt/emmc -Sy bash readline or just upgrading everything with sudo pacman --sysroot /mnt/emmc -Syu.
  Reply
#3
(Yesterday, 07:54 PM)Kevin Kofler Wrote: I think your best bet is to boot a known working DanctNIX image off a microSD card, then mount the internal eMMC storage from there and try to fix the system that way. With a broken bash, it might not even be possible to chroot into it, so you will likely need to fix the bash on the eMMC from outside (from the system on microSD). The error is because the installed versions of bash and readline (libreadline.so.*) are not compatible. So, if you have the eMMC mounted at /mnt/emmc, try something like sudo pacman --sysroot /mnt/emmc -Sy bash readline or just upgrading everything with sudo pacman --sysroot /mnt/emmc -Syu.

Got it.

I've never booted it off of an SD card, I guess there is a process for that. I'll try to figure it out.

Some systems have a statically linked shell for situations like this in like a rescue directory, I was hoping to use that from single user or something. 

Thanks!
  Reply
#4
https://wiki.pine64.org/wiki/PineTab2

See the box "Note regarding the boot order". Since the bootloader is apparently not corrupted, only a part of the userspace (bash/readline), it should be enough to just stick in a bootable microSD card, and the bootloader is supposed to boot from that.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Donate to DanctNix addictioneer 2 200 07-12-2025, 03:53 PM
Last Post: addictioneer
  PineTab (early adopters) wifi broken in kernel 6.12 bartgrefte 0 674 03-23-2025, 05:25 AM
Last Post: bartgrefte
  PineTab2 corrupted EMMC explit 6 4,489 09-13-2024, 09:09 AM
Last Post: Evergreen
  OS Options for Pinetab2 Evergreen 2 1,693 09-07-2024, 07:35 AM
Last Post: moobythegoldensock
  Cannot get into Pinetab2 joespodie 1 1,056 09-02-2024, 11:52 AM
Last Post: KC9UDX
  Recent danctnix update/futuresql zoward 2 1,836 07-16-2024, 04:01 PM
Last Post: Kevin Kofler
  Power off error message stefan_hdb 1 1,459 04-26-2024, 10:18 AM
Last Post: moobythegoldensock
Video Pinetab2 camera drivers cringeops 9 5,274 03-18-2024, 11:40 AM
Last Post: cringeops
  Updating the "extra" repository breaks the Danctnix OS Evergreen 0 1,421 02-24-2024, 12:40 PM
Last Post: Evergreen
  Release upgrade failed! Or not? jojuma 4 3,416 02-23-2024, 01:52 AM
Last Post: jojuma

Forum Jump:


Users browsing this thread: 3 Guest(s)