Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Cos zepsulem sobie apt-get
Teraz jak cokolwiek próbuje zainstalowac wyskakuje mi blad.
217-20-115-119:~# dpkg --install /var/cache/apt/archives/tzdata_2006l-1_all.deb (Lese Datenbank ... 0 Dateien und Verzeichnisse sind derzeit installiert.) Entpacke tzdata (aus .../tzdata_2006l-1_all.deb) ... dpkg: Fehler beim Bearbeiten von /var/cache/apt/archives/tzdata_2006l-1_all.deb (--install): kann erneuerte Dateilistendatei für Paket tzdata nicht erzeugen: Datei oder Verzeichnis nicht gefunden Fehler traten auf beim Bearbeiten von: /var/cache/apt/archives/tzdata_2006l-1_all.deb
Offline
zrob moze
env LANG=C dpkg --install /var/cache/apt/archives/tzdata_2006l-1_all.deb
to bedzie komunikat o bledzie po angielsku ...
Offline
Otrzymalem cos takiego
217-20-115-119:~# env LANG=C dpkg --install /var/cache/apt/archives/tzdata_2006l-1_all.deb (Reading database ... 0 files and directories currently installed.) Unpacking tzdata (from .../tzdata_2006l-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/tzdata_2006l-1_all.deb (--install): unable to create updated files list file for package tzdata: No such file or directory Errors were encountered while processing: /var/cache/apt/archives/tzdata_2006l-1_all.deb
217-20-115-119:~# env LANG=C apt-get install tzdata Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: tzdata 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/311kB of archives. After unpacking 5853kB of additional disk space will be used. E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: Bad file descriptor(Reading database ... 0 files and directories currently installed.) Unpacking tzdata (from .../tzdata_2006l-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/tzdata_2006l-1_all.deb (--unpack): unable to create updated files list file for package tzdata: No such file or directory Errors were encountered while processing: /var/cache/apt/archives/tzdata_2006l-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Offline
wyglada na to ze jest cos nie tak z pakietem ktory chcesz instalowac ... sproboj usunac go z listy pakietow do zainstalowania (np. za pomoca aptitude) wtedy dzialanie apt powinno wrocic do normy ...
Offline
Nie idzie to tak prosto:
Wrzucilem aptiude sciaglo jakies 200 MB paczek nacisnolem enter i przeszlo do konsoli zeby wywalic bledy.
E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 4%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 8%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 12%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 17%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 21%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 25%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 30%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 34%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 38%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 43%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 47%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 51%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 56%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 60%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 64%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 69%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 73%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 77%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 82%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 86%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 90%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 95%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 99%E: Cannot get debconf version. Is debconf installed? Extracting templates from packages: 100%d file descriptor (Reading database ... 0 files and directories currently installed.) Unpacking tzdata (from .../tzdata_2006l-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/tzdata_2006l-1_all.deb (--unpack): unable to create updated files list file for package tzdata: No such file or directory Unpacking libc6 (from .../libc6_2.3.6.ds1-4_i386.deb) ... dpkg: error processing /var/cache/apt/archives/libc6_2.3.6.ds1-4_i386.deb (--unpack): unable to create updated files list file for package libc6: No such file or directory Errors were encountered while processing: /var/cache/apt/archives/tzdata_2006l-1_all.deb /var/cache/apt/archives/libc6_2.3.6.ds1-4_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Ack! Something bad happened while installing packages. Trying to recover: Press return to continue.
Jakies pomysły ktoś jeszcze ma ;(
Offline
Errors were encountered while processing: /var/cache/apt/archives/tzdata_2006l-1_all.deb /var/cache/apt/archives/libc6_2.3.6.ds1-4_i386.deb
Rozmiem, że próbowałeś to zainstalować wcześniej (bez powodzenia)? Spróbuj więć usunąć te paczki:
apt-get --force-yes remove nazwa
Offline
Wyżuca że on nie jest zainstalowany :(
217-20-115-119:~# env LANG=C apt-get --force-yes remove tzdata Reading Package Lists... Done Building Dependency Tree... Done Package tzdata is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
i tu jest problem bo ani nieidzie go zainstalowac ani odinstalowac :/
Offline
sproboj
aptitude purge tzdata
ewentualnie jak to nie pomoze to uruchom aptitude na liscie z przegladem zaplanowanych akcji znajdz pakiet tzdata i wymaz go (przy pomocy _) i wez przejdz dalej ...
Offline
Spróbuj:
dpkg -r --force-remove-reinstreq nazwa
Offline
217-20-115-119:~# env LANG=C dpkg -r --force-remove-reinstreq tzdata dpkg - warning: ignoring request to remove tzdata which isn't installed.
to niedziała a druga opcja:
217-20-115-119:~# env LANG=C aptitude purge tzdata Reading Package Lists... Done Building Dependency Tree Reading extended state information Initializing package states... Done Reading task descriptions... Done No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 0B will be used. Writing extended state information... Done Reading Package Lists... Done Building Dependency Tree Reading extended state information Initializing package states... Done Reading task descriptions... Done
i jest dalej to samo jak instaluje cokolwiek :/
Offline
Spróbuj
dpkg --pending --remove
Ewentualnie można jeszcze na beszczelke wywalić (przenieść) skrypty pre/post-instalacyjne i info o tym upierdliwym pakiecie :
rm /var/lib/dpkg/info/<nazwa_pakietu>.*
A następnie spróbować apt-get -f install bądź instalowac na nowo.
Offline
Wiec tak niestety dalej nic ;/
217-20-115-119:~# env LANG=C dpkg --pending --remove 217-20-115-119:~#
Nic sie niewyswietla
Natomiast nie ma zadnych plików we wskazanym miejscu.
217-20-115-119:~# env LANG=C apt-get -f install Reading Package Lists... Done Building Dependency Tree... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
217-20-115-119:~# env LANG=C apt-get -f install tzdata Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: tzdata 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/311kB of archives. After unpacking 5853kB of additional disk space will be used. E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: Bad file descriptor(Reading database ... 0 files and directories currently installed.) Unpacking tzdata (from .../tzdata_2006l-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/tzdata_2006l-1_all.deb (--unpack): unable to create updated files list file for package tzdata: No such file or directory Errors were encountered while processing: /var/cache/apt/archives/tzdata_2006l-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
i dalej ten blad.
Offline
a moze sproboj
mv /var/cache/apt/archives/tzdata_2006l-1_all.deb ~
Offline
217-20-115-119:~# mv /var/cache/apt/archives/tzdata_2006l-1_all.deb ~
polecenie jest ok
ale nic niedaje zadnych postepów jak chce zaisntalowac tzdata dalej jest to samo wyskakuje ten sam blad ;/ ;(
Offline
pokaz
ls -la /var/lib/dpkg/info
(ale lepiej wklej gdzies jako plik bo troche tego powinno byc ...)
Offline
i tu jest zaskoczenie :
217-20-115-119:~# env LANG=C ls -la /var/lib/dpkg/info ls: /var/lib/dpkg/info: No such file or directory
Offline
Zamiast bawić się do śmierci opcjami dpkg, watro kolegę zapytać o sources.list. Może być i tak że posiada on wpisy z różnych dystrybucji.
Czekamy na /etc/apt/sources.list :)
Offline
tak wyglada plik
deb http://debian.mines.inpl-nancy.fr/debian/ testing main contrib deb-src http://debian.mines.inpl-nancy.fr/debian/ testing main contrib deb http://debian.mirrors.easynet.fr/ testing main contrib deb-src http://debian.mirrors.easynet.fr/ testing main contrib deb http://ftp.debian.org/debian/ testing main contrib deb-src http://ftp.debian.org/debian/ testing main contrib deb http://ftp.fr.debian.org/debian/ testing main contrib deb-src http://ftp.fr.debian.org/debian/ testing main contrib deb http://ftp2.fr.debian.org/debian/ testing main contrib deb-src http://ftp2.fr.debian.org/debian/ testing main contrib deb http://security.debian.org/ testing/updates main contrib
Wogole jest to debian na serwerze dedykowanym (wersja niemiecka jak pewnie czesc z was sie juz zorientowala)
Offline
i tu jest zaskoczenie :
Kod:
217-20-115-119:~# env LANG=C ls -la /var/lib/dpkg/info ls: /var/lib/dpkg/info: No such file or directory
i to jest rozwiazanie ... masz cos zwalone z /var zrob tak aby ten katalog byl (mkdir) i wygladal jak ponizej (chmod)
$ ls -ld /var/lib/dpkg/info drwxr-xr-x 2 root root 147456 2006-11-05 14:55 /var/lib/dpkg/info
Offline
Troche pomoglo juz nie czepa sie o tzdata.
wrzucam instalacje apache a tu wywala blad pliku coreutils.
Wiec chcac go zainstalowac:
217-20-115-119:/var/lib/dpkg# env LANG=C apt-get install coreutils Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: coreutils 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/3127kB of archives. After unpacking 8561kB of additional disk space will be used. E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: Bad file descriptor(Reading database ... 2141 files and directories currently installed.) Unpacking coreutils (from .../coreutils_5.97-5_i386.deb) ... dpkg-divert: cannot open diversions: No such file or directory dpkg: error processing /var/cache/apt/archives/coreutils_5.97-5_i386.deb (--unpack): subprocess pre-installation script returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/coreutils_5.97-5_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
i dokladnie to samo ;(
Offline
Wywolalem dzisiaj inaczej.
217-20-115-119:~# env LANG=C apt-get install coreutils Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: coreutils 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/3127kB of archives. After unpacking 8561kB of additional disk space will be used. E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: Bad file descriptor(Reading database ... dpkg: serious warning: files list file for package `libsepol1' missing, assuming package has no files currently installed . dpkg: serious warning: files list file for package `tzdata' missing, assuming package has no files currently installed. dpkg: serious warning: files list file for package `libattr1' missing, assuming package has no files currently installed. dpkg: serious warning: files list file for package `libacl1' missing, assuming package has no files currently installed. dpkg: serious warning: files list file for package `libselinux1' missing, assuming package has no files currently install ed. dpkg: serious warning: files list file for package `libc6' missing, assuming package has no files currently installed. 0 files and directories currently installed.) Unpacking coreutils (from .../coreutils_5.97-5_i386.deb) ... dpkg-divert: cannot open diversions: No such file or directory dpkg: error processing /var/cache/apt/archives/coreutils_5.97-5_i386.deb (--unpack): subprocess pre-installation script returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/coreutils_5.97-5_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Zatem po przinstalowalem poleceniem (apt-get --reinstall install nazwa) moduły: libsepol1, tzdata, libattr1, libacl1, libselinux1, libc6.
i teraz próbuje zainstalowac brakujacy moduł coreutils (potrzebny dla apache) wywalilo ze brakuje debconf wiec zainstalowalem go
(apt-get install debconf) i teraz wywala cos takiego.
217-20-115-119:~# env LANG=C apt-get install coreutils Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: coreutils 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/3127kB of archives. After unpacking 8561kB of additional disk space will be used. (Reading database ... 2623 files and directories currently installed.) Unpacking coreutils (from .../coreutils_5.97-5_i386.deb) ... dpkg-divert: cannot open diversions: No such file or directory dpkg: error processing /var/cache/apt/archives/coreutils_5.97-5_i386.deb (--unpack): subprocess pre-installation script returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/coreutils_5.97-5_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Offline
przypuszczam ze brakuje mu pliku /var/lib/dpkg/diversions ... sprooj utworzyc chocby pusty
ale takie braki w stroktorze /var/lib/dpkg nie oznaczaja niczego dobrego :-( ... ten system wydaje sie byc mocno zwalony ... zeby nie to ze jest to serwr dedykowany gdzies daleko stad to najlepiej chyba byloby to zainstalowac od nowa ....
Offline
i kolejny zonk;/
Skąd wiesz jakie pliki tworzyć może jest jakaś lista tego jakie powinienem utworzyć ?
217-20-115-119:/var/lib/dpkg# env LANG=C apt-get install debianutils Reading Package Lists... Done Building Dependency Tree... Done The following NEW packages will be installed: debianutils 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/50.6kB of archives. After unpacking 205kB of additional disk space will be used. (Reading database ... 2965 files and directories currently installed.) Unpacking debianutils (from .../debianutils_2.17_i386.deb) ... dpkg not recorded as installed, cannot check for epoch support ! nPlease upgrade to a newer version of dpkgn dpkg: error processing /var/cache/apt/archives/debianutils_2.17_i386.deb (--unpack): subprocess pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/debianutils_2.17_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Offline
i kolejny zonk;/
Skąd wiesz jakie pliki tworzyć może jest jakaś lista tego jakie powinienem utworzyć ?
z ls -l /var/lib/dpkg i domyslania sie w oparciu o komunikat bledu ... ale na razie to nam nie pomoze
dpkg not recorded as installed, cannot check for epoch support !
nPlease upgrade to a newer version of dpkgn
pierwsze rzecz ja mamy tym trazem to zbyt stary dpkg i przypuszczalnie to on powoduje porazke skryptu przedinstalacyjnego tej paczki ... swoja droga pokaz `dpkg --version`
Offline
Powiem tak wkur.... sie i zaplacilem pare złowtych za reinstall.
Skonfigurowałem od nowa ;-)
za jakis czas jak ktos bedzie czytal ten watek to sie ladnie zdenerwuje jak przeczyta mój PSOT:P
Offline