Aniverse / inexistence

I know nothing, you see nothing.
1.51k stars 392 forks source link

Debian jessie apt源失效 #34

Closed tongyifan closed 5 years ago

tongyifan commented 5 years ago

Removal of Wheezy and Jessie (except LTS) from mirrors

由于jessie-updates和jessie-backports被移除,脚本在jessie版本的debian上已经失效(有理由认为在wheezy上也已失效)

附脚本运行结果

If you want to stop, Press Ctrl+C ; or Press ENTER to start

The selected softwares will be installed, this may take between
1 - 100 minutes depending on your systems specs and your selections

--2019-03-27 20:57:34--  https://github.com/Aniverse/inexistence/raw/master/00.Installation/template/debian.apt.sources
Resolving github.com (github.com)... 140.82.118.4, 140.82.118.3
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/Aniverse/inexistence/master/00.Installation/template/debian.apt.sources [following]
--2019-03-27 20:57:34--  https://raw.githubusercontent.com/Aniverse/inexistence/master/00.Installation/template/debian.apt.sources
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.120.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.120.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1180 (1.2K) [text/plain]
Saving to: ‘/etc/apt/sources.list’

     0K .                                                     100% 28.8M=0s

2019-03-27 20:57:34 (28.8 MB/s) - ‘/etc/apt/sources.list’ saved [1180/1180]

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.95oY0EpUqn --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg --keyring /etc/apt/trusted.gpg.d/mediaarea.gpg --keyserver keyserver.ubuntu.com --recv-keys 5C808C2B65558117
gpg: requesting key 65558117 from hkp server keyserver.ubuntu.com
gpg: key 65558117: "Christian Marillat <marillat@debian.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
Ign http://ftp.debian.org jessie-updates InRelease
Ign http://ftp.de.debian.org jessie InRelease
Ign http://ftp.de.debian.org jessie-updates InRelease
Ign http://ftp.de.debian.org jessie-backports InRelease
Ign http://ftp.debian.org jessie-updates Release.gpg
Get:1 https://mediaarea.net jessie InRelease [192 B]
Ign https://mediaarea.net jessie InRelease
Get:2 https://mkvtoolnix.download jessie InRelease [153 B]
Ign https://mkvtoolnix.download jessie InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://ftp.de.debian.org jessie Release.gpg
Ign http://ftp.de.debian.org jessie-updates Release.gpg
Ign http://ftp.debian.org jessie-updates Release
Hit https://mediaarea.net jessie Release.gpg
Hit https://mkvtoolnix.download jessie Release.gpg
Ign http://ftp.debian.org jessie-updates/main Sources/DiffIndex
Hit https://mkvtoolnix.download jessie Release
Ign http://ftp.de.debian.org jessie-backports Release.gpg
Ign http://ftp.debian.org jessie-updates/contrib Sources/DiffIndex
Ign http://ftp.debian.org jessie-updates/non-free Sources/DiffIndex
Hit https://mediaarea.net jessie Release
Hit http://ftp.de.debian.org jessie Release
Ign http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex
Ign http://ftp.debian.org jessie-updates/contrib amd64 Packages/DiffIndex
Ign http://ftp.de.debian.org jessie-updates Release
Ign http://ftp.debian.org jessie-updates/non-free amd64 Packages/DiffIndex
Ign http://ftp.de.debian.org jessie-backports Release
Ign http://ftp.de.debian.org jessie-updates/main Sources/DiffIndex
Ign http://ftp.de.debian.org jessie-updates/contrib Sources/DiffIndex
Get:3 http://security.debian.org jessie/updates/main Sources [305 kB]
Ign http://ftp.de.debian.org jessie-updates/non-free Sources/DiffIndex
Ign http://ftp.de.debian.org jessie-updates/main amd64 Packages/DiffIndex
Ign http://ftp.de.debian.org jessie-updates/contrib amd64 Packages/DiffIndex
Ign http://ftp.de.debian.org jessie-updates/non-free amd64 Packages/DiffIndex
Get:4 http://security.debian.org jessie/updates/main amd64 Packages [662 kB]
Get:5 http://security.debian.org jessie/updates/main Translation-en [334 kB]
Hit http://security.debian.org jessie/updates/contrib Sources
Hit http://security.debian.org jessie/updates/non-free Sources
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Ign http://ftp.de.debian.org jessie-backports/main Sources/DiffIndex
Ign http://ftp.de.debian.org jessie-backports/contrib Sources/DiffIndex
Ign http://ftp.de.debian.org jessie-backports/non-free Sources/DiffIndex
Ign http://ftp.de.debian.org jessie-backports/main amd64 Packages/DiffIndex
Ign http://ftp.de.debian.org jessie-backports/contrib amd64 Packages/DiffIndex
Ign http://ftp.de.debian.org jessie-backports/non-free amd64 Packages/DiffIndex
Get:6 https://mediaarea.net jessie/main Translation-en_US [214 B]
Get:7 https://mediaarea.net jessie/main Translation-en [211 B]
Get:8 https://mediaarea.net jessie/main Translation-en_US.UTF-8 [220 B]
Get:9 https://mkvtoolnix.download jessie/main Translation-en_US [153 B]
Get:10 https://mkvtoolnix.download jessie/main Translation-en [153 B]
Get:11 https://mkvtoolnix.download jessie/main Translation-en_US.UTF-8 [153 B]
Hit https://mkvtoolnix.download jessie/main Sources
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit https://mkvtoolnix.download jessie/main amd64 Packages
Get:12 https://mkvtoolnix.download jessie/main Translation-en_US [153 B]
Hit https://mediaarea.net jessie/main amd64 Packages
Get:13 https://mkvtoolnix.download jessie/main Translation-en [153 B]
Get:14 https://mkvtoolnix.download jessie/main Translation-en_US.UTF-8 [153 B]
Get:15 https://mkvtoolnix.download jessie/main Translation-en_US [153 B]
Get:16 https://mediaarea.net jessie/main Translation-en_US [214 B]
Get:17 https://mkvtoolnix.download jessie/main Translation-en [153 B]
Get:18 https://mkvtoolnix.download jessie/main Translation-en_US.UTF-8 [153 B]
Get:19 https://mkvtoolnix.download jessie/main Translation-en_US [153 B]
Get:20 https://mediaarea.net jessie/main Translation-en [211 B]
Get:21 https://mkvtoolnix.download jessie/main Translation-en [153 B]
Get:22 https://mkvtoolnix.download jessie/main Translation-en_US.UTF-8 [153 B]
Get:23 https://mkvtoolnix.download jessie/main Translation-en_US [153 B]
Get:24 https://mediaarea.net jessie/main Translation-en_US.UTF-8 [220 B]
Ign https://mkvtoolnix.download jessie/main Translation-en_US
Get:25 https://mkvtoolnix.download jessie/main Translation-en [153 B]
Ign https://mkvtoolnix.download jessie/main Translation-en
Get:26 https://mkvtoolnix.download jessie/main Translation-en_US.UTF-8 [153 B]
Ign https://mkvtoolnix.download jessie/main Translation-en_US.UTF-8
Get:27 https://mediaarea.net jessie/main Translation-en_US [214 B]
Get:28 https://mediaarea.net jessie/main Translation-en [211 B]
Get:29 https://mediaarea.net jessie/main Translation-en_US.UTF-8 [220 B]
Get:30 https://mediaarea.net jessie/main Translation-en_US [214 B]
Get:31 https://mediaarea.net jessie/main Translation-en [211 B]
Get:32 https://mediaarea.net jessie/main Translation-en_US.UTF-8 [220 B]
Ign http://ftp.debian.org jessie-updates/contrib Translation-en_US
Get:33 https://mediaarea.net jessie/main Translation-en_US [214 B]
Ign https://mediaarea.net jessie/main Translation-en_US
Ign http://ftp.debian.org jessie-updates/contrib Translation-en
Ign http://ftp.debian.org jessie-updates/contrib Translation-en_US.UTF-8
Ign http://ftp.debian.org jessie-updates/main Translation-en_US
Get:34 https://mediaarea.net jessie/main Translation-en [211 B]
Ign https://mediaarea.net jessie/main Translation-en
Ign http://ftp.debian.org jessie-updates/main Translation-en
Ign http://ftp.debian.org jessie-updates/main Translation-en_US.UTF-8
Ign http://ftp.debian.org jessie-updates/non-free Translation-en_US
Ign http://ftp.debian.org jessie-updates/non-free Translation-en
Get:35 https://mediaarea.net jessie/main Translation-en_US.UTF-8 [220 B]
Ign https://mediaarea.net jessie/main Translation-en_US.UTF-8
Ign http://ftp.debian.org jessie-updates/non-free Translation-en_US.UTF-8
Err http://ftp.debian.org jessie-updates/main Sources
  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]
