"sudo apt update"はパッケージをダウンロードできません。

私のサーバーでこれを実行しようとすると、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は利用可能ですが、2022年6月まではLTSでのみ利用可能です。

  • バスターは現在「安定的」である。

  • そうです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」を再インストールする方が良いです。リポジトリに存在しなくなったリリースからアップグレードするのは楽しいことではありません。

おすすめ記事