APTが破損したKali LInux

APTが破損したKali LInux

APTアップデートコマンドを使用しようとしたとき:

# proxychains apt update 
ProxyChains-3.1 (http://proxychains.sf.net) 
0% [Connecting to 172.17.252.21 (172.17.252.21)]<--timeout:80- 
Ign:1 http://http.kali.org/kali kali-rolling InRelease 
0% [Connecting to 172.17.252.21 (172.17.252.21)]<--timeout:80- 
Err:2 http://http.kali.org/kali kali-rolling Release   
Cannot initiate the connection to 172.17.252.21:80 (172.17.252.21). - connect (111: Connection refused) 
Reading package lists... Done                   
E: The repository 'http://http.kali.org/kali kali-rolling Release' does not have a Release file. 
N: Updating from such a repository can't be done securely, and is therefore disabled by default. 
N: See apt-secure(8) manpage for repository creation and user configuration details.

理由は不明です。私はプロキシチェーンを使用してポート2222のリバースSSHリスニングポートを指します。

私のディストリビューション:

uname -a
Linux x.x.local 5.4.0-kali2-amd64 #1 SMP Debian 5.4.8-1kali1 (2020-01-06) x86_64 > GNU/Linux

ベストアンサー1

この場合の正解は、他のユーザーがapt-proxy設定をネットワークに存在しないIPアドレスに変更したことです。次のコマンドを実行します。

apt-config dump | grep -i proxy 

何も返されない場合は、削除する必要があるプロキシ構成があります。

これを行う:

vim /etc/apt/apt.conf

プロキシ設定を含む行をコメントアウトまたは削除します。

おすすめ記事