Debian apt-get は https を強制しますが、SSL ソースは強制しません。

Debian apt-get は https を強制しますが、SSL ソースは強制しません。

私のDebianサーバーは少し古く(2018年2月)、次のような問題があります。

# apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

私のソースはすべてhttpなので、apt-getはいくつかをhttpsソースに強制的に渡したいと思います。

# cat /etc/apt/sources.list
deb http://ftp.de.debian.org/debian/ jessie main contrib non-free
deb http://ftp.de.debian.org/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free

# cat /etc/apt/sources.list.d/*
deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /

いいですね。次にhttpsをインストールしてください。

# apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libcurl3-gnutls
The following NEW packages will be installed:
  apt-transport-https libcurl3-gnutls
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 252 kB/390 kB of archives.
After this operation, 766 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
WARNING: The following packages cannot be authenticated!
  libcurl3-gnutls
Install these packages without verification? [y/N] y
Err http://security.debian.org/ jessie/updates/main libcurl3-gnutls amd64 7.38.0-4+deb8u9
  404  Not Found [IP: 217.196.149.233 80]
E: Failed to fetch http://security.debian.org/pool/updates/main/c/curl/libcurl3-gnutls_7.38.0-4+deb8u9_amd64.deb  404  Not Found [IP: 217.196.149.233 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

最新のリポジトリなしでlibcurl3-gnutlsを現在のバージョンにインストールする方法はありますか?それではlibcurl3-gnutlsが必要ですか?または、すべてを更新するまでapt-getがSSLを使用しないように強制できますか?

これに関するアドバイスを事前に送信していただきありがとうございます。

ベストアンサー1

犯人はこんな感じです。

# cat /etc/apt/sources.list.d/*
deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /

ownCloudダウンロードサーバーは、aptあなたが見つけたように、すべての場合にTLS URLにリダイレクトされます。

を更新してインストールするには、apt-transport-httpsownCloudリポジトリを一時的に無効にする必要があります。または、他の拡張子を持つようにそのファイルの名前を変更するだけ.listです.sources

おすすめ記事