web-dev-qa-db-ja.com

APTアップグレードは、許可が拒否されたために失敗します

Sudo apt-get upgradeを実行中にこのエラーが発生します。誰でも私を助けてこのエラーを取り除くことができますか...

Err:29 http://security.ubuntu.com/ubuntu xenial-security/restricted AMD64 DEP-11 Metadata
  Could not open file /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_xenial-security_restricted_dep11_Components-AMD64.yml.gz - open (13: Permission denied)
Hit:42 http://security.ubuntu.com/ubuntu xenial-security/multiverse AMD64 DEP-11 Metadata
Ign:45 http://security.ubuntu.com/ubuntu xenial-security/multiverse DEP-11 64x64 Icons
Get:49 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [516 kB]
Get:50 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [220 kB]
Get:51 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe AMD64 DEP-11 Metadata [173 kB]
Ign:52 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons
Get:53 http://in.archive.ubuntu.com/ubuntu xenial-updates/multiverse AMD64 Packages [15.8 kB]
Get:54 http://in.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [15.0 kB]
Get:55 http://in.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [7,644 B]
Ign:56 http://in.archive.ubuntu.com/ubuntu xenial-updates/multiverse AMD64 DEP-11 Metadata
Ign:57 http://in.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons
Get:58 http://in.archive.ubuntu.com/ubuntu xenial-backports/main AMD64 DEP-11 Metadata [3,328 B]
Get:59 http://in.archive.ubuntu.com/ubuntu xenial-backports/universe AMD64 DEP-11 Metadata [4,584 B]
Get:30 http://in.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [611 kB]
Ign:40 http://in.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons
Ign:47 http://in.archive.ubuntu.com/ubuntu xenial-updates/restricted AMD64 DEP-11 Metadata
Ign:52 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons
Ign:56 http://in.archive.ubuntu.com/ubuntu xenial-updates/multiverse AMD64 DEP-11 Metadata
Ign:57 http://in.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons
Err:40 http://in.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons
  Could not open file /var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_dep11_icons-64x64.tar.gz - open (13: Permission denied)
Ign:47 http://in.archive.ubuntu.com/ubuntu xenial-updates/restricted AMD64 DEP-11 Metadata
Ign:52 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons
Get:56 http://in.archive.ubuntu.com/ubuntu xenial-updates/multiverse AMD64 DEP-11 Metadata [6,341 B]
Ign:57 http://in.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons
Fetched 3,600 kB in 41s (87.2 kB/s)                                            
Reading package lists... Done
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/dep11/Components-AMD64.yml  Could not open file /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_xenial-security_restricted_dep11_Components-AMD64.yml.gz - open (13: Permission denied)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/dep11/icons-64x64.tar  Could not open file /var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_xenial-updates_main_dep11_icons-64x64.tar.gz - open (13: Permission denied)
E: Some index files failed to download. They have been ignored, or old ones used instead.   

this steps:-を使用します

Sudo -i 
rm /var/lib/apt/lists/partial/*
exit
Sudo apt update   

それは私に次のエラーを与えます:-

179 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: http://security.ubuntu.com/ubuntu/dists/xenial-security/restricted/binary-AMD64/by-hash/SHA256/81b9f032b48cdd473075f9798b299617d9628050291cd0cd27c140f86fc21005: Automatically disabled Acquire::http::Pipeline-Depth due to incorrect response from server/proxy. (man 5 apt.conf)
W: http://in.archive.ubuntu.com/ubuntu/dists/xenial-updates/restricted/binary-AMD64/by-hash/SHA256/b9e26643ccf26941d9979437df6983487fcc21a2ef80ba4a59ab4447f339b321: Automatically disabled Acquire::http::Pipeline-Depth due to incorrect response from server/proxy. (man 5 apt.conf)   

その後、Sudo apt upgradeを実行しますが、次の警告が表示されます。

W: http://in.archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd_229-4ubuntu21_AMD64.deb: Automatically disabled Acquire::http::Pipeline-Depth due to incorrect response from server/proxy. (man 5 apt.conf)
1
Vineet Jain

私はついに問題を見つけました:-
1。を使用して部分パッケージを削除する

Sudo -i 
rm /var/lib/apt/lists/partial/*
exit

2.その後、パッケージを更新およびアップグレードします

Sudo apt update    
Sudo apt upgrade  

3 .pipeline broken warningは、/etc/apt/apt.confに以下の行を追加することで修正されました

Acquire::http::No-Cache true;
Acquire::http::Pipeline-Depth 0;
8
Vineet Jain