升级Debian Squeeze以拉伸


0

这样做apt-get update会出现以下错误:

Ign http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
Ign http://security.debian.org/ squeeze/updates/contrib Translation-en_GB
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_GB
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en
Ign http://security.debian.org/ squeeze/updates/non-free Translation-en_GB
Ign http://security.debian.org squeeze/updates Release
Ign http://security.debian.org squeeze/updates/main Sources
Ign http://security.debian.org squeeze/updates/contrib Sources
Ign http://security.debian.org squeeze/updates/non-free Sources
Ign http://security.debian.org squeeze/updates/main amd64 Packages
Ign http://security.debian.org squeeze/updates/contrib amd64 Packages
Ign http://security.debian.org squeeze/updates/non-free amd64 Packages
Err http://security.debian.org squeeze/updates/main Sources
  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]
Err http://security.debian.org squeeze/updates/contrib Sources
  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]
Err http://security.debian.org squeeze/updates/non-free Sources
  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]
Err http://security.debian.org squeeze/updates/main amd64 Packages
  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]
Err http://security.debian.org squeeze/updates/contrib amd64 Packages
  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]
Err http://security.debian.org squeeze/updates/non-free amd64 Packages
  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]
25% [Connecting to ftp.de.debian.org (141.76.2.4)]^C
root@ks3309152:/# nano /etc/apt/sources.list
root@ks3309152:/# nano /etc/apt/sources.list.backup
root@ks3309152:/# nano /etc/apt/sources.list
root@ks3309152:/# apt-get update
Ign http://debian.mirrors.ovh.net squeeze Release.gpg
Ign http://debian.mirrors.ovh.net/debian/ squeeze/main Translation-en
Ign http://security.debian.org squeeze/updates Release.gpg
Ign http://debian.mirrors.ovh.net/debian/ squeeze/main Translation-en_GB
Ign http://security.debian.org/ squeeze/updates/main Translation-en
Ign http://security.debian.org/ squeeze/updates/main Translation-en_GB
Ign http://debian.mirrors.ovh.net squeeze Release
Ign http://debian.mirrors.ovh.net squeeze/main Sources
Ign http://security.debian.org squeeze/updates Release
Ign http://debian.mirrors.ovh.net squeeze/main amd64 Packages
Ign http://security.debian.org squeeze/updates/main Sources
Ign http://security.debian.org squeeze/updates/main amd64 Packages
Err http://security.debian.org squeeze/updates/main Sources
  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]
Err http://security.debian.org squeeze/updates/main amd64 Packages
  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]
Err http://debian.mirrors.ovh.net squeeze/main Sources
  404  Not Found [IP: 2001:41d0:202:100:213:32:5:7 80]
Err http://debian.mirrors.ovh.net squeeze/main amd64 Packages
  404  Not Found [IP: 2001:41d0:202:100:213:32:5:7 80]
W: Failed to fetch http://debian.mirrors.ovh.net/debian/dists/squeeze/main/source/Sources.gz  404  Not Found [IP: 2001:41d0:202:100:213:32:5:7 80]

W: Failed to fetch http://debian.mirrors.ovh.net/debian/dists/squeeze/main/binary-amd64/Packages.gz  404  Not Found [IP: 2001:41d0:202:100:213:32:5:7 80]

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/source/Sources.gz  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]

W: Failed to fetch http://security.debian.org/dists/squeeze/updates/main/binary-amd64/Packages.gz  404  Not Found [IP: 2001:a78:5:1:216:35ff:fe7f:6ceb 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.

我知道我目前有3个主要版本,从这里得到的错误,我应该怎么做才能正确升级到Debian Stretch?


您可以发布完整的错误消息吗?
dsstorefile1

@dsstorefile添加了更多信息
IMB

1
注释掉sources.list中所有无法访问的URL。
n8te

@ n8te好,似乎(2)个URL都无法访问
IMB

Answers:


1

我会直接跳到喘不过气来,但是如果您想事先运行更新以进行压缩,则可以将其更改sources.listarchive.debian.org

deb http://archive.debian.org/debian-security squeeze/updates main
deb http://archive.debian.org/debian squeeze main
deb http://archive.debian.org/debian squeeze-lts main
deb http://archive.debian.org/debian squeeze-proposed-updates main

我做到了,现在我得到: W: GPG error: http://archive.debian.org squeeze/updates Release: The following signatures were invalid: KEYEXPIRED 1520281423 W: GPG error: http://archive.debian.org squeeze Release: The following signatures were invalid: KEYEXPIRED 1520281423 KEYEXPIRED 1501892461 E: Release file expired, ignoring http://archive.debian.org/debian/dists/squeeze-lts/Release (invalid since 766d 20h 12min 50s)
IMB

您可以忽略警告。不过,我不记得收到有关squeeze-lts的消息,因此您可能要对此发表评论。
dsstorefile1

好吧,现在我尝试apt-get upgrade0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
IMB

我再次尝试..现在这就是我所得到的WARNING: The following packages cannot be authenticated! base-files tzdata
IMB

如果挤压是最新的,那么您可以转向喘息。
dsstorefile1

1

正如其他人所说,您需要去挤压->喘气->杰西->伸展。

为了解决您的软件包签名问题,我会debian-keyring先从要升级的版本中手动安装(可通过packages.debian.org下载)。(dpkg -i debian-keyring_version.deb安装)

然后按照每个发行版本的发行说明中的​​说明进行操作:


-1

我认为您可以通过这种方式进行升级。

首先将Debian Squeeze升级为Wheezy。

如何将Debian Squeeze升级为Wheezy

然后将Debian Wheezy升级到Jessie。

如何安全地将Debian Wheezy升级到Jessie

最后将Debian Jessie升级到9 Stretch。

如何安全地将Debian 8(Jessie)升级到9(Stretch)


1
抱歉,但我仅使用命令行,没有GUI
IMB

试试这个命令-> sudo apt-get dist-upgrade
Eranda Peiris '18

我知道了0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
IMB

我建议您先从挤压升级为喘息,然后再从喘息升级为杰西,最后再升级为杰西。
Eranda Peiris '18

1
是的,但是我在描述中遇到了这些错误
IMB
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.