Linux

清除作業系統總是顯示“操作太慢。小於 1 字節/秒”

  • June 10, 2021

一直在嘗試安裝 clear os 外掛,但沒有任何效果,因為我在 .repo 文件中的每個鏡像上都面臨這個錯誤。

# yum install squid
http://mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on http://mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, **'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds'**)
Trying other mirror.
mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds'**)
Trying other mirror.
mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**')
Trying other mirror.
mirror2-houston.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-houston.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**')
Trying other mirror.
mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, 'O**peration too slow. Less than 1 bytes/sec transfered the last 30 seconds'**)
Trying other mirror.
mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**')
Trying other mirror.
mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**')
Trying other mirror.
**Error: failure: repodata/primary.sqlite.bz2 from clearos-core: [Errno 256] No more mirrors to try.**

我該如何解決這個問題。我可以通過網路訪問 repo,而且 repo 似乎沒有問題。問題可能出在哪裡。

嘗試 yum clean all 但也沒有幫助。

有沒有辦法修復它,因為我無法在其中安裝任何軟體包。

否則網路如何工作?你能手動去那些鏡子嗎?您是否從其他位置嘗試過它們(看看問題是否可能不在您這邊)?

*** 更新 ***

所以在這裡,我取了一個 URL 並將其下載到我的盒子上:

$ time wget http://mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2
--2012-10-16 13:06:52--  http://mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2
Resolving mirror3-toronto.clearsdn.com... 69.90.141.74
Connecting to mirror3-toronto.clearsdn.com|69.90.141.74|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6952331 (6.6M) [application/x-bzip2]
Saving to: “primary.sqlite.bz2”

100%[==================================================================================================================================================================================================>] 6,952,331    742K/s   in 6.6s    

2012-10-16 13:06:59 (1.00 MB/s) - “primary.sqlite.bz2” saved [6952331/6952331]


real    0m6.925s
user    0m0.011s
sys 0m0.110s
$ 

似乎鏡像的速度很好,所以它一定是你在印度的盒子有問題,它可能是很多事情:你的網路(介面錯誤),你的 ISP 的路由等。嘗試尋找鏡像離您的位置更近而不是數千英里,如果您的網路超載/緩慢,我認為無能為力。

*** 更新 2 ***

試著在你當地的盒子上做

$ ifconfig | grep errors
         RX packets:31133806 errors:0 dropped:0 overruns:0 frame:0
         TX packets:22168636 errors:0 dropped:0 overruns:0 carrier:0
         RX packets:3329073 errors:0 dropped:0 overruns:0 frame:0
         TX packets:3329073 errors:0 dropped:0 overruns:0 carrier:0
$ 

如果您沒有看到任何錯誤,請查看您的 Internet (ISP) 網路速度

引用自:https://serverfault.com/questions/439014