Problém s dpkg a apt-get ("package uses Breaks; not supported in this dpkg")

Založil eriol, 31. 03. 2011, 13:25:57

Předchozí téma - Další téma

eriol

Zdravím Vás,
nejsem zkušený uživatel tak prosím o shovívavost a přejdu hned k věci:

Stroj: Linux 2.6.18-3-686 #1 SMP i686 GNU/Linux
Snažil jsem se aktualitovat php na verzi 5. Nepamatuji si už přesně jak k problémům došlo, ale po několika pokusech o upgrade začala převládat hláška:
package uses Breaks; not supported in this dpkg

Když pustím "apt-get update" vše proběhne v pořádku, ale při "apt-get -f install" se vypíše:
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc-bin libc6 libc6-i686 liblzma2 xz-utils
Suggested packages:
  glibc-doc xz-lzma
The following NEW packages will be installed:
  libc-bin liblzma2 xz-utils
The following packages will be upgraded:
  libc6 libc6-i686
2 upgraded, 3 newly installed, 0 to remove and 477 not upgraded.
1 not fully installed or removed.
Need to get 0B/6177kB of archives.
After unpacking 1491kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = "cs_CZ.UTF-8",
        LANG = "cs_CZ.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: LC_ALL nelze nastavit na implicitní národní prostředí: Adresář nebo soubor neexistuje
Preconfiguring packages ...
dpkg: regarding .../libc-bin_2.11.2-10_i386.deb containing libc-bin:
package uses Breaks; not supported in this dpkg
dpkg: error processing /var/cache/apt/archives/libc-bin_2.11.2-10_i386.deb (--unpack):
unsupported dependency problem - not installing libc-bin
dpkg: regarding .../libc6_2.11.2-10_i386.deb containing libc6:
package uses Breaks; not supported in this dpkg
dpkg: error processing /var/cache/apt/archives/libc6_2.11.2-10_i386.deb (--unpack):
unsupported dependency problem - not installing libc6
Errors were encountered while processing:
/var/cache/apt/archives/libc-bin_2.11.2-10_i386.deb
/var/cache/apt/archives/libc6_2.11.2-10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Podle hlášky bych usoudil, že je potřeba nová verze dpkg. Ale tu nedokážu nainstalovat, protože vyžaduje LIBC6 / xz utils apod.
A tady už se dostávám do kruhu:
# dpkg -i dpkg_1.15.8.10_i386.deb
dpkg: regarding dpkg_1.15.8.10_i386.deb containing dpkg, pre-dependency problem:
dpkg pre-depends on xz-utils
  xz-utils is not installed.
dpkg: error processing dpkg_1.15.8.10_i386.deb (--install):
pre-dependency problem - not installing dpkg
Errors were encountered while processing:
dpkg_1.15.8.10_i386.deb


jenže

# dpkg -i xz-utils_5.0.0-2_i386.deb
Selecting previously deselected package xz-utils.
dpkg: regarding xz-utils_5.0.0-2_i386.deb containing xz-utils:
package uses Breaks; not supported in this dpkg
dpkg: error processing xz-utils_5.0.0-2_i386.deb (--install):
unsupported dependency problem - not installing xz-utils
Errors were encountered while processing:
xz-utils_5.0.0-2_i386.deb


Apod...
Za Vaši pomoc budu velmi vděčný. Jen prosím nepiště, že jsem [censored], dělám to špatně a že jsem to zk***il sám. To všechno vím a jinak bych tu nebyl..

Hobild

nejprve bych dal do poradku system - aptitude dist-upgrade, protoze z hlaseni vyplyva "477 not upgraded" - tedy neaktualizovane baliky.
Pak by bylo dobre uvest obsah souboru /etc/apt/sources.list a /etc/apt/apt.conf. Mozna budeme moudrejsi.
H.

eriol

Hobild: Díky za pomoc!

aptitude dist-upgrade skoncilo plne chyb. Viz konec:

.
.
.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = "cs_CZ.UTF-8",
        LANG = "cs_CZ.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = "cs_CZ.UTF-8",
        LANG = "cs_CZ.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
dpkg: regarding .../libc-bin_2.11.2-10_i386.deb containing libc-bin:
package uses Breaks; not supported in this dpkg
dpkg: error processing /var/cache/apt/archives/libc-bin_2.11.2-10_i386.deb (--unpack):
unsupported dependency problem - not installing libc-bin
dpkg: regarding .../libc6_2.11.2-10_i386.deb containing libc6:
package uses Breaks; not supported in this dpkg
dpkg: error processing /var/cache/apt/archives/libc6_2.11.2-10_i386.deb (--unpack):
unsupported dependency problem - not installing libc6
Errors were encountered while processing:
/var/cache/apt/archives/libc-bin_2.11.2-10_i386.deb
/var/cache/apt/archives/libc6_2.11.2-10_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
dpkg: dependency problems prevent configuration of locales:
locales depends on glibc-2.11-1; however:
  Package glibc-2.11-1 is not installed.
dpkg: error processing locales (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
locales


/etc/apt/sources.list

# See sources.list(5) for more information, especially
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.
# deb http://http.us.debian.org/debian stable main contrib non-free
# deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
# deb http://security.debian.org stable/updates main contrib non-free

# Uncomment if you want the apt-get source function to work
#deb-src http://http.us.debian.org/debian stable main contrib non-free
#deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free

deb http://ftp.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb http://www.debian-multimedia.org/ squeeze main


/etc/apt/apt.conf
apt.conf v adresari /etc/apt neni. Je tam adresar apt.conf.d, kde jsou
00trustcdrom:
APT::Authentication::TrustCDROM "true";

70debconf:
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};


90zope-common:
/*
* APT configuration file for Zope Debian packages.
*/

DPkg {
        Post-Invoke {"which dzhandle >/dev/null && dzhandle restart-pending-instances || true";};
}

Hobild

zdroje, ktere mas uz nejsou korektni, se squeeze se stal stable, takze si to zmen
napr.
deb http://ftp.debian.org/debian/ squeeze main contrib non-free
deb http://ftp.debian.org/debian/ stable main contrib non-free
Pak proved aptitude update
a nasledne zkus znovu
aptitude dist-upgrade
pokud to nepomuze, spust si aptitude a za pomoci vyhledavani reseni (v menu Resitel) dej do poradku system.
H.