Portál AbcLinuxu, 6. května 2025 22:52
/sbin/init: error while loading shared libraries: libsepol.so.1: cannot open shared object file: no such file or directoryA pak následuje samozřejmě Kernel panic.. Pokus o chroot se nezdaří zase s následující hláškou:
sudo chroot /mnt/debian-virt /bin/bash /bin/bash error while loading shared libraries: libtinfo.so.5: cannot open shared object file: no such file or directoryNevíte někdo kde může být problém. Systém je vybudován na sw raid 6 poli a lvm. Disky jsem projet fsck a zdá se že je vše v pořádku. Akorát se při tom update instalovalo nové mdadm.
ls: error while loading shared libraries: libselinux.so.1: cannot open shared object file: no such file or directory cp: error while loading shared libraries: libselinux.so.1: cannot open shared object file: no such file or directory mc: error while loading shared libraries: libslang.so.2: cannot open shared object file: no such file or directorySoubory tam jsou a jdou zkopírovat. Tak teda vážně nevím co se pokazilo..
apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libc6 : Depends: libc-bin (= 2.13-37) libc6:i386 : Depends: libc-bin:i386 (= 2.13-37) libc6-amd64:i386 : Depends: libc6:i386 (= 2.13-38) but 2.13-37 is installed libc6-dev : Depends: libc6 (= 2.13-38) but 2.13-37 is installed Depends: libc-dev-bin (= 2.13-38) libc6-dev:i386 : Depends: libc6:i386 (= 2.13-38) but 2.13-37 is installed Depends: libc-dev-bin:i386 (= 2.13-38) Recommends: gcc:i386 but it is not installed or c-compiler:i386 E: Unmet dependencies. Try using -f. apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libc-dev-bin libc6 libc6:i386 libc6-i686:i386 Suggested packages: glibc-doc glibc-doc:i386 locales:i386 The following packages will be upgraded: libc-dev-bin libc6 libc6:i386 libc6-i686:i386 4 upgraded, 0 newly installed, 0 to remove and 23 not upgraded. 8 not fully installed or removed. Need to get 0 B/9,755 kB of archives. After this operation, 3,072 B of additional disk space will be used. Do you want to continue [Y/n]? y Reading changelogs... Done Preconfiguring packages ... (Reading database ... 40442 files and directories currently installed.) Preparing to replace libc6:amd64 2.13-37 (using .../libc6_2.13-38_amd64.deb) ... De-configuring libc6:i386 ... Unpacking replacement libc6:amd64 ... dpkg-deb: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory dpkg: error processing /var/cache/apt/archives/libc6_2.13-38_amd64.deb (--unpack): subprocess dpkg-deb --fsys-tarfile returned error exit status 127 dpkg-deb: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory dpkg: error processing /var/cache/apt/archives/libc6_2.13-38_i386.deb (--unpack): subprocess dpkg-deb --control returned error exit status 127 Errors were encountered while processing: /var/cache/apt/archives/libc6_2.13-38_amd64.deb /var/cache/apt/archives/libc6_2.13-38_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)Už na to dnes nemám... jdu spát..
apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libc-dev-bin libc6 libc6:i386 libc6-i686:i386 Suggested packages: glibc-doc glibc-doc:i386 locales:i386 The following packages will be upgraded: libc-dev-bin libc6 libc6:i386 libc6-i686:i386 4 upgraded, 0 newly installed, 0 to remove and 26 not upgraded. 8 not fully installed or removed. Need to get 9,755 kB of archives. After this operation, 3,072 B of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://ftp.cz.debian.org/debian/ wheezy/main libc6 i386 2.13-38 [3,939 kB] Get:2 http://ftp.cz.debian.org/debian/ wheezy/main libc6 amd64 2.13-38 [4,339 kB] Get:3 http://ftp.cz.debian.org/debian/ wheezy/main libc6-i686 i386 2.13-38 [1,253 kB] Get:4 http://ftp.cz.debian.org/debian/ wheezy/main libc-dev-bin amd64 2.13-38 [224 kB] Fetched 9,755 kB in 11s (835 kB/s) Reading changelogs... Done Preconfiguring packages ... (Reading database ... 40442 files and directories currently installed.) Preparing to replace libc6:amd64 2.13-37 (using .../libc6_2.13-38_amd64.deb) ... De-configuring libc6:i386 ... Unpacking replacement libc6:amd64 ... dpkg-deb: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory dpkg: error processing /var/cache/apt/archives/libc6_2.13-38_amd64.deb (--unpack): subprocess dpkg-deb --fsys-tarfile returned error exit status 127 dpkg-deb: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory dpkg: error processing /var/cache/apt/archives/libc6_2.13-38_i386.deb (--unpack): subprocess dpkg-deb --control returned error exit status 127 Errors were encountered while processing: /var/cache/apt/archives/libc6_2.13-38_amd64.deb /var/cache/apt/archives/libc6_2.13-38_i386.deb
dpkg --get-selections |grep libc6 libc6:amd64 install libc6:i386 install libc6-amd64 install libc6-dev:amd64 install libc6-dev:i386 install libc6-dev-amd64 install libc6-i686:i386 install
apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libc6 : Depends: libc-bin (= 2.13-37) libc6:i386 : Depends: libc-bin:i386 (= 2.13-37) libc6-amd64:i386 : Depends: libc6:i386 (= 2.13-38) but 2.13-37 is installed libc6-dev : Depends: libc6 (= 2.13-38) but 2.13-37 is installed Depends: libc-dev-bin (= 2.13-38) libc6-dev:i386 : Depends: libc6:i386 (= 2.13-38) but 2.13-37 is installed Depends: libc-dev-bin:i386 (= 2.13-38) Recommends: gcc:i386 but it is not installed or c-compiler:i386 E: Unmet dependencies. Try using -f.
dpkg -i --force-all /var/cache/apt/archives/libc6_2.13-38_i386.deb (Reading database ... 40442 files and directories currently installed.) Preparing to replace libc6:i386 2.13-37 (using .../libc6_2.13-38_i386.deb) ... De-configuring libc6:amd64 ... Unpacking replacement libc6:i386 ... dpkg-deb: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory dpkg: error processing /var/cache/apt/archives/libc6_2.13-38_i386.deb (--install): subprocess dpkg-deb --fsys-tarfile returned error exit status 127 Errors were encountered while processing: /var/cache/apt/archives/libc6_2.13-38_i386.deb root@debian-virt:/# ls ls: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory root@debian-virt:/# ldconfig root@debian-virt:/# dpkg -i --force-all /var/cache/apt/archives/libc6_2.13-38_amd64.deb (Reading database ... 40442 files and directories currently installed.) Preparing to replace libc6:amd64 2.13-37 (using .../libc6_2.13-38_amd64.deb) ... De-configuring libc6:i386 ... Unpacking replacement libc6:amd64 ... dpkg-deb: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory dpkg: error processing /var/cache/apt/archives/libc6_2.13-38_amd64.deb (--install): subprocess dpkg-deb --fsys-tarfile returned error exit status 127 Errors were encountered while processing: /var/cache/apt/archives/libc6_2.13-38_amd64.deb root@debian-virt:/# ls ls: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory root@debian-virt:/# cp cp: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory root@debian-virt:/# cd.. -bash: cd..: command not found root@debian-virt:/# cd .. root@debian-virt:/#
cd /var/lib/dpkg/info/ rm * cd /var/lib/apt/lists/ rm * apt-get clean dpkg --configure -a apt-get -f instalKeď toto nezaberie, spravidla reinštalujem :) Teda pokiaľ ti beží selinux, ešte by sa dal použiť restorecon, ale neviem či to za to stojí.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.