Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Решено] Накрылась система /bin/sh: undefinedsymbol...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Siarhei
n00b
n00b


Joined: 10 Jan 2016
Posts: 68
Location: Minsk

PostPosted: Sun Jun 30, 2024 6:06 pm    Post subject: [Решено] Накрылась система /bin/sh: undefinedsymbol... Reply with quote

Всем прием. После обновления захотел сделать depclean. Этого сделать не получилось из-за ошибки, портаж предложил выполнить
Code:
emerge --newuse --update --autounmask=n --deep --keep-going --with-bdeps=y --quiet-build=n --regex-search-auto=y @world
что я и сделал. На
Code:
emerge (8 of 90) sys-libs/readline-8.1_p2-r2 to /
пошли ошибки. В итого bash не работает и при загрузке системы получаю
Code:
/bin/sh: symbol lookup error: /bin/sh: undefined symbol: rl_trim_arg_from_keyseq
INIT: Extering funlevel: 3
This in (none) (linux x86_64...)

Самой собой, chroot тоже вываливается с такой ошибкой. Подскажите как можно востановить систему?
На reddite писали про глючный readline
Мои данные:
emerge.log
https://pastebin.mozilla.org/Gmmn58td

ls -l /mnt/gentoo/
Code:
drwxr-xr-x   2 root    root     4096 июн 29 08:23 bin
drwxr-xr-x   2 root    root     4096 ноя 27  2016 boot
drwxr-xr-x   2 root    root     4096 окт 10  2009 cache
drwxr-xr-x   2 root    root     4096 ноя 27  2016 dev
drwxr-xr-x 120 root    root    12288 июн 29 09:01 etc
drwxrwxrwx   3 root    root     4096 июн 30 08:05 home
srw-------   1 root    root        0 янв 19  2018 kdeinit5__0
srwxr-xr-x   1 root    root        0 янв 16  2017 klauncherJ17875.1.slave-socket
drwxr-xr-x  14 root    root     4096 мая 18 12:26 lib
lrwxrwxrwx   1 root    root        3 июн  8  2019 lib32 -> lib
drwxr-xr-x   7 root    root    12288 июн 29 08:23 lib64
drwx------   2 root    root    16384 ноя 27  2016 lost+found
drwxr-xr-x  14 root    root     4096 янв 29  2020 media
drwxr-xr-x   3 root    root     4096 ноя 27  2022 mnt
drwxr-xr-x   3 root    root     4096 сен 25  2009 net
drwxr-xr-x  13 root    root     4096 мая  8 18:20 opt
dr-xr-xr-x   2 root    root     4096 ноя 27  2016 proc
drwx------  50 root    root     4096 июн 29 09:12 root
drwxr-xr-x   2 root    root     4096 дек  5  2019 run
drwxr-xr-x   2 root    root    12288 июн 29 08:23 sbin
dr-xr-xr-x   2 root    root     4096 ноя 27  2016 sys
drwxr-xr-x   5 root    root     4096 дек  5  2019 tmp
drwxrwxr-x  15 portage portage  4096 июн 30  2019 usr
drwxr-xr-x  13 root    root     4096 мая  8 17:40 var

ls -l /mnt/gentoo/usr
Code:
drwxr-xr-x   3 root    root     81920 июн 29 09:01 bin
drwxr-xr-x 421 root    root     53248 июн 29 08:37 include
drwxr-xr-x   3 root    root      4096 апр  5  2009 kde
drwxr-xr-x 105 root    root     98304 июн 29 09:01 lib
drwxr-xr-x 115 root    root    200704 июн 29 09:01 lib64
drwxr-xr-x  24 root    root      4096 июн 29 08:21 libexec
drwxr-xr-x  10 root    root      4096 июн  8  2019 local
-rw-r--r--   1 root    root       943 дек  4  2016 my.cnf
drwxrwxr-x 175 portage portage   4096 мая  3  2020 portage
drwxr-xr-x   3 root    root      4096 мар 25  2009 qt
drwxr-xr-x   2 root    root     12288 июн 29 08:22 sbin
drwxr-xr-x 303 root    root     12288 июн 29 08:35 share
drwxr-xr-x   7 root    root      4096 июн 29 08:39 src
lrwxrwxrwx   1 root    root         8 мар 22  2009 tmp -> /var/tmp
drwxr-xr-x   6 root    root      4096 июн 17  2008 x86_64-pc-linux-gnu

ls -l /mnt/gentoo/etc/portage/make.profile
Code:
/mnt/gentoo/etc/portage/make.profile -> ../../usr/portage/profiles/default/linux/amd64/23.0/split-usr/desktop/plasma

ls -l /mnt/gentoo/lib*/lib*readline*
Code:
No such file or directory

ls -l /mnt/gentoo/usr/lib*/lib*readline*
Code:
lrwxrwxrwx 1 root root     16 июн 29 09:01 /mnt/gentoo/usr/lib64/libreadline.so -> libreadline.so.8
lrwxrwxrwx 1 root root     18 июн 29 09:01 /mnt/gentoo/usr/lib64/libreadline.so.8 -> libreadline.so.8.1
-rwxr-xr-x 1 root root 347120 июн 29 09:01 /mnt/gentoo/usr/lib64/libreadline.so.8.1
lrwxrwxrwx 1 root root     16 июн 29 09:01 /mnt/gentoo/usr/lib/libreadline.so -> libreadline.so.8
lrwxrwxrwx 1 root root     18 июн 29 09:01 /mnt/gentoo/usr/lib/libreadline.so.8 -> libreadline.so.8.1
-rwxr-xr-x 1 root root 327604 июн 29 09:01 /mnt/gentoo/usr/lib/libreadline.so.8.1


Без работающего chroot как без рук :(
На англоязычной ветке тоже написал.

Решение проблемы: "copy of the correct libreadline.so.8.2 binary that you can put into /mnt/gentoo/usr/lib/ and change the symlink libreadline.so.8 to point to libreadline.so.8.2 instead of the 8.1 version"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum