Возникла задача. Есть сервер с древней версией debian 5.
Нужно обновить на текущую версию.
Обновился с 5 на 6.
Дальше проблема.
:~# apt-get update
Get:1 http://archive.debian.org squeeze Release.gpg [1655B]
Ign http://archive.debian.org squeeze/main Translation-en_US
Ign http://archive.debian.org squeeze/non-free Translation-en_US
Ign http://archive.debian.org squeeze/contrib Translation-en_US
Hit http://archive.debian.org squeeze Release
Err http://archive.debian.org squeeze Release
Get:2 http://archive.debian.org squeeze Release [96.0kB]
Ign http://archive.debian.org squeeze Release
Ign http://archive.debian.org squeeze/main Packages/DiffIndex
Ign http://archive.debian.org squeeze/non-free Packages/DiffIndex
Ign http://archive.debian.org squeeze/contrib Packages/DiffIndex
Hit http://archive.debian.org squeeze/main Packages
Hit http://archive.debian.org squeeze/non-free Packages
Hit http://archive.debian.org squeeze/contrib Packages
Fetched 97.7kB in 2s (34.6kB/s)
Reading package lists... Done
W: GPG error: http://archive.debian.org squeeze Release: The following signatures were invalid: KEYEXPIRED 1520281423 KEYEXPIRED 1501892461
W: You may want to run apt-get update to correct these problems
:~# apt-key list | grep expired
pub 1024D/F42584E6 2008-04-06 [expired: 2012-05-15]
pub 2048R/6D849617 2009-01-24 [expired: 2013-01-23]
pub 4096R/B98321F9 2010-08-07 [expired: 2017-08-05]
:~#
apt-key adv --recv-keys --keyserver keys.gnupg.net F42584E6
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --recv-keys --keyserver keys.gnupg.net F42584E6
gpg: requesting key F42584E6 from hkp server keys.gnupg.net
gpg: key F42584E6: «Lenny Stable Release Key <debian-release@lists.debian.org>» not changed
gpg: Total number processed: 1
gpg: unchanged: 1
И ничего не меняется..
Если попробовать подложить тут source.list с след версией debian, обновить не получается -
apt-get update
Hit http://ftp.be.debian.org wheezy Release.gpg
Ign http://ftp.be.debian.org wheezy/main Translation-en_US
Ign http://ftp.be.debian.org wheezy/contrib Translation-en_US
Ign http://ftp.be.debian.org wheezy/non-free Translation-en_US
Hit http://ftp.be.debian.org wheezy Release
Ign http://ftp.be.debian.org wheezy/main Packages/DiffIndex
Ign http://ftp.be.debian.org wheezy/contrib Packages/DiffIndex
Ign http://ftp.be.debian.org wheezy/non-free Packages/DiffIndex
Ign http://ftp.be.debian.org wheezy/main Sources/DiffIndex
Ign http://ftp.be.debian.org wheezy/contrib Sources/DiffIndex
Ign http://ftp.be.debian.org wheezy/non-free Sources/DiffIndex
Hit http://ftp.be.debian.org wheezy/main Packages
Hit http://ftp.be.debian.org wheezy/contrib Packages
Hit http://ftp.be.debian.org wheezy/non-free Packages
Hit http://ftp.be.debian.org wheezy/main Sources
Hit http://ftp.be.debian.org wheezy/contrib Sources
Hit http://ftp.be.debian.org wheezy/non-free Sources
Reading package lists... Done
W: There is no public key available for the following key IDs:
7638D0442B90D010
W: You may want to run apt-get update to correct these problems
apt-get install debian-archive-keyring
сначала так же обновляем ключи, apt-get update и там потом -
Fetched 21.8MB in 3min37s (100kB/s)
Preconfiguring packages ...
(Reading database ... 20165 files and directories currently installed.)
Preparing to replace aptitude 0.4.11.11-1~lenny2 (using .../aptitude_0.6.8.2-1_i386.deb) ...
Unpacking replacement aptitude ...
dpkg-deb: file `/var/cache/apt/archives/aptitude_0.6.8.2-1_i386.deb' contains ununderstood data member data.tar.xz , giving up
dpkg: error processing /var/cache/apt/archives/aptitude_0.6.8.2-1_i386.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Selecting previously deselected package aptitude-common.
dpkg: considering deconfiguration of aptitude, which would be broken by installation of aptitude-common ...
dpkg: yes, will deconfigure aptitude (broken by aptitude-common).
Unpacking aptitude-common (from .../aptitude-common_0.6.8.2-1_all.deb) ...
De-configuring aptitude ...
dpkg-deb: file `/var/cache/apt/archives/aptitude-common_0.6.8.2-1_all.deb' contains ununderstood data member data.tar.xz , giving up
dpkg: error processing /var/cache/apt/archives/aptitude-common_0.6.8.2-1_all.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Selecting previously deselected package gcc-4.7-base.
Unpacking gcc-4.7-base (from .../gcc-4.7-base_4.7.2-5_i386.deb) ...
Errors were encountered while processing:
/var/cache/apt/archives/aptitude_0.6.8.2-1_i386.deb
/var/cache/apt/archives/aptitude-common_0.6.8.2-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)