You are not logged in.

#1 2020-05-27 05:15:13

tiltnexus
Member
Registered: 2020-05-27
Posts: 7

[SOLVED] Unable to ls

Some background for my issue. I was trying to install the decompiled Super Mario 64 code and encountered a large issue. As soon as I cloned the git page, ls had stopped working. Everytime I attempt to run the command, the terminal spits out, "ls: symbol lookup error: ls: undefined symbol: idth, version GLIBC_2.2.5". I deleted everything in the clone folder, and it's still broken. I tried to uninstall glibc, but it would break probably everything installed on my computer. What can I do to fix it? I've combed through every forum and message board related to ls not working, and nothing would fix it.

Last edited by tiltnexus (2020-05-27 06:35:25)

Offline

#2 2020-05-27 05:29:26

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED] Unable to ls

type -a ls

tried to uninstall glibc, but it would break probably everything

Don't and yes. You'll have to fix the system offline (archiso chroot) if you'd do this.

Offline

#3 2020-05-27 05:39:13

tiltnexus
Member
Registered: 2020-05-27
Posts: 7

Re: [SOLVED] Unable to ls

How is that supposed to help me? It just tells me what it's aliased to and where the binary is located.

Last edited by tiltnexus (2020-05-27 05:41:33)

Offline

#4 2020-05-27 05:42:30

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED] Unable to ls

Yeah, that's what it's supposed to do so we know what you actually run (eg. if the binary is shadowed by a dated copy in /usr/local/bin or the alias is bogus or whatnot)
We'll continue from there.

While we're at it

echo $LD_LIBRARY_PATH $LD_PRELOAD

Offline

#5 2020-05-27 05:46:17

tiltnexus
Member
Registered: 2020-05-27
Posts: 7

Re: [SOLVED] Unable to ls

The output is blank

Offline

#6 2020-05-27 05:52:21

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED] Unable to ls

Of "type -a ls"??

Offline

#7 2020-05-27 05:54:07

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

Re: [SOLVED] Unable to ls

tiltnexus wrote:

The output is blank

Like this thread. If you want help here, paste the full command and output that you are asked for. Don't waste everyone's time with your interpretation of the results:
https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2020-05-27 05:54:09

tiltnexus
Member
Registered: 2020-05-27
Posts: 7

Re: [SOLVED] Unable to ls

Of "echo $LD_LIBRARY_PATH $LD_PRELOAD".

Offline

#9 2020-05-27 05:57:11

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED] Unable to ls

So wtf is the output of "type -a ls"?
And since you like the interpretation game, you can also ldd the binary and if you can't spot the cause, maybe posting the output would be an option.

Offline

#10 2020-05-27 06:08:34

tiltnexus
Member
Registered: 2020-05-27
Posts: 7

Re: [SOLVED] Unable to ls

I apologize for interpreting the output. the output of "type -a ls" is

