if yum install clamav with transparent proxy(gateway), then you must setting timeout values more than default,advoid timeout .

如果 CentOS 是指定透明代理為網關連線到網際網路,那在使用 yum 安裝套件時,有可能會遇到下面類似的問題。此時只要修改 yum 設定檔,將連線逾時的設定改為寬鬆一點、認定逾時的時間長一點,就能防止問題產生。

[root@localhost ~]# yum install clamav
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: ftp.nsysu.edu.tw
 * epel: mirror.unej.ac.id
 * extras: ftp.nsysu.edu.tw
 * updates: ftp.nsysu.edu.tw
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package clamav.x86_64 0:0.97.6-1.el6 will be installed
--> Processing Dependency: clamav-db = 0.97.6-1.el6 for package: clamav-0.97.6-1.el6.x86_64
--> Running transaction check
---> Package clamav-db.x86_64 0:0.97.6-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================
 Package                    Arch                    Version                          Repository             Size
=================================================================================================================
Installing:
 clamav                     x86_64                  0.97.6-1.el6                     epel                   10 M
Installing for dependencies:
 clamav-db                  x86_64                  0.97.6-1.el6                     epel                   35 M

Transaction Summary
=================================================================================================================
Install       2 Package(s)

Total size: 46 M
Total download size: 35 M
Installed size: 51 M
Is this ok [y/N]: y
Downloading Packages:
http://mirror.unej.ac.id/pub/fedora-epel/6/x86_64/clamav-db-0.97.6-1.el6.x86_64.rpm: [Errno 12] Timeout on http://mirror.unej.ac.id/pub/fedora-epel/6/x86_64/clamav-db-0.97.6-1.el6.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://mirror-fpt-telecom.fpt.net/fedora/epel/6/x86_64/clamav-db-0.97.6-1.el6.x86_64.rpm: [Errno 12] Timeout on http://mirror-fpt-telecom.fpt.net/fedora/epel/6/x86_64/clamav-db-0.97.6-1.el6.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.

edit /etc/yum.conf

timeout=N

# N is timeout seconds limit, default is 30s. can find this option description with [ man yum.conf] command.

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s