You are not logged in.

#1 2016-12-01 22:23:57

XNova42
Member
Registered: 2015-04-30
Posts: 17

libreadline errors everywhere

I know there was another, very similar thread to this but I couldn't seem to figure it out. I asked for assistance but the thread was marked as solved and nobody saw my post. I tried to follow along with what the others were saying but it wasn't working, so here is exactly what I wrote:

I'm having the same kind of crazy libreadline errors. I tried booting up a liveUSB like others suggested and then mounting. sda2 should be root, sda1 boot, and sda 3 home. So I do this:

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
mount /dev/sda3 /mnt/home
arch-chroot /mnt

Immediately it gives me a libreadline error something like /bin/sh error loading shared library (etc etc). But it still seems to work. From there I tried running mkinitcpio -p linux or mkinitcpio -p default but it gives me this output:

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.ing
==> ERROR: specified kernel image does not exist: '/boot/vmlinuz-linux'
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: '/boot/vmlinuz-linux'

And as for pacman, when I try to -Syu it seems to go well until the end when it spews out hundreds of "error: could not extract /usr/lib/modules/........" before finally spitting out

/tmp/alpm_YwL24L/.INSTALL:     Line 7: 1277 Bus error                (core dumped) depmod 4.8.10-1-ARCH

among other messages saying the whole update was botched. So what am I doing wrong? Did I mess up the mounting process? Or the chroot process? Although I've been using linux for awhile I'm really not that knowledgeable with it, it's probably a silly mistake. (Also, I've tried doing combinations of -Syu and mkinitcpio first and second to see if I was messing up the order and the results are the same both ways)

So I can't do anything when I boot up linux. Others in the previous thread weren't even able to login or boot but I'm somehow able to at least log in. I can't start x or update pacman however. Please help.

Offline

#2 2016-12-01 23:00:13

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: libreadline errors everywhere

Sounds like your system is in a partially updated state. From an Arch liveCD (as recent as possible), after you have mounted everything, don't chroot, instead run

pacman --root /mnt -Syu

This will use the liveCD version of pacman to bring your installed version of Arch up-to-date. If you get errors, please post them here verbatim. If the update succeeds without errors, then chroot in and run mkinitcpio.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-12-01 23:50:45

XNova42
Member
Registered: 2015-04-30
Posts: 17

Re: libreadline errors everywhere

Okay WorMzy I did as you instructed but it looks like there were errors. This is what I got after running pacman --root /mnt -Syu:

:: Synchronizing package databases...
  core
  core.sig
error: GPGME error: No Data
error: failed to update core (invalid or corrupted database (PGP signature))
  extra
  extra.sig
error: GPGME error: No Data
error: failed to update extra (invalid or corrupted database (PGP signature))
  community
  community.sig
error: GPGME error: No Data
error: failed to update community (invalid or corrupted database (PGP signature))
error: failed to synchronize any databases
error: failed to init transaction (invalid or corrupted database (PGP signature))

Last edited by XNova42 (2016-12-04 02:47:52)

Offline

#4 2016-12-02 01:40:39

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: libreadline errors everywhere

Why is pacman trying to download signatures for the main repos? The main repos aren't signed (the databases that is -- the packages themselves are signed).


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2016-12-10 01:20:03

XNova42
Member
Registered: 2015-04-30
Posts: 17

Re: libreadline errors everywhere

Okay, so with pacman trying to update sig files it seems like that was in fact due to some weird internet thing, since I'm on Uni wi-fi and they have logins and whatnot. So I switched to their guest network and that error disappeared, although a new one came up. Running pacman --root /mnt -Syu again, I get it to run like normal up until it tries to install the packages, at which point it tells me:

error: Partition / too full: 244116 blocks needed, 63404 blocks free
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.

I don't know why anything would be out of space because there should be plenty of room on both my hard drive and my live USB. My root partition on my hard drive is 25 gigabytes too so it shouldn't be all filled up. Is there another angle I need to come at this from or perhaps a different way to use pacman?

Offline

#6 2016-12-10 01:27:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: libreadline errors everywhere

Clear some space.

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2016-12-10 01:42:59

XNova42
Member
Registered: 2015-04-30
Posts: 17

Re: libreadline errors everywhere

Ha, I guess I'm just dumb. But with clearing the space I tried to remove some packages I know I don't use however the amount of space that Pacman says I need to free up remains the same. So how do I go about freeing that space then? I tried doing Pacman --root /mnt -Rs [a handful of packages here] after having mounted all the partitions of my hard drive yet Pacman --root /mnt -Syu still says only "63404 blocks free" of 244116 needed

Last edited by XNova42 (2016-12-10 01:45:12)

Offline

#8 2016-12-10 01:48:33

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: libreadline errors everywhere

Post your 'df -h' output.

EDIT: Use a CLI pastebin client to share information from the live environment. This will help prevent mistakes, and will preserve formatting.

Last edited by WorMzy (2016-12-10 01:50:24)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2016-12-10 02:05:37

XNova42
Member
Registered: 2015-04-30
Posts: 17

Re: libreadline errors everywhere

WorMzy wrote:

Post your 'df -h' output.

EDIT: Use a CLI pastebin client to share information from the live environment. This will help prevent mistakes, and will preserve formatting.

OH that's how people copy and paste this stuff, thank you so much I didn't know that existed. I guess I really am a newbie, ha. In any case, before I read that I actually uploaded a picture I took of the screen to imgur, as much as taking photos of screens makes me cringe. So although that's not exactly kosher I already got it set up so here's the link: http://imgur.com/gallery/Td1mv

I'll spend the next few minutes getting the cli pastebin client working

And I guess it turns out I did actually use up most of my root partition, I had no idea

Last edited by XNova42 (2016-12-10 02:07:01)

Offline

#10 2016-12-10 02:42:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: libreadline errors everywhere

paccache --help

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2016-12-10 02:55:11

XNova42
Member
Registered: 2015-04-30
Posts: 17

Re: libreadline errors everywhere

Ah yes the cache. I gave it a go and after clearing things out with Pacman --root /mnt -Sc still not enough open space. So then I tried -Scc. Still not enough open space. At this point would it be easier to just use my live usb to save whatever files I might need and just reinstall arch?

Offline

#12 2016-12-10 09:36:06

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,181

Re: libreadline errors everywhere

check the contents of /var/log  maybe /var/cache (notably /var/cache/coredump, if you redirect cores there)
"Reinstalling" is a windows-style pseudo-solution,

Offline

Board footer

Powered by FluxBB