$ type -a ls
ls is aliased to `ls --color=auto'
ls is /usr/bin/ls

The output of "ldd /bin/ls" is

$ ldd /bin/ls
linux-vdso.so.1 (0x00007ffcf4250000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f64d911a000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f64d8f53000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f64d917f000)

Offline

#11 2020-05-27 06:13:14

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED] Unable to ls

So no binary shadowing, let's see the integrity of your installation:

realpath /usr/lib/libc.so.6
pacman -Qikk glibc coreutils

Offline

#12 2020-05-27 06:17:35

tiltnexus
Member
Registered: 2020-05-27
Posts: 7

Re: [SOLVED] Unable to ls

$ realpath /usr/lib/libc.so.6
/usr/lib/libc-2.31.so
$ pacman -Qikk glibc coreutils
Name            : glibc
Version         : 2.31-5
Description     : GNU C Library
Architecture    : x86_64
URL             : https://www.gnu.org/software/libc
Licenses        : GPL  LGPL
Groups          : None
Provides        : None
Depends On      : linux-api-headers>=4.10  tzdata  filesystem
Optional Deps   : gd: for memusagestat [installed]
Required By     : a52dec  alsa-lib  alsa-utils  argon2  attr  audacity  babl  base  bash  binutils  bison  bluez-libs
                  btrfs-progs  bzip2  cdparanoia  ceph-libs  convertlit  coreutils  cracklib  dav1d  device-mapper
                  diffutils  discount  dosfstools  efibootmgr  efivar  expat  faad2  fakeroot  fftw  file  findutils  flex
                  fluidsynth  fribidi  fuse2  gawk  gcc-libs  gdbm  giflib  grep  gsm  gzip  http-parser  iniparser
                  iproute2  jack  jansson  json-c  kbd  keyutils  kmod  l-smash  less  lib32-glibc  libass  libasyncns
                  libbsd  libcap  libcap-ng  libcurl-gnutls  libdatrie  libdmtx  libdvbpsi  libepoxy  libevdev  libexif
                  libffi  libgit2  libgpg-error  libical  libice  libid3tag  libidn  libinstpatch  libksba  libmad  libmnl
                  libmpcdec  libmpeg2  libmypaint  libndp  libnfnetlink  libnghttp2  libnl  libogg  libomxil-bellagio
                  libp11-kit  libpcap  libpciaccess  libpgm  libpipeline  libraw1394  libsamplerate  libseccomp  libsndfile
                  libsodium  libstemmer  libtasn1  libtool  libunistring  libunwind  libupnp  libusb  libutempter  libuv
                  libvisual  libxau  libxdmcp  libxkbcommon  libxshmfence  lilv  lmdb  lmms  lz4  lzo  m17n-db  m4  make
                  md4c  mdadm  metis  mkinitcpio-busybox  mtdev  ncurses  nspr  oath-toolkit  ocl-icd  opencore-amr
                  opera-ffmpeg-codecs  opus  orc  pacman  pam  patch  pciutils  perl  pixman  pkgconf  popt  portsmf  ppp
                  readline  rhash  sbc  sdl  sdl2  sed  serd  shaderc  snappy  sord  speexdsp  sratom  stk  sudo  suil
                  sysfsutils  systemd-libs  talloc  tar  tdb  tslib  twolame  vamp-plugin-sdk  vid.stab  vim
                  vulkan-icd-loader  wayland  which  xf86-video-vesa  xorg-bdftopcf  xorg-sessreg  xvidcore  zita-alsa-pcmi
                  zita-resampler  zlib
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 46.21 MiB
Packager        : Allan McRae <allan@archlinux.org>
Build Date      : Sun 24 May 2020 09:12:56 AM CDT
Install Date    : Wed 27 May 2020 12:32:45 AM CDT
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature

backup file: glibc: /etc/locale.gen (Modification time mismatch)
backup file: glibc: /etc/locale.gen (Size mismatch)
glibc: 1577 total files, 0 altered files
Name            : coreutils
Version         : 8.32-1
Description     : The basic file, shell and text manipulation utilities of the GNU operating system
Architecture    : x86_64
URL             : https://www.gnu.org/software/coreutils/
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : glibc  acl  attr  gmp  libcap  openssl
Optional Deps   : None
Required By     : base  ca-certificates-utils  linux  mkinitcpio  p11-kit  util-linux
Optional For    : usbutils
Conflicts With  : None
Replaces        : None
Installed Size  : 15.99 MiB
Packager        : Sébastien Luttringer <seblu@seblu.net>
Build Date      : Fri 06 Mar 2020 07:01:12 AM CST
Install Date    : Sun 24 May 2020 07:34:30 PM CDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

warning: coreutils: /usr/bin/ls (Modification time mismatch)
warning: coreutils: /usr/bin/ls (Size mismatch)
coreutils: 431 total files, 1 altered file

Offline

#13 2020-05-27 06:22:55

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: [SOLVED] Unable to ls

warning: coreutils: /usr/bin/ls (Modification time mismatch)
warning: coreutils: /usr/bin/ls (Size mismatch)

Offline

#14 2020-05-27 06:25:37

tiltnexus
Member
Registered: 2020-05-27
Posts: 7

Re: [SOLVED] Unable to ls

Thank you man, I reinstalled coreutils and everything works now.

Offline

Board footer

Powered by FluxBB