LINUX.ORG.RU

squeeze перестал работать apt-get


1

1

На сервере несколько лет стоит debian squeeze. Сейчас понадобилось доустановить некоторый пакеты и столкнулся со следующими проблемами:

# apt-get update

Получено:1 http://ftp.de.debian.org squeeze Release.gpg
Получено:2 http://ftp.de.debian.org/debian/ squeeze/contrib Translation-en
99% [2 Translation-en bzip2 0 B] [Ожидание заголовков]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.de.debian.org/debian/ squeeze/contrib Translation-en
Получено:3 http://ftp.de.debian.org/debian/ squeeze/contrib Translation-ru
66% [3 Translation-ru bzip2 0 B] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.de.debian.org/debian/ squeeze/contrib Translation-ru
Получено:4 http://ftp.de.debian.org/debian/ squeeze/main Translation-en
49% [4 Translation-en bzip2 0 B] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.de.debian.org/debian/ squeeze/main Translation-en
Получено:5 http://ftp.de.debian.org/debian/ squeeze/main Translation-ru
40% [5 Translation-ru bzip2 0 B] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.de.debian.org/debian/ squeeze/main Translation-ru
Получено:6 http://ftp.de.debian.org/debian/ squeeze/non-free Translation-en
33% [6 Translation-en bzip2 0 B] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.de.debian.org/debian/ squeeze/non-free Translation-en
Получено:7 http://ftp.de.debian.org/debian/ squeeze/non-free Translation-ru
28% [7 Translation-ru bzip2 0 B] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.de.debian.org/debian/ squeeze/non-free Translation-ru
Получено:8 http://ftp.de.debian.org squeeze Release
Игн http://ftp.de.debian.org squeeze Release
Получено:9 http://ftp.de.debian.org squeeze/main Sources
33% [9 Sources bzip2 0 B]bzip2: (stdin) is not a bzip2 file.
Ош  http://ftp.de.debian.org squeeze/main Sources
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получено:10 http://ftp.de.debian.org squeeze/contrib Sources
40% [10 Sources bzip2 0 B] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Ош  http://ftp.de.debian.org squeeze/contrib Sources
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получено:11 http://ftp.de.debian.org squeeze/non-free Sources
45% [11 Sources bzip2 0 B] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Ош  http://ftp.de.debian.org squeeze/non-free Sources
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получено:12 http://ftp.de.debian.org squeeze/main i386 Packages
50% [12 Packages bzip2 0 B] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Ош  http://ftp.de.debian.org squeeze/main i386 Packages
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получено:13 http://ftp.de.debian.org squeeze/contrib i386 Packages
53% [13 Packages bzip2 0 B] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Ош  http://ftp.de.debian.org squeeze/contrib i386 Packages
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получено:14 http://ftp.de.debian.org squeeze/non-free i386 Packages
57% [14 Packages bzip2 0 B]bzip2: (stdin) is not a bzip2 file.
Ош  http://ftp.de.debian.org squeeze/non-free i386 Packages
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получено 35,3 kБ за 0с (45,7 kБ/c)
W: Ошибка GPG: http://ftp.de.debian.org squeeze Release: Следующие подписи неверные: NODATA 1 NODATA 2
W: Не удалось получить http://ftp.de.debian.org/debian/dists/squeeze/main/source/Sources.bz2  Порождённый процесс /bin/bzip2 вернул код ошибки (2)

W: Не удалось получить http://ftp.de.debian.org/debian/dists/squeeze/contrib/source/Sources.bz2  Порождённый процесс /bin/bzip2 вернул код ошибки (2)

W: Не удалось получить http://ftp.de.debian.org/debian/dists/squeeze/non-free/source/Sources.bz2  Порождённый процесс /bin/bzip2 вернул код ошибки (2)

W: Не удалось получить http://ftp.de.debian.org/debian/dists/squeeze/main/binary-i386/Packages.bz2  Порождённый процесс /bin/bzip2 вернул код ошибки (2)

W: Не удалось получить http://ftp.de.debian.org/debian/dists/squeeze/contrib/binary-i386/Packages.bz2  Порождённый процесс /bin/bzip2 вернул код ошибки (2)

W: Не удалось получить http://ftp.de.debian.org/debian/dists/squeeze/non-free/binary-i386/Packages.bz2  Порождённый процесс /bin/bzip2 вернул код ошибки (2)

E: Некоторые индексные файлы не скачались, они были проигнорированы или вместо них были использованы старые версии

#cat Soures.list

deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free


Ответ на: комментарий от sdio

С другими репозиториями те же проблемы.

Получить:1 http://ftp.ru.debian.org squeeze Release.gpg
Получить:2 http://ftp.ru.debian.org/debian/ squeeze/contrib Translation-en
99% [2 Translation-en bzip2 0] [Ожидание заголовков]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.ru.debian.org/debian/ squeeze/contrib Translation-en
Получить:3 http://ftp.ru.debian.org/debian/ squeeze/contrib Translation-ru
66% [3 Translation-ru bzip2 0] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.ru.debian.org/debian/ squeeze/contrib Translation-ru
Получить:4 http://ftp.ru.debian.org/debian/ squeeze/main Translation-en
49% [4 Translation-en bzip2 0] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.ru.debian.org/debian/ squeeze/main Translation-en
Получить:5 http://ftp.ru.debian.org/debian/ squeeze/main Translation-ru
40% [5 Translation-ru bzip2 0] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.ru.debian.org/debian/ squeeze/main Translation-ru
Получить:6 http://ftp.ru.debian.org/debian/ squeeze/non-free Translation-en
33% [6 Translation-en bzip2 0] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.ru.debian.org/debian/ squeeze/non-free Translation-en
Получить:7 http://ftp.ru.debian.org/debian/ squeeze/non-free Translation-ru
28% [7 Translation-ru bzip2 0] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Игн http://ftp.ru.debian.org/debian/ squeeze/non-free Translation-ru
Получить:8 http://ftp.ru.debian.org squeeze Release
Игн http://ftp.ru.debian.org squeeze Release
Получить:9 http://ftp.ru.debian.org squeeze/main Sources
33% [9 Sources bzip2 0]bzip2: (stdin) is not a bzip2 file.
Ош http://ftp.ru.debian.org squeeze/main Sources
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получить:10 http://ftp.ru.debian.org squeeze/contrib Sources
40% [10 Sources bzip2 0] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Ош http://ftp.ru.debian.org squeeze/contrib Sources
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получить:11 http://ftp.ru.debian.org squeeze/non-free Sources
45% [11 Sources bzip2 0] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Ош http://ftp.ru.debian.org squeeze/non-free Sources
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получить:12 http://ftp.ru.debian.org squeeze/main i386 Packages
50% [12 Packages bzip2 0] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Ош http://ftp.ru.debian.org squeeze/main i386 Packages
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получить:13 http://ftp.ru.debian.org squeeze/contrib i386 Packages
53% [13 Packages bzip2 0] [Соединение с 162.12.28.20 (162.12.28.20)]bzip2: (stdin) is not a bzip2 file.
Ош http://ftp.ru.debian.org squeeze/contrib i386 Packages
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получить:14 http://ftp.ru.debian.org squeeze/non-free i386 Packages
57% [14 Packages bzip2 0]bzip2: (stdin) is not a bzip2 file.
Ош http://ftp.ru.debian.org squeeze/non-free i386 Packages
  Порождённый процесс /bin/bzip2 вернул код ошибки (2)
Получено 35,3 kБ в 0с (45,3 kБ/с)
W: Ошибка GPG: http://ftp.ru.debian.org squeeze Release: Следующие подписи неверные: NODATA 1 NODATA 2

Советуют:

rm /var/lib/apt/lists/* -vf
apt-get clean
apt-get update 
Тоже не мой слуай.

Hard
() автор топика
Ответ на: комментарий от sdio

8.8.8.8

Гугловский поставил только на время решения проблемы, для проверки

Hard
() автор топика
Ответ на: комментарий от sdio

Попробуй
LANG=C apt-get update

Результат не изменился.

Hard
() автор топика

Сами файлы загружаются нормально:

wget http://ftp.de.debian.org/debian/dists/squeeze/contrib/source/Sources.bz2
--2014-03-24 13:19:30--  http://ftp.de.debian.org/debian/dists/squeeze/contrib/source/Sources.bz2
Распознаётся ftp.de.debian.org... 141.76.2.4
Устанавливается соединение с ftp.de.debian.org|141.76.2.4|:80... соединение установлено.
Запрос HTTP послан, ожидается ответ... 200 OK
Длина: 40899 (40K) [application/x-bzip2]
Saving to: «Sources.bz2.3»

100%[===================================================================================================================================================================================================>] 40 899       182K/s   в 0,2s

2014-03-24 13:19:31 (182 KB/s) - «Sources.bz2.3» saved [40899/40899]

Hard
() автор топика
Ответ на: комментарий от yars068

Свободное место есть?

df -h
Файловая система      Разм  Исп  Дост  Исп% смонтирована на
/dev/md0              453G  7,5G  422G   2% /
tmpfs                 2,0G     0  2,0G   0% /lib/init/rw
udev                  2,0G  220K  2,0G   1% /dev
tmpfs                 2,0G     0  2,0G   0% /dev/shm
Hard
() автор топика
Ответ на: комментарий от Dob
root@server-db:~# dpkg -l |grep bzip2
ii  bzip2                               1.0.5-6+squeeze1             high-quality block-sorting file compressor - utilities
ii  bzip2-doc                           1.0.5-6+squeeze1             high-quality block-sorting file compressor - documentation
root@server-db:~# bzip2 --version
bzip2, a block-sorting file compressor.  Version 1.0.5, 10-Dec-2007.

   Copyright (C) 1996-2007 by Julian Seward.

   This program is free software; you can redistribute it and/or modify
   it under the terms set out in the LICENSE file, which is included
   in the bzip2-1.0.5 source distribution.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   LICENSE file for more details.
Hard
() автор топика
Ответ на: комментарий от Hard

Не могу понять откуда?

[Соединение с 162.12.28.20 (162.12.28.20)]

если

$ nslookup ftp.ru.debian.org
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
ftp.ru.debian.org	canonical name = mirror.mephi.ru.
mirror.mephi.ru	canonical name = mirror.campus.mephi.ru.
mirror.campus.mephi.ru	canonical name = point.mephi.ru.
Name:	point.mephi.ru
Address: 85.143.112.112
proxy?
 echo $http_proxy

Dob
()
Ответ на: комментарий от Dob

Не могу понять откуда?

[Соединение с 162.12.28.20 (162.12.28.20)]

Действительно интересная зацепка, я не заметил. По адресу 162.12.28.20 стоит proxy

echo $http_proxy

ничего не выдает

Но сервер имеет прямой выход на шлюз 162.12.28.1 и прокси ему не нужен.

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
162.12.28.0     *               255.255.255.0   U     0      0        0 eth0
default         162.12.28.1     0.0.0.0         UG    0      0        0 eth0
# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
#auto eth0
iface eth0 inet static
address 162.12.28.78
netmask 255.255.255.0
gateway 162.12.28.1

Нигде в настройках не указано, что надо обращаться к 162.12.28.20

Hard
() автор топика
Ответ на: комментарий от Dob

Огромное спасибо, Dob и все отписавшиеся! Проблема решена! В настройках apt был прописан proxy, который за период пока сервер работал без моего вмешательства поменял правила авторизации, а я не вспомнил, что изначально все было настроено через proxy.

# cat /etc/apt/apt.conf.d/proxy
Acquire::http::Proxy "http://162.12.28.20:8070/";
Acquire::ftp::Proxy "ftp://162.12.28.20:8070/";
Acquire::::Proxy "true";

Hard
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.