1 |
On 2021.09.06 10:33, Alexander Puchmayr wrote: |
2 |
> Hi there, |
3 |
> |
4 |
> I just tried to upgrade a older installation via binary packages and |
5 |
> this |
6 |
> broke my system. After around 25 packages of almost 300 it stopped |
7 |
> with error |
8 |
> and failing packages. |
9 |
> |
10 |
> $ emerge |
11 |
> Failed to validate a sane '/dev'. |
12 |
> bash process substitution doesn't work; this may be an indication of |
13 |
> a broken |
14 |
> '/dev/fd'. |
15 |
> $ ls -l /dev/fd/ |
16 |
> insgesamt 0 |
17 |
> lrwx------ 1 root root 64 6. Sep 14:18 0 -> /dev/pts/0 |
18 |
> lrwx------ 1 root root 64 6. Sep 14:18 1 -> /dev/pts/0 |
19 |
> lrwx------ 1 root root 64 6. Sep 14:18 2 -> /dev/pts/0 |
20 |
> lr-x------ 1 root root 64 6. Sep 14:18 3 -> /proc/27261/fd |
21 |
> |
22 |
> --> looks allright, but: |
23 |
> |
24 |
> $ bash |
25 |
> bash: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by |
26 |
> /lib64/ |
27 |
> libreadline.so.8) |
28 |
> |
29 |
> --> system broken(!), cannot start any shell anymore, cannot install |
30 |
> anything |
31 |
> anymore and it's obvious that the system is bricked after reboot or |
32 |
> even when |
33 |
> the ssh session I'm logged in is closed. |
34 |
> |
35 |
> It seems like as if sys-libs/readline-8.1_p1-r1-1:0/8::gentoo is |
36 |
> installed |
37 |
> *before* installing a suitable glibc, breaking any binary that has |
38 |
> the useflag |
39 |
> readline (including bash). |
40 |
> |
41 |
> Two questions: |
42 |
> How do I get out of this mess? |
43 |
> Why does portage not work in correct package order? Portage bug? |
44 |
It might help if you stated which version of packages you currently |
45 |
have installed - specifically glibc. |
46 |
|
47 |
As for recovery, you most likely need to boot to a live image (CD or |
48 |
USB) then chroot into the existing system. I'm only guessing as to |
49 |
what is the minimal list of files you will need to replace, but I'd see |
50 |
if you can find or create a binary package of the latest glibc and then |
51 |
install or unpack that to your system. |
52 |
|
53 |
As to whether this might be a bug in portage, I'd say you need to |
54 |
provide more details about exactly what you did. What emerge line, |
55 |
what you mean by installation via binary packages, and where you got |
56 |
those binary packages. |
57 |
|
58 |
If you do still have a running shell, does emerge still run at all? |