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
(07-18-2025, 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
#5
I tried to boot a MicroSD card and it behaves as if it's not there.

I seem to have lost the UART thing that came with it. Still looking.

I tried to buy another one but noticed there is a $25 surcharge on everything. I might have to do it anyway.
  Reply
#6
will Ctrl+Alt+F2(/3/4/5/etc) from the login screen get you into bash to try repairing the update?
  Reply
#7
(07-23-2025, 07:33 AM)tophneal Wrote: will Ctrl+Alt+F2(/3/4/5/etc) from the login screen get you into bash to try repairing the update?

That won't work. The problem is /bin/bash is dynamically linked to a library that is broken, so the shell doesn't work.

I was hoping to break into single user and use a different shell so I can attempt to fix bash. 

This is a classic unix/Linux risk with dynamically linked executables.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is Danctnix about to get cameras on Pinetab2 biketool 0 89 12-11-2025, 06:19 AM
Last Post: biketool
  Danctnix USB GPS for Pinetab2 biketool 0 234 11-28-2025, 06:09 AM
Last Post: biketool
Video Pinetab2 camera drivers cringeops 10 6,946 11-28-2025, 03:39 AM
Last Post: biketool
  Old Danctnix server in Pacman Config (solved) KelsonV 3 450 11-27-2025, 05:01 PM
Last Post: realchunkyflea
  auto-owning the SD card in DanctNIX (Pinetab2) biketool 1 460 11-25-2025, 04:16 AM
Last Post: biketool
  Pinetab2s running DanctNIX just got Bluetooth!! biketool 0 352 11-02-2025, 04:45 AM
Last Post: biketool
Sad USB Gadget on PineTab2 Tronar 0 2,775 09-26-2025, 12:42 PM
Last Post: Tronar
  How to Donate to DanctNix addictioneer 2 1,227 07-12-2025, 03:53 PM
Last Post: addictioneer
  PineTab (early adopters) wifi broken in kernel 6.12 bartgrefte 0 1,261 03-23-2025, 05:25 AM
Last Post: bartgrefte
  PineTab2 corrupted EMMC explit 6 5,776 09-13-2024, 09:09 AM
Last Post: Evergreen

Forum Jump:


Users browsing this thread: 2 Guest(s)