Kirjoittaja Aihe: Apt-get rikki  (Luettu 2891 kertaa)

kmohi

  • Käyttäjä
  • Viestejä: 9
    • Profiili
Apt-get rikki
« : 26.10.06 - klo:19.49 »
Dapper drake alla ja kernelinä 2.6.15-27-386

En käyttänyt viikkoon tietokonettani ja tänään avatessani koneen huomasin, ettei ubuntu suostu asentamaan päivityksiä. Ongelmat taitavat johtua yli viikko sitten tehdyistä sähellyksistä, muttei kyllä nyt heti tuu mieleen, mitä sillon tuli säädettyä. Tänään siis kun koitin sudo apt-get dist-upgrade asennus jäi kesken.

Elikkä nyt kun koittaa pistää sudo apt-get install -f
tapahtuu seuraavaa:

Koodia: [Valitse]
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies...Done
The following extra packages will be installed:
  libc6
Suggested packages:
  glibc-doc
The following NEW packages will be installed
  libc6
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0B/4588kB of archives.
After unpacking 10.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: Bad file descriptor(Reading database ... 2315 files and directories currently installed.)
Unpacking libc6 (from .../libc6_2.3.6-0ubuntu20_i386.deb) ...
dpkg not recorded as installed, cannot check for epoch support !
dpkg: error processing /var/cache/apt/archives/libc6_2.3.6-0ubuntu20_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.3.6-0ubuntu20_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Alla oleva urlikaan ei auttanut, joten nyt on tuo dpgk-status:kin rikottu :(

http://ubuntuforums.org/showthread.php?t=276155

raimo

  • Käyttäjä
  • Viestejä: 4250
  • openSUSE Tumbleweed
    • Profiili
Re: Apt-get rikki
« Vastaus #1 : 26.10.06 - klo:20.05 »
Tarkista ensin että /etc/apt/sources.list on varmasti kunnossa (kaikki viralliset dapper-lähteet käytössä, eikä epävirallisia Debian tms saa olla, eikä edgy:jäkään).

edit: varmista että mikään toinen paketinhallintaohjelma ei ole käynnissä,
eikä esim dpkg ole "jumissa" tms, komento ps -A kertoo sen.

Kokeile sitten varulta tämä:
sudo dpkg --configure -a
ja sitten
sudo apt-get -f install

Ellei tuo auttanut niin höpötä nämä, clean ensin siksi että varmasti saadaan tuoretta kamaa.
sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall debconf
sudo apt-get -f install
sudo dpkg --configure -a

debconf:ia ei sitten voi poistaa ihan helposti, joten uskotaan ja toivotaan
oikein kovasti että tuo uudelleenasennus auttaa.
« Viimeksi muokattu: 26.10.06 - klo:20.11 kirjoittanut raimo »
Tietä käyden tien on vanki. Vapaa on vain umpihanki.
Aaro Hellaakoski

kmohi

  • Käyttäjä
  • Viestejä: 9
    • Profiili
Re: Apt-get rikki
« Vastaus #2 : 26.10.06 - klo:22.23 »
Tarkistin ton sources.listin ja varmistin että on ihan pelkät viralliset dapper lähteet.

ps -A komento ei löytänyt muita paketinhallintaohjelmia.

sudo dpkg --configure -a aiheuttaa seuraavanlaista erroria:

Koodia: [Valitse]
sudo dpkg --configure -a
Password:
dpkg: dependency problems prevent configuration of belocs-locales-bin:
 belocs-locales-bin depends on libc6 (>= 2.3.4-1); however:
  Package libc6 is not installed.
dpkg: error processing belocs-locales-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of locales:
 locales depends on belocs-locales-bin (>= 2.3.5-5ubuntu1); however:
  Package belocs-locales-bin is not configured yet.
dpkg: error processing locales (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 belocs-locales-bin
 locales

ja tuo jälkimmäinen reinstallikaan ei oikeen toimi, kun tyssää kohtaan: "sudo apt-get install --reinstall debconf"- ja tollasta erroria tulee

Koodia: [Valitse]
sudo apt-get install --reinstall debconf
Reading package lists... Done
Building dependency tree... Done
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies.
  belocs-locales-bin: Depends: libc6 (>= 2.3.4-1) but it is not going to be installed
  debconf: Depends: debconf-i18n but it is not going to be installedor
                    debconf-english but it is not going to be installed
           PreDepends: perl-base (>= 5.6.1-4) but it is not going to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

Elikkä ei näytä toimivan. Mikä neuvoksi?

hegulix

  • Käyttäjä
  • Viestejä: 215
    • Profiili
Re: Apt-get rikki
« Vastaus #3 : 26.10.06 - klo:23.17 »
No kokeile sitä sudo apt-get -f install , mitä se ehdottaa. saattaa vaikka auttaa.

kmohi

  • Käyttäjä
  • Viestejä: 9
    • Profiili
Re: Apt-get rikki
« Vastaus #4 : 27.10.06 - klo:00.31 »
No kokeile sitä sudo apt-get -f install , mitä se ehdottaa. saattaa vaikka auttaa.

Erroriahan tuostakin tulee:

Koodia: [Valitse]
sudo apt-get -f install
Password:
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies...Done
The following extra packages will be installed:
  libc6
Suggested packages:
  glibc-doc
The following NEW packages will be installed
  libc6
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 4588kB of archives.
After unpacking 10.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 ftp://ftp.funet.fi dapper/main libc6 2.3.6-0ubuntu20 [4588kB]
Fetched 4588kB in 4s (1130kB/s)
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: Bad file descriptor(Reading database ... 2315 files and directories currently installed.)
Unpacking libc6 (from .../libc6_2.3.6-0ubuntu20_i386.deb) ...
dpkg not recorded as installed, cannot check for epoch support !
dpkg: error processing /var/cache/apt/archives/libc6_2.3.6-0ubuntu20_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.3.6-0ubuntu20_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

hegulix

  • Käyttäjä
  • Viestejä: 215
    • Profiili
Re: Apt-get rikki
« Vastaus #5 : 27.10.06 - klo:12.44 »
Kokeile piruuttas asentaa ubuntu-desktop tai jos se varmasti on asenettuna niin uudelleenasennusta (reinstall) jos auttais?

kmohi

  • Käyttäjä
  • Viestejä: 9
    • Profiili
Re: Apt-get rikki
« Vastaus #6 : 27.10.06 - klo:23.46 »
Kokeile piruuttas asentaa ubuntu-desktop tai jos se varmasti on asenettuna niin uudelleenasennusta (reinstall) jos auttais?

Ei onnistu tuo ubuntu-desktopin reinstalli. Ettii ihan nätisti riippuuvuudet, mutta heittää lopuks vaan errorin:

Koodia: [Valitse]
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a s
Ja eikä tuo sen antama "apt-get -f install"-komentokaan johda mihinkään muuhun kuin erroriin, mikä on jo pastettu tuonne ylemmäs. Mitäs sitä kehittäis? Anyone?