Portál AbcLinuxu, 25. května 2024 21:26


Dotaz: Nefunkční debian wheezy - nejde ani chroot

21.2.2013 19:18 majales | skóre: 29 | blog: Majales
Nefunkční debian wheezy - nejde ani chroot
Přečteno: 634×
Odpovědět | Admin
Dobrý den Nevěděli byste někdo kde hledat problém. Po apt-get upgrade se mi nedaří opětovně rozjet instalace debian wheezy. Při bootu to hodí následující chybu:
/sbin/init: error while loading shared libraries: libsepol.so.1: cannot open shared object file: no such file or directory
A 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 directory
Neví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.

Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

Jendа avatar 21.2.2013 21:05 Jendа | skóre: 78 | blog: Jenda | JO70FB
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Odpovědět | | Sbalit | Link | Blokovat | Admin
Podíval bych se, jestli ty knihovny opravdu neexistují, a nakopíroval bych je tam z balíčku/jiného funkčního systému.
Já to s tou denacifikací Slovenska myslel vážně.
21.2.2013 21:55 majales | skóre: 29 | blog: Majales
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Tak chroot se nakonec povedl pomocí chroot /mnt/debian-virt /bin/sh .. Ovšem je to k ničemu všechny příkazy končí takto:
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 directory
Soubory tam jsou a jdou zkopírovat. Tak teda vážně nevím co se pokazilo..
21.2.2013 21:58 Adamec | skóre: 30
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
a na disku ty soubory jsou ci ne???
ldconfig -p | grep libselinux.so.1
This is not a bug it's a feature
21.2.2013 22:03 Adamec | skóre: 30
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
sorry ... nejak jsem prehledl posledni vetu ..

kukni na
http://linux.101hacks.com/unix/ldconfig/
This is not a bug it's a feature
22.2.2013 00:50 majales | skóre: 29 | blog: Majales
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Tak samotnej ldconfig zabral... Systém už jede, ale chyba se vrací po pokusech o vyřešení chybných závislostí...
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..
22.2.2013 15:07 majales | skóre: 29 | blog: Majales
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Tak nevím co s tím.. Jsou nějaké pomíchané libc6 knihovny a já se z toho neumím dostat. Jde o multiarch. Nevědel by někdo jak tento problém vyřešit? Nebo jde o bug Wheezyho?
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

22.2.2013 15:11 majales | skóre: 29 | blog: Majales
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Ještě výpis z dpkg...
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
24.2.2013 20:30 majales | skóre: 29 | blog: Majales
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Co byste radili? Přeinstalovat a vykašlat se na multiarch? Je to bug Wheezyho? Nebo jsem si nějak sám rozbil systém? Zatím nic z toho co jsem zkoušel nezabralo... :-(
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.

25.2.2013 10:26 alkoholik | skóre: 40 | blog: Alkoholik
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Zkus:
dpkg -i --force-all /var/cache/apt/archives/libc6_2.13-38_i386.deb
dpkg -i --force-all /var/cache/apt/archives/libc6_2.13-38_amd64.deb
25.2.2013 10:34 majales | skóre: 29 | blog: Majales
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Vyzkoušel jsem, ale bohužel bez úspěchu. Problém je že v průběhu instalace se asi pošramotí linky na knihovny a proto to vždy končí chybou... Pak je potřeba to napravit pomocí ldconfig.. jinak nelze volat žádný ze standartních příkazů vyjma "cd"...
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:/#


25.2.2013 12:38 alkoholik | skóre: 40 | blog: Alkoholik
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Tak zacni tim, ze si nainstalujes staticky slinkovany busybox (balik busybox-static).
Bedňa avatar 25.2.2013 20:11 Bedňa | skóre: 34 | blog: Žumpa | Horňany
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Teda ja mám taký vlastný postup, keď sa mi dvakrát za život podarilo rozbiť balíčkovací systém:

Všetko pod rootom:
cd /var/lib/dpkg/info/
rm *
cd /var/lib/apt/lists/
rm *
apt-get clean
dpkg --configure -a
apt-get -f instal
Keď 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í.
KERNEL ULTRAS video channel >>>
Nicky726 avatar 21.2.2013 22:28 Nicky726 | skóre: 56 | blog: Nicky726
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Odpovědět | | Sbalit | Link | Blokovat | Admin
Nejsem si jist nakolik je to relevantní, ale podobný průběh a chybové hlášky jsem zažil, když v Archu nevyšlo nahrazení /lib symlinkem na /usr/lib. Binárky se daly spouštět přes linker přímo: /usr/lib/ld-2.16.so /bin/ls a bylo potřeba ručně instalovat glibc. Nejde něco podobného použít nyní?
Enjoy the detours. There you’ll find the things more important than what you want. (Hunter x Hunter)
23.2.2013 16:28 2X4B-523P | skóre: 38 | blog: Zelezo_vs_Debian
Rozbalit Rozbalit vše Re: Nefunkční debian wheezy - nejde ani chroot
Odpovědět | | Sbalit | Link | Blokovat | Admin
posledně mi wheezy nešel nainstalovat přes instalátor, ale přes debootstrap to prošlo v pohodě, mám podezření na bug/špatné vypálení instalačního CD (v mém příp. netinstall)

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.