M
M
Misty Hedgehog2014-07-20 19:05:24
linux
Misty Hedgehog, 2014-07-20 19:05:24

How to solve problem with apt-get under Debian GNU/Linux 5.0?

Over time, the thirst to "chemize" with a piece of iron ( wd my book live ) has not dried up. In general, there were problems. Since the experience in working with * nix is ​​not at all significant, the OS branch is old, and the problems are quite specific - even questions from Google's ash tree do not give much result. Nothing can be installed or updated, manipulations with the sources.list of the results also do not have the proper results. Hope you can help:

cat /etc/apt/sources.list
deb archive.debian.org/debian-archive/debian/ lenny main contrib non-free
deb-src archive.debian.org/debian-archive/debian/ lenny main contrib non-free
deb archive.debian.org/debian-archive/debian-security/ lenny/updates main
deb-src archive.debian.org/debian-archive/debian-security/ lenny/updates main
deb ftp.us.debian.org/debian/ squeeze main
#deb ftp.us.debian.org/debian/ sid main
deb ftp.us.debian.org/debian/ experimental main
apt-get update
Hit archive.debian.org lenny Release.gpg
Hit archive.debian.org lenny/main Translation-ru
#…
Hit archive.debian.org lenny/updates/main Sources
Fetched 101kB in 1s (60,1kB/s)
Reading package lists… Done
W: GPG error: archive.debian.org lenny/updates Release: The following signatures were invalid: KEYEXPIRED 1356982504
W: You may want to run apt-get update to correct these problems
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-bin
The following packages will be upgraded:
libc-bin
1 upgraded, 0 newly installed, 0 to remove and 252 not upgraded.
Need to get 0B/765kB of archives.
After this operation, 8192B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Чтение базы данных…
dpkg: предупреждение: список файлов пакета ramlog отсутствует, предполагаем, что на данный момент у пакета нет установленных файлов.
dpkg: предупреждение: список файлов пакета libparted0 отсутствует, предполагаем, что на данный момент у пакета нет установленных файлов.
(Чтение базы данных… на данный момент установлено 20006 файлов и каталогов.)
Подготовка к замене пакета libc-bin 2.11.2-2 (используется файл .../libc-bin_2.11.3-4_powerpc.deb)…
Распаковывается замена для пакета libc-bin…
dpkg: не удалось обработать параметр /var/cache/apt/archives/libc-bin_2.11.3-4_powerpc.deb (--unpack):
trying to overwrite '/etc/ld.so.conf.d/libc.conf', which is also in package wd-lib 01.04.01-81092
Обрабатываются триггеры для man-db…
При обработке следующих пакетов произошли ошибки:
/var/cache/apt/archives/libc-bin_2.11.3-4_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get install gcc
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:
gcc: Depends: cpp (>= 4:4.4.5-1) but it is not going to be installed
Depends: gcc-4.4 (>= 4.4.5-1~) but it is not going to be installed
Recommends: libc6-dev but it is not going to be installed or
libc-dev
libc6: Depends: libc-bin (= 2.11.3-4) but 2.11.2-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Data:~#
cat /proc/version
Linux version 2.6.32.11-svn70860 ([email protected]) (gcc version 4.2.2)
cat /etc/issue
Debian GNU/Linux 5.0 \n \l

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neol, 2014-07-20
@paramtamtam

The solution is here - forums.debian.net/viewtopic.php?f=7&t=83830
In short, you get something like this:

dpkg -i --force-overwrite /var/cache/apt/archives/libc-bin_2.11.3-4_powerpc.deb
dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.11.3-4_powerpc.deb
cp -f /etc/ld.so.conf.d/libc.conf.bak /etc/ld.so.conf.d/libc.conf
cp -f /etc/ld.so.conf.d/powerpc-linux-gnu.conf.bak /etc/ld.so.conf.d/powerpc-linux-gnu.conf

But you still read the thread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question