2017-01-11 13 views
0

職場のいくつかのマシンでUbuntu 16.04を使用しています。エンタープライズネットワーク上の破損した.debファイル

それぞれに、特定のDebianパッケージが正しくダウンロードされていません(破損している)。

apt-getを持つ例:マニュアルの

$ sudo apt-get install traceroute 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
The following packages were automatically installed and are no longer required: 
    linux-headers-4.4.0-53 linux-headers-4.4.0-53-generic linux-image-4.4.0-53-generic 
    linux-image-extra-4.4.0-53-generic 
Use 'sudo apt autoremove' to remove them. 
The following NEW packages will be installed: 
    traceroute 
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 
Need to get 45.5 kB of archives. 
After this operation, 177 kB of additional disk space will be used. 
Get:1 http://fr.archive.ubuntu.com/ubuntu xenial/universe amd64 traceroute amd64 1:2.0.21-1 [45.5 kB] 
Err:1 http://fr.archive.ubuntu.com/ubuntu xenial/universe amd64 traceroute amd64 1:2.0.21-1 
    Hash Sum mismatch 
Fetched 44.8 kB in 0s (477 kB/s) 
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/universe/t/traceroute/traceroute_2.0.21-1_amd64.deb Hash Sum mismatch 

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

例がイ​​ンストール:

$ curl http://fr.archive.ubuntu.com/ubuntu/pool/universe/t/traceroute/traceroute_2.0.21-1_amd64.deb -o traceroute_2.0.21-1_amd64.deb 
    % Total % Received % Xferd Average Speed Time Time  Time Current 
           Dload Upload Total Spent Left Speed 
95 45488 95 43538 0  0 353k  0 --:--:-- --:--:-- --:--:-- 354k 
curl: (18) transfer closed with 1950 bytes remaining to read 
$ sudo dpkg -i traceroute_2.0.21-1_amd64.deb 
(Reading database ... 248576 files and directories currently installed.) 
Preparing to unpack traceroute_2.0.21-1_amd64.deb ... 
Unpacking traceroute (1:2.0.21-1) ... 
dpkg-deb (subprocess): cannot copy archive member from 'traceroute_2.0.21-1_amd64.deb' to decompressor pipe: unexpected end of file or stream 
dpkg-deb (subprocess): decompressing archive member: lzma error: unexpected end of input 
dpkg-deb: error: subprocess <decompress> returned error exit status 2 
dpkg: error processing archive traceroute_2.0.21-1_amd64.deb (--install): 
cannot copy extracted data for './usr/lib/libsupp.a' to '/usr/lib/libsupp.a.dpkg-new': unexpected end of file or stream 
Processing triggers for man-db (2.7.5-1) ... 
Errors were encountered while processing: 
traceroute_2.0.21-1_amd64.deb 

あなたが見ることができるように、ファイルが正しくカールと一緒にダウンロードされていません:カール:(18) transfer closed with 1950 bytes remaining to read。 wgetも問題を解決しません。

4G接続シェアを使用すると、コマンドが正常に動作することに注意してください。

ドッカーでUbuntu 16.04または16.10を試しました。同じ問題です。

私はUbuntuリポジトリ(main、uk、itなど)を変更しました。同じ問題です。

私はので、私はこの(Windowsの場合)、エンタープライズネットワークで何が起こっているか確認することができない企業のsysの管理者ではありませんよ。

何かが特定のファイルタイプを破損しています。ここでは.debです。

どの回避策を試すことができますか?

答えて

0

私は最終的に、https Ubuntuのリポジトリを使用して見つかりました。

This pageは、httpsでアクセスできるUbuntuリポジトリのリストを示しています。

私はhttps://mirror.vorboss.net/ubuntu-archive/を使用しましたが、これは完全にうまく機能しました。結論として

、私は私の企業ネットワークは、私は(体系、常に同じ)特定の.debファイルをダウンロードできるように拒否し、ファイアウォールによって「保護」されていることと思います。 このファイアウォールは、新しいダウンロードしたファイルの署名を作る「脅威」として、それを検出して、私にその最後の部分を送信することを拒否できます。

関連する問題