当尝试sudo apt update
在我的服务器上执行此操作时,出现以下错误:
<... Removed for clarity ...>
Ign https://deb.nodesource.com jessie/main Translation-en
Get:37 http://deb.freexian.com wheezy-lts-kernel/main amd64 Packages [11.8 kB]
Err http://debian.uberglobalmirror.com stretch InRelease
Get:38 http://nsolid-deb.nodesource.com jessie/main amd64 Packages [1467 B]
Get:39 http://repo.mongodb.org jessie/mongodb-org/4.0/main amd64 Packages [16.0 kB]
Ign http://deb.freexian.com wheezy-lts/contrib Translation-en
Ign http://deb.freexian.com wheezy-lts/main Translation-en
Ign http://deb.freexian.com wheezy-lts/non-free Translation-en
Ign http://deb.freexian.com wheezy-lts-kernel/main Translation-en
Err http://debian.uberglobalmirror.com stretch-updates InRelease
Ign http://repo.mongodb.org jessie/mongodb-org/4.0/main Translation-en
Ign http://nsolid-deb.nodesource.com jessie/main Translation-en
Err http://debian.uberglobalmirror.com stretch Release.gpg
Temporary failure resolving 'debian.uberglobalmirror.com'
Err http://debian.uberglobalmirror.com stretch-updates Release.gpg
Temporary failure resolving 'debian.uberglobalmirror.com'
Fetched 20.4 kB in 2s (8219 B/s)
Reading package lists... Done
W: There is no public key available for the following key IDs:
112695A0E562B32A
W: Failed to fetch http://debian.uberglobalmirror.com/debian/dists/stretch/InRelease
W: Failed to fetch http://debian.uberglobalmirror.com/debian/dists/stretch-updates/InRelease
W: Failed to fetch http://debian.froxlor.org/dists/jessie/main/source/Sources HttpError404
W: Failed to fetch http://debian.froxlor.org/dists/jessie/main/binary-amd64/Packages HttpError404
W: Failed to fetch http://debian.uberglobalmirror.com/debian/dists/stretch/Release.gpg Temporary failure resolving 'debian.uberglobalmirror.com'
W: Failed to fetch http://debian.uberglobalmirror.com/debian/dists/stretch-updates/Release.gpg Temporary failure resolving 'debian.uberglobalmirror.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Debian 版本:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.11 (jessie)
Release: 8.11
Codename: jessie
到目前为止我尝试过的:
- 进入
unset http_proxy
并unset https_proxy
在控制台中 - 更改
/etc/apt/sources.list
为以下内容:
deb http://debian.uberglobalmirror.com/debian/ stretch main
deb-src http://debian.uberglobalmirror.com/debian/ stretch main
deb http://security.debian.org/ stretch/updates main contrib
deb-src http://security.debian.org/ stretch/updates main contrib
# stretch-updates, previously known as 'volatile'
deb http://debian.uberglobalmirror.com/debian/ stretch-updates main contrib
deb-src http://debian.uberglobalmirror.com/debian/ stretch-updates main contrib
- 以下命令来自这里:
sudo cp /etc/apt/sources.list ~/
sudo wget "http://pastebin.com/raw.php?i=uzhrtg5M" -O /etc/apt/sources.list
sudo apt-get update
sudo rm /etc/apt/sources.list.d/ubuntu-extras.list
sudo apt-get update
sudo apt-get upgrade
和sudo apt-get upgrade -f
来自这里。apt-get clean
我读过很多文章,但提到的解决方案都不适合我。任何帮助,将不胜感激
答案1
这里有很多问题。
自 2020 年 6 月以来,Jessie 不再受支持,因此您需要删除对它的所有引用,因为它不会再出现在软件包存储库中
Stretch 可用,但仅限 LTS,直到 2022 年 6 月
Buster是目前的“稳定”
你得到了
Temporary failure resolving 'debian.uberglobalmirror.com'
。它是不再一个存储库服务器,所以我建议您将其替换,实际上是您的整个sources.list
集合,替换为推荐条目,如果必须的话替换buster
为,stretch
deb http://deb.debian.org/debian buster main contrib non-free deb-src http://deb.debian.org/debian buster main contrib non-free deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free deb http://deb.debian.org/debian buster-updates main contrib non-free deb-src http://deb.debian.org/debian buster-updates main contrib non-free
您可能需要安装更新的包签名密钥
您最好重新安装“buster”;尝试从存储库中不再存在的发行版本进行升级并不有趣(去过那里......)