Err http://ftp.debian.org jessie-updates/contrib Sources
  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]
Err http://ftp.debian.org jessie-updates/non-free Sources
  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]
Err http://ftp.debian.org jessie-updates/main amd64 Packages
  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]
Err http://ftp.debian.org jessie-updates/contrib amd64 Packages
  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]
Err http://ftp.debian.org jessie-updates/non-free amd64 Packages
  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]
Hit http://ftp.de.debian.org jessie/main Sources
Hit http://ftp.de.debian.org jessie/contrib Sources
Hit http://ftp.de.debian.org jessie/non-free Sources
Hit http://ftp.de.debian.org jessie/main amd64 Packages
Hit http://ftp.de.debian.org jessie/contrib amd64 Packages
Hit http://ftp.de.debian.org jessie/non-free amd64 Packages
Hit http://ftp.de.debian.org jessie/contrib Translation-en
Hit http://ftp.de.debian.org jessie/main Translation-en
Hit http://ftp.de.debian.org jessie/non-free Translation-en
Ign http://ftp.de.debian.org jessie-updates/contrib Translation-en_US
Ign http://ftp.de.debian.org jessie-updates/contrib Translation-en
Ign http://ftp.de.debian.org jessie-updates/contrib Translation-en_US.UTF-8
Ign http://ftp.de.debian.org jessie-updates/main Translation-en_US
Ign http://ftp.de.debian.org jessie-updates/main Translation-en
Ign http://ftp.de.debian.org jessie-updates/main Translation-en_US.UTF-8
Ign http://ftp.de.debian.org jessie-updates/non-free Translation-en_US
Ign http://ftp.de.debian.org jessie-updates/non-free Translation-en
Ign http://ftp.de.debian.org jessie-updates/non-free Translation-en_US.UTF-8
Ign http://ftp.de.debian.org jessie-backports/contrib Translation-en_US
Ign http://ftp.de.debian.org jessie-backports/contrib Translation-en
Ign http://ftp.de.debian.org jessie-backports/contrib Translation-en_US.UTF-8
Ign http://ftp.de.debian.org jessie-backports/main Translation-en_US
Ign http://ftp.de.debian.org jessie-backports/main Translation-en
Ign http://ftp.de.debian.org jessie-backports/main Translation-en_US.UTF-8
Ign http://ftp.de.debian.org jessie-backports/non-free Translation-en_US
Ign http://ftp.de.debian.org jessie-backports/non-free Translation-en
Ign http://ftp.de.debian.org jessie-backports/non-free Translation-en_US.UTF-8
Err http://ftp.de.debian.org jessie-updates/main Sources
  404  Not Found
Err http://ftp.de.debian.org jessie-updates/contrib Sources
  404  Not Found
Err http://ftp.de.debian.org jessie-updates/non-free Sources
  404  Not Found
Err http://ftp.de.debian.org jessie-updates/main amd64 Packages
  404  Not Found
Err http://ftp.de.debian.org jessie-updates/contrib amd64 Packages
  404  Not Found
Err http://ftp.de.debian.org jessie-updates/non-free amd64 Packages
  404  Not Found
Err http://ftp.de.debian.org jessie-backports/main Sources
  404  Not Found
Err http://ftp.de.debian.org jessie-backports/contrib Sources
  404  Not Found
Err http://ftp.de.debian.org jessie-backports/non-free Sources
  404  Not Found
Err http://ftp.de.debian.org jessie-backports/main amd64 Packages
  404  Not Found
Err http://ftp.de.debian.org jessie-backports/contrib amd64 Packages
  404  Not Found
Err http://ftp.de.debian.org jessie-backports/non-free amd64 Packages
  404  Not Found
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/source/Sources  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]

W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/contrib/source/Sources  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]

W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/non-free/source/Sources  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]

W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]

W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/contrib/binary-amd64/Packages  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]

W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/non-free/binary-amd64/Packages  404  Not Found [IP: 2001:67c:2564:a119::148:12 80]

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-updates/main/source/Sources  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-updates/contrib/source/Sources  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-updates/non-free/source/Sources  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-updates/contrib/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-updates/non-free/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-backports/main/source/Sources  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-backports/contrib/source/Sources  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-backports/non-free/source/Sources  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-backports/contrib/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ftp.de.debian.org/debian/dists/jessie-backports/non-free/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 128 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
aptitude is already the newest version.
atop is already the newest version.
bc is already the newest version.
build-essential is already the newest version.
checkinstall is already the newest version.
dirmngr is already the newest version.
dstat is already the newest version.
ethtool is already the newest version.
figlet is already the newest version.
gawk is already the newest version.
gcc is already the newest version.
locales is already the newest version.
iotop is already the newest version.
iperf is already the newest version.
iperf3 is already the newest version.
lolcat is already the newest version.
lrzsz is already the newest version.
lsb-release is already the newest version.
make is already the newest version.
net-tools is already the newest version.
ntpdate is already the newest version.
uuid is already the newest version.
pkg-config is already the newest version.
psmisc is already the newest version.
python is already the newest version.
ruby is already the newest version.
screen is already the newest version.
speedtest-cli is already the newest version.
sudo is already the newest version.
sysstat is already the newest version.
toilet is already the newest version.
tree is already the newest version.
unzip is already the newest version.
virt-what is already the newest version.
vnstat is already the newest version.
wondershaper is already the newest version.
zip is already the newest version.
zsh is already the newest version.
apt-transport-https is already the newest version.
ca-certificates is already the newest version.
curl is already the newest version.
libelf-dev is already the newest version.
The following package was automatically installed and is no longer required:
  libpango1.0-0
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
  git-man libjq1
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-arch git-cvs git-mediawiki git-svn strace gsmartcontrol
  smart-notifier
The following NEW packages will be installed:
  libjq1
The following packages will be upgraded:
  git git-man htop jq mtr rsync smartmontools socat
8 upgraded, 1 newly installed, 0 to remove and 120 not upgraded.
Need to get 6,891 kB of archives.
After this operation, 6,240 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  git git-man htop libjq1 jq mtr smartmontools socat
E: There are problems and -y was used without --force-yes

 ERROR  Failed to install packages, please check it and rerun once it is resolved
Aniverse commented 5 years ago

懒癌。 前阵子看到说 Debian 官方镜像要移除 jessie 的部分镜像源的时候就想到脚本可能会出些问题,但是懒得动…… 现在改了两点:

  1. 脚本会询问是否换源,默认还是选择换(之前把这个问题禁用掉了)
  2. Debian 8 如果选择换源,会用 http://snapshot.debian.org/archive/debian/20190321T212815Z/

其实计划里还有改更多的东西(和源相关的,比如说列出一些源供你选择,但是弄了一部分以后就懒得动了……)

tongyifan commented 5 years ago

辛苦了!