certbot-auto 阿里云配置安装

在国内的服务器上配置任何的服务都要费一番折腾,首先,国内的服务器连接国外的更新源本身就有问题。效率低还可以忍受,但是直接连不上服务器这个就没什么办法了,只能更换更新源。在《阿里云蛋疼的pip》一文中为了能够正常的使用pip,替换了默认的服务器,修改成了http://mirrors.aliyun.com/pypi/simple/ 这个源,但是也是忧郁这个蛋疼的源出现了各种问题。

在执行

./path/to/certbot-auto renew --quiet --no-self-upgrade

的时候会提示很多错误信息,找不到各种lib。

Had a problem while installing Python packages.

pip prints the following errors: 
=====================================================
Collecting argparse==1.4.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 11))
  Downloading http://mirrors.aliyun.com/pypi/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
Collecting pycparser==2.14 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 17))
  Downloading http://mirrors.aliyun.com/pypi/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz (223kB)
Collecting cffi==1.4.2 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 21))
  Downloading http://mirrors.aliyun.com/pypi/packages/92/00/c8670a2898ab7121cdac3b59f4307977a86e08a59efd662f6c05200a2f11/cffi-1.4.2.tar.gz (365kB)
Collecting ConfigArgParse==0.10.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 38))
  Downloading http://mirrors.aliyun.com/pypi/packages/d0/b8/8f7689980caa66fc02671f5837dc761e4c7a47c6ca31b3e38b304cbc3e73/ConfigArgParse-0.10.0.tar.gz
Collecting configobj==5.0.6 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 40))
  Downloading http://mirrors.aliyun.com/pypi/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting cryptography==1.5.3 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 42))
  Downloading http://mirrors.aliyun.com/pypi/packages/6c/c5/7fc1f8384443abd2d71631ead026eb59863a58cad0149b94b89f08c8002f/cryptography-1.5.3.tar.gz (400kB)
Collecting enum34==1.1.2 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 65))
  Downloading http://mirrors.aliyun.com/pypi/packages/6f/e9/08fd439384b7e3d613e75a6c8236b8e64d90c47d23413493b38d4229a9a5/enum34-1.1.2.tar.gz (46kB)
Collecting funcsigs==0.4 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 68))
  Downloading http://mirrors.aliyun.com/pypi/packages/5e/9f/025d4c92c6a1a94313cdf0813cd76f5700f8e5434fa15165090a6446ae22/funcsigs-0.4-py2.py3-none-any.whl
Collecting idna==2.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 71))

  Downloading http://mirrors.aliyun.com/pypi/packages/7c/75/b566d769455929ee6ab308d8a1c6c5aecc4928e72b25d42dd019c99f7015/idna-2.0-py2.py3-none-any.whl (61kB)
Collecting ipaddress==1.0.16 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 74))
  Downloading http://mirrors.aliyun.com/pypi/packages/23/6a/813ac29a01e4c33c19c2bded98ac3d4266ebbf0bd2c0eb0020e1c969958d/ipaddress-1.0.16-py27-none-any.whl
Collecting linecache2==1.0.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 77))
  Downloading http://mirrors.aliyun.com/pypi/packages/c7/a3/c5da2a44c85bfbb6eebcfc1dde24933f8704441b98fdde6528f4831757a6/linecache2-1.0.0-py2.py3-none-any.whl
Collecting ordereddict==1.1 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 80))
  Downloading http://mirrors.aliyun.com/pypi/packages/53/25/ef88e8e45db141faa9598fbf7ad0062df8f50f881a36ed6a0073e1572126/ordereddict-1.1.tar.gz
Collecting parsedatetime==2.1 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 82))
  Downloading http://mirrors.aliyun.com/pypi/packages/85/1f/13fc06097e516f6259d62cea502b116451321c96e18a9d0fff9da3442e02/parsedatetime-2.1-py2-none-any.whl
Collecting pbr==1.8.1 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 85))

  Downloading http://mirrors.aliyun.com/pypi/packages/fc/37/94af8387babb09796d306b18cf94ee5c70388c875a16d8a88e471500452c/pbr-1.8.1-py2.py3-none-any.whl (89kB)
Collecting pyasn1==0.1.9 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 88))
  Downloading http://mirrors.aliyun.com/pypi/packages/69/be/e8946f7867b84b0e61a613f6fd56f63266190b1a470f945178f7cbc4d0ae/pyasn1-0.1.9-py2.py3-none-any.whl
Collecting pyOpenSSL==16.2.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 100))
  Downloading http://mirrors.aliyun.com/pypi/packages/ac/93/b4cd538d31adacd07f83013860db6b88d78755af1f3fefe68ec22d397e7b/pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
Collecting pyparsing==2.1.8 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 103))
  Downloading http://mirrors.aliyun.com/pypi/packages/85/b9/188515f35f78533b3f82966a2c3f1a71a86df8b801367ee75a77191a861d/pyparsing-2.1.8-py2.py3-none-any.whl (54kB)
Collecting pyRFC3339==1.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 112))
  Downloading http://mirrors.aliyun.com/pypi/packages/9b/0a/decfa17e7707afca17d6e9595ff5c79c1c71c74063ad95576f897ed3a9f1/pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 115))
  Downloading http://mirrors.aliyun.com/pypi/packages/41/e6/4b6740cb3e31b82252099994cea751c648b846aa7874343c31d68c2215be/python-augeas-0.5.0.tar.gz (90kB)
Collecting pytz==2015.7 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 117))
  Downloading http://mirrors.aliyun.com/pypi/packages/c0/28/973f0382c803b21734cd7e97e0590928148ee21b1cbe8f7fed8b506204fb/pytz-2015.7-py2.py3-none-any.whl (476kB)
Collecting requests==2.12.1 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 131))
  Downloading http://mirrors.aliyun.com/pypi/packages/9b/31/e9925a2b9a06f97c3450bac6107928d3533bfe64ca5615442504104321e8/requests-2.12.1-py2.py3-none-any.whl (574kB)
Collecting six==1.10.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 134))
  Downloading http://mirrors.aliyun.com/pypi/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Collecting traceback2==1.4.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 137))
  Downloading http://mirrors.aliyun.com/pypi/packages/17/0a/6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e/traceback2-1.4.0-py2.py3-none-any.whl
Collecting unittest2==1.1.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 140))
  Downloading http://mirrors.aliyun.com/pypi/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl (96kB)
Collecting zope.component==4.2.2 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 143))
  Downloading http://mirrors.aliyun.com/pypi/packages/4c/c4/3f77127c876f49af478e8ea4dc223cda17730bb273c0d1606a4114c64008/zope.component-4.2.2.tar.gz (546kB)
Collecting zope.event==4.1.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 145))
  Downloading http://mirrors.aliyun.com/pypi/packages/0e/87/75e3d62a3506953c2e56d15a150de31e5d92310e87db2c8b102dc01b0b8e/zope.event-4.1.0.tar.gz (476kB)
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 147))
  Downloading http://mirrors.aliyun.com/pypi/packages/9d/81/2509ca3c6f59080123c1a8a97125eb48414022618cec0e64eb1313727bfe/zope.interface-4.1.3.tar.gz (141kB)
Collecting mock==1.0.1 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 165))
  Downloading http://mirrors.aliyun.com/pypi/packages/15/45/30273ee91feb60dabb8fbb2da7868520525f02cf910279b3047182feed80/mock-1.0.1.zip (861kB)
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 168))
  Downloading http://mirrors.aliyun.com/pypi/packages/fd/21/0c6f33829fadec8aca0c1ebb4d6f8101c05899356a58d1b2e506cb77cf18/letsencrypt-0.7.0-py2-none-any.whl
Collecting acme==0.10.1 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 174))
  Could not find a version that satisfies the requirement acme==0.10.1 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 174)) (from versions: 0.0.0.dev20151006, 0.0.0.dev20151008, 0.0.0.dev20151017, 0.0.0.dev20151020, 0.0.0.dev20151021, 0.0.0.dev20151024, 0.0.0.dev20151030, 0.0.0.dev20151104, 0.0.0.dev20151107, 0.0.0.dev20151108, 0.0.0.dev20151114, 0.0.0.dev20151123, 0.0.0.dev20151201, 0.1.0, 0.1.1, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.10.0)
No matching distribution found for acme==0.10.1 (from -r /tmp/tmp.eLMZJv8t9Y/letsencrypt-auto-requirements.txt (line 174))
/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
You are using pip version 8.0.3, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

同样由于阿里云的服务器默认使用的apt-get的源都是阿里云的,也会提示各种乱七八糟的错误。

root@iZ28ux1z90cZ:/var/www/html/certbot# ./letsencrypt-auto renew -no-self-upgrade
Bootstrapping dependencies for Debian-based OSes...
Ign http://mirrors.aliyuncs.com trusty InRelease
Ign http://mirrors.aliyun.com trusty InRelease
Hit http://mirrors.aliyuncs.com trusty-security InRelease
Hit http://mirrors.aliyun.com trusty-security InRelease
Hit http://mirrors.aliyun.com trusty-updates InRelease
Hit http://mirrors.aliyun.com trusty-proposed InRelease
Hit http://mirrors.aliyun.com trusty-backports InRelease
Hit http://mirrors.aliyuncs.com trusty-updates InRelease
Hit http://mirrors.aliyuncs.com trusty-proposed InRelease
Hit http://mirrors.aliyuncs.com trusty-backports InRelease
Hit http://mirrors.aliyuncs.com trusty Release.gpg                      
Hit http://mirrors.aliyun.com trusty Release.gpg                        
Hit http://mirrors.aliyuncs.com trusty Release    
Hit http://mirrors.aliyun.com trusty Release      
Hit http://mirrors.aliyuncs.com trusty-security/main Sources
Hit http://mirrors.aliyuncs.com trusty-security/restricted Sources             
Hit http://mirrors.aliyun.com trusty-security/main Sources                     
Hit http://mirrors.aliyuncs.com trusty-security/universe Sources               
Hit http://mirrors.aliyun.com trusty-security/restricted Sources               
Hit http://mirrors.aliyuncs.com trusty-security/multiverse Sources             
Hit http://mirrors.aliyun.com trusty-security/universe Sources           
Hit http://mirrors.aliyuncs.com trusty-security/main amd64 Packages            
Hit http://mirrors.aliyun.com trusty-security/multiverse Sources               
Hit http://mirrors.aliyuncs.com trusty-security/restricted amd64 Packages      
Hit http://mirrors.aliyun.com trusty-security/main amd64 Packages              
Hit http://mirrors.aliyuncs.com trusty-security/universe amd64 Packages        
Hit http://mirrors.aliyun.com trusty-security/restricted amd64 Packages        
Hit http://mirrors.aliyuncs.com trusty-security/multiverse amd64 Packages
Hit http://mirrors.aliyun.com trusty-security/universe amd64 Packages  
Hit http://mirrors.aliyuncs.com trusty-security/main i386 Packages     
Hit http://mirrors.aliyun.com trusty-security/multiverse amd64 Packages        
Hit http://mirrors.aliyuncs.com trusty-security/restricted i386 Packages       
Hit http://mirrors.aliyun.com trusty-security/main i386 Packages               
Hit http://mirrors.aliyuncs.com trusty-security/universe i386 Packages         
Hit http://mirrors.aliyun.com trusty-security/restricted i386 Packages         
Hit http://mirrors.aliyun.com trusty-security/universe i386 Packages           
Hit http://mirrors.aliyuncs.com trusty-security/multiverse i386 Packages       
Hit http://mirrors.aliyuncs.com trusty-security/main Translation-en    
Hit http://mirrors.aliyuncs.com trusty-security/multiverse Translation-en
Hit http://mirrors.aliyun.com trusty-security/multiverse i386 Packages 
Hit http://mirrors.aliyuncs.com trusty-security/restricted Translation-en      
Hit http://mirrors.aliyun.com trusty-security/main Translation-en              
Hit http://mirrors.aliyuncs.com trusty-security/universe Translation-en        
Hit http://mirrors.aliyun.com trusty-security/multiverse Translation-en        
Hit http://mirrors.aliyun.com trusty-security/restricted Translation-en
Hit http://mirrors.aliyun.com trusty-security/universe Translation-en  
Hit http://mirrors.aliyun.com trusty-updates/main Sources              
Hit http://mirrors.aliyun.com trusty-updates/restricted Sources
Hit http://mirrors.aliyun.com trusty-updates/universe Sources
Hit http://mirrors.aliyun.com trusty-updates/multiverse Sources                
Hit http://mirrors.aliyuncs.com trusty-updates/main Sources                    
Hit http://mirrors.aliyun.com trusty-updates/main amd64 Packages               
Hit http://mirrors.aliyuncs.com trusty-updates/restricted Sources      
Hit http://mirrors.aliyun.com trusty-updates/restricted amd64 Packages 
Hit http://mirrors.aliyuncs.com trusty-updates/universe Sources        
Hit http://mirrors.aliyun.com trusty-updates/universe amd64 Packages   
Hit http://mirrors.aliyuncs.com trusty-updates/multiverse Sources      
Hit http://mirrors.aliyun.com trusty-updates/multiverse amd64 Packages 
Hit http://mirrors.aliyuncs.com trusty-updates/main amd64 Packages     
Hit http://mirrors.aliyun.com trusty-updates/main i386 Packages        
Hit http://mirrors.aliyuncs.com trusty-updates/restricted amd64 Packages
Hit http://mirrors.aliyun.com trusty-updates/restricted i386 Packages          
Hit http://mirrors.aliyuncs.com trusty-updates/universe amd64 Packages         
Hit http://mirrors.aliyuncs.com trusty-updates/multiverse amd64 Packages       
Hit http://mirrors.aliyun.com trusty-updates/universe i386 Packages            
Hit http://mirrors.aliyuncs.com trusty-updates/main i386 Packages              
Hit http://mirrors.aliyun.com trusty-updates/multiverse i386 Packages          
Hit http://mirrors.aliyuncs.com trusty-updates/restricted i386 Packages        
Hit http://mirrors.aliyun.com trusty-updates/main Translation-en               
Hit http://mirrors.aliyuncs.com trusty-updates/universe i386 Packages        
Hit http://mirrors.aliyuncs.com trusty-updates/multiverse i386 Packages      
Hit http://mirrors.aliyuncs.com trusty-updates/main Translation-en             
Hit http://mirrors.aliyun.com trusty-updates/multiverse Translation-en         
Hit http://mirrors.aliyun.com trusty-updates/restricted Translation-en    
Hit http://mirrors.aliyun.com trusty-updates/universe Translation-en      
Hit http://mirrors.aliyuncs.com trusty-updates/multiverse Translation-en  
Hit http://mirrors.aliyun.com trusty-proposed/main Sources
Hit http://mirrors.aliyuncs.com trusty-updates/restricted Translation-en
Hit http://mirrors.aliyun.com trusty-proposed/restricted Sources
Hit http://mirrors.aliyuncs.com trusty-updates/universe Translation-en
Hit http://mirrors.aliyun.com trusty-proposed/universe Sources          
Hit http://mirrors.aliyuncs.com trusty-proposed/main Sources             
Hit http://mirrors.aliyun.com trusty-proposed/multiverse Sources        
Hit http://mirrors.aliyuncs.com trusty-proposed/restricted Sources 
Hit http://mirrors.aliyuncs.com trusty-proposed/universe Sources   
Hit http://mirrors.aliyun.com trusty-proposed/main amd64 Packages
Hit http://mirrors.aliyuncs.com trusty-proposed/multiverse Sources 
Hit http://mirrors.aliyun.com trusty-proposed/restricted amd64 Packages
Hit http://mirrors.aliyuncs.com trusty-proposed/main amd64 Packages
Hit http://mirrors.aliyun.com trusty-proposed/universe amd64 Packages
Hit http://mirrors.aliyuncs.com trusty-proposed/restricted amd64 Packages
Hit http://mirrors.aliyun.com trusty-proposed/multiverse amd64 Packages
Hit http://mirrors.aliyuncs.com trusty-proposed/universe amd64 Packages
Hit http://mirrors.aliyun.com trusty-proposed/main i386 Packages    
Hit http://mirrors.aliyuncs.com trusty-proposed/multiverse amd64 Packages
Hit http://mirrors.aliyun.com trusty-proposed/restricted i386 Packages
Hit http://mirrors.aliyuncs.com trusty-proposed/main i386 Packages
Hit http://mirrors.aliyun.com trusty-proposed/universe i386 Packages
Hit http://mirrors.aliyuncs.com trusty-proposed/restricted i386 Packages
Hit http://mirrors.aliyun.com trusty-proposed/multiverse i386 Packages
Hit http://mirrors.aliyuncs.com trusty-proposed/universe i386 Packages
Hit http://mirrors.aliyun.com trusty-proposed/main Translation-en   
Hit http://mirrors.aliyuncs.com trusty-proposed/multiverse i386 Packages
Hit http://mirrors.aliyun.com trusty-proposed/multiverse Translation-en
Hit http://mirrors.aliyuncs.com trusty-proposed/main Translation-en 
Hit http://mirrors.aliyun.com trusty-proposed/restricted Translation-en
Hit http://mirrors.aliyuncs.com trusty-proposed/multiverse Translation-en
Hit http://mirrors.aliyuncs.com trusty-proposed/restricted Translation-en
Hit http://mirrors.aliyun.com trusty-proposed/universe Translation-en
Hit http://mirrors.aliyuncs.com trusty-proposed/universe Translation-en
Hit http://mirrors.aliyun.com trusty-backports/main Sources         
Hit http://mirrors.aliyuncs.com trusty-backports/main Sources       
Hit http://mirrors.aliyun.com trusty-backports/restricted Sources   
Hit http://mirrors.aliyuncs.com trusty-backports/restricted Sources 
Hit http://mirrors.aliyun.com trusty-backports/universe Sources     
Hit http://mirrors.aliyuncs.com trusty-backports/universe Sources
Hit http://mirrors.aliyun.com trusty-backports/multiverse Sources
Hit http://mirrors.aliyuncs.com trusty-backports/multiverse Sources 
Hit http://mirrors.aliyun.com trusty-backports/main amd64 Packages  
Hit http://mirrors.aliyuncs.com trusty-backports/main amd64 Packages
Hit http://mirrors.aliyun.com trusty-backports/restricted amd64 Packages
Hit http://mirrors.aliyuncs.com trusty-backports/restricted amd64 Packages
Hit http://mirrors.aliyun.com trusty-backports/universe amd64 Packages
Hit http://mirrors.aliyuncs.com trusty-backports/universe amd64 Packages
Hit http://mirrors.aliyun.com trusty-backports/multiverse amd64 Packages
Hit http://mirrors.aliyuncs.com trusty-backports/multiverse amd64 Packages
Hit http://mirrors.aliyun.com trusty-backports/main i386 Packages   
Get:1 http://mirrors.aliyuncs.com trusty-backports/main i386 Packages [13.3 kB]
Hit http://mirrors.aliyun.com trusty-backports/restricted i386 Packages        
Hit http://mirrors.aliyun.com trusty-backports/universe i386 Packages
Hit http://mirrors.aliyun.com trusty-backports/multiverse i386 Packages
Hit http://mirrors.aliyun.com trusty-backports/main Translation-en  
Hit http://mirrors.aliyun.com trusty-backports/multiverse Translation-en
Hit http://mirrors.aliyun.com trusty-backports/restricted Translation-en
Hit http://mirrors.aliyun.com trusty-backports/universe Translation-en
Hit http://mirrors.aliyun.com trusty/main Sources                   
Get:2 http://mirrors.aliyuncs.com trusty-backports/main Translation-en [7,493 B]
Hit http://mirrors.aliyun.com trusty/restricted Sources                      
Hit http://mirrors.aliyun.com trusty/universe Sources                     
Hit http://mirrors.aliyun.com trusty/multiverse Sources
Get:3 http://mirrors.aliyun.com trusty/main amd64 Packages [1,350 kB]
Get:4 http://mirrors.aliyun.com trusty/restricted amd64 Packages [13.0 kB]     
Get:5 http://mirrors.aliyun.com trusty/main i386 Packages [1,348 kB]           
Get:6 http://mirrors.aliyun.com trusty/restricted i386 Packages [13.4 kB]      
Hit http://mirrors.aliyun.com trusty/main Translation-en                       
Hit http://mirrors.aliyun.com trusty/multiverse Translation-en                 
Hit http://mirrors.aliyun.com trusty/restricted Translation-en                 
Get:7 http://mirrors.aliyun.com trusty/universe Translation-en [4,089 kB]      
Err http://mirrors.aliyun.com trusty/multiverse amd64 Packages                 
  Bad header line [IP: 112.124.140.210 80]
Err http://mirrors.aliyun.com trusty/multiverse i386 Packages
  Bad header line [IP: 112.124.140.210 80]
Get:8 http://mirrors.aliyuncs.com trusty/main amd64 Packages [1,350 kB]        
Get:9 http://mirrors.aliyuncs.com trusty/restricted amd64 Packages [13.0 kB]   
Hit http://mirrors.aliyuncs.com trusty/universe amd64 Packages                 
Hit http://mirrors.aliyuncs.com trusty/multiverse amd64 Packages               
Hit http://mirrors.aliyuncs.com trusty/multiverse i386 Packages                
Hit http://mirrors.aliyuncs.com trusty/main Translation-en          
Hit http://mirrors.aliyuncs.com trusty/multiverse Translation-en    
Hit http://mirrors.aliyuncs.com trusty/restricted Translation-en    
Hit http://mirrors.aliyuncs.com trusty/universe Translation-en      
Hit http://mirrors.aliyuncs.com trusty-backports/restricted i386 Packages
Get:10 http://mirrors.aliyuncs.com trusty-backports/universe i386 Packages [43.2 kB]
Hit http://mirrors.aliyuncs.com trusty-backports/multiverse i386 Packages      
Get:11 http://mirrors.aliyuncs.com trusty-backports/multiverse Translation-en [1,215 B]
Hit http://mirrors.aliyuncs.com trusty-backports/restricted Translation-en     
Get:12 http://mirrors.aliyuncs.com trusty-backports/universe Translation-en [36.8 kB]
Hit http://mirrors.aliyuncs.com trusty/main Sources                            
Get:13 http://mirrors.aliyuncs.com trusty/restricted Sources [5,433 B]
Get:14 http://mirrors.aliyuncs.com trusty/universe Sources [7,926 kB]          
Err http://mirrors.aliyun.com trusty/universe amd64 Packages                   
  404  Not Found [IP: 115.28.122.210 80]
Err http://mirrors.aliyun.com trusty/universe i386 Packages                    
  404  Not Found [IP: 115.28.122.210 80]
Ign http://mirrors.aliyun.com trusty/main Translation-en_US                    
Ign http://mirrors.aliyun.com trusty/multiverse Translation-en_US              
Ign http://mirrors.aliyun.com trusty/restricted Translation-en_US              
Ign http://mirrors.aliyun.com trusty/universe Translation-en_US                
Hit http://mirrors.aliyuncs.com trusty/multiverse Sources                      
Get:15 http://mirrors.aliyuncs.com trusty/main i386 Packages [1,348 kB]        
Get:16 http://mirrors.aliyuncs.com trusty/restricted i386 Packages [16.4 kB]   
Err http://mirrors.aliyuncs.com trusty/universe i386 Packages                  
  404  Not Found
Ign http://mirrors.aliyuncs.com trusty/main Translation-en_US                  
Ign http://mirrors.aliyuncs.com trusty/multiverse Translation-en_US            
Ign http://mirrors.aliyuncs.com trusty/restricted Translation-en_US            
Ign http://mirrors.aliyuncs.com trusty/universe Translation-en_US              
Fetched 13.5 MB in 19s (696 kB/s)                                              
W: Failed to fetch http://mirrors.aliyuncs.com/ubuntu/dists/trusty-backports/main/binary-i386/Packages  Hash Sum mismatch

W: Failed to fetch http://mirrors.aliyuncs.com/ubuntu/dists/trusty-backports/main/i18n/Translation-en  Hash Sum mismatch

W: Failed to fetch http://mirrors.aliyuncs.com/ubuntu/dists/trusty/universe/binary-i386/Packages  404  Not Found

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty/universe/binary-amd64/Packages  404  Not Found [IP: 115.28.122.210 80]

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty/multiverse/binary-amd64/Packages  Bad header line [IP: 112.124.140.210 80]

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty/universe/binary-i386/Packages  404  Not Found [IP: 115.28.122.210 80]

W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/trusty/multiverse/binary-i386/Packages  Bad header line [IP: 112.124.140.210 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
apt-get update hit problems but continuing anyway...
E: Unable to parse package file /var/lib/apt/lists/mirrors.aliyun.com_ubuntu_dists_trusty_main_i18n_Translation-en%5fUS (1)
E: The package lists or status file could not be parsed or opened.
E: No packages found
No LSB modules are available.
No LSB modules are available.
No libaugeas0 version is available that's new enough to run the
Certbot apache plugin...
Reading package lists... Error!
E: Unable to parse package file /var/lib/apt/lists/mirrors.aliyun.com_ubuntu_dists_trusty_main_i18n_Translation-en%5fUS (1)
E: The package lists or status file could not be parsed or opened.

这个问题出现的原因在于,国内有时候访问github不稳定,无法使用git下载,因而我就下载完了之后上传到服务器上去了。第一次配置证书的时候一切正常,但是后面想更新证书的时候就蛋疼了。
还是要安装各种组件,并且各种组件还没有那么容易安装。
要解决上面的问题,最简单的办法就是替换阿里云的更新源我用的163的,如果不行还可以换其他的。
源地址:

deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

现在整个世界就清净了:

root@iZ28ux1z90cZ:/var/www/html/certbot# ./certbot-auto renew --quiet --no-self-upgrade
Bootstrapping dependencies for Debian-based OSes...
Ign http://mirrors.163.com trusty InRelease
Hit http://mirrors.163.com trusty-security InRelease
Hit http://mirrors.163.com trusty-updates InRelease
Hit http://mirrors.163.com trusty-proposed InRelease
Hit http://mirrors.163.com trusty-backports InRelease
Hit http://mirrors.163.com trusty Release.gpg     
Hit http://mirrors.163.com trusty Release         
Hit http://mirrors.163.com trusty-security/main Sources
Hit http://mirrors.163.com trusty-security/restricted Sources
Hit http://mirrors.163.com trusty-security/universe Sources
Hit http://mirrors.163.com trusty-security/multiverse Sources
Hit http://mirrors.163.com trusty-security/main amd64 Packages
Hit http://mirrors.163.com trusty-security/restricted amd64 Packages
Hit http://mirrors.163.com trusty-security/universe amd64 Packages
Hit http://mirrors.163.com trusty-security/multiverse amd64 Packages
Hit http://mirrors.163.com trusty-security/main i386 Packages          
Hit http://mirrors.163.com trusty-security/restricted i386 Packages    
Hit http://mirrors.163.com trusty-security/universe i386 Packages      
Hit http://mirrors.163.com trusty-security/multiverse i386 Packages    
Hit http://mirrors.163.com trusty-security/main Translation-en         
Hit http://mirrors.163.com trusty-security/multiverse Translation-en 
Hit http://mirrors.163.com trusty-security/restricted Translation-en   
Hit http://mirrors.163.com trusty-security/universe Translation-en     
Hit http://mirrors.163.com trusty-updates/main Sources               
Hit http://mirrors.163.com trusty-updates/restricted Sources
Hit http://mirrors.163.com trusty-updates/universe Sources
Hit http://mirrors.163.com trusty-updates/multiverse Sources
Hit http://mirrors.163.com trusty-updates/main amd64 Packages
Hit http://mirrors.163.com trusty-updates/restricted amd64 Packages
Hit http://mirrors.163.com trusty-updates/universe amd64 Packages
Hit http://mirrors.163.com trusty-updates/multiverse amd64 Packages
Hit http://mirrors.163.com trusty-updates/main i386 Packages
Hit http://mirrors.163.com trusty-updates/restricted i386 Packages
Hit http://mirrors.163.com trusty-updates/universe i386 Packages
Hit http://mirrors.163.com trusty-updates/multiverse i386 Packages
Hit http://mirrors.163.com trusty-updates/main Translation-en
Hit http://mirrors.163.com trusty-updates/multiverse Translation-en
Hit http://mirrors.163.com trusty-updates/restricted Translation-en
Hit http://mirrors.163.com trusty-updates/universe Translation-en
Hit http://mirrors.163.com trusty-proposed/main Sources
Hit http://mirrors.163.com trusty-proposed/restricted Sources
Hit http://mirrors.163.com trusty-proposed/universe Sources
Hit http://mirrors.163.com trusty-proposed/multiverse Sources
Hit http://mirrors.163.com trusty-proposed/main amd64 Packages
Hit http://mirrors.163.com trusty-proposed/restricted amd64 Packages
Hit http://mirrors.163.com trusty-proposed/universe amd64 Packages
Hit http://mirrors.163.com trusty-proposed/multiverse amd64 Packages
Hit http://mirrors.163.com trusty-proposed/main i386 Packages
Hit http://mirrors.163.com trusty-proposed/restricted i386 Packages
Hit http://mirrors.163.com trusty-proposed/universe i386 Packages
Hit http://mirrors.163.com trusty-proposed/multiverse i386 Packages
Hit http://mirrors.163.com trusty-proposed/main Translation-en
Hit http://mirrors.163.com trusty-proposed/multiverse Translation-en
Hit http://mirrors.163.com trusty-proposed/restricted Translation-en
Hit http://mirrors.163.com trusty-proposed/universe Translation-en
Hit http://mirrors.163.com trusty-backports/main Sources
Hit http://mirrors.163.com trusty-backports/restricted Sources
Hit http://mirrors.163.com trusty-backports/universe Sources
Hit http://mirrors.163.com trusty-backports/multiverse Sources
Hit http://mirrors.163.com trusty-backports/main amd64 Packages
Hit http://mirrors.163.com trusty-backports/restricted amd64 Packages
Hit http://mirrors.163.com trusty-backports/universe amd64 Packages
Hit http://mirrors.163.com trusty-backports/multiverse amd64 Packages
Hit http://mirrors.163.com trusty-backports/main i386 Packages
Hit http://mirrors.163.com trusty-backports/restricted i386 Packages
Hit http://mirrors.163.com trusty-backports/universe i386 Packages
Hit http://mirrors.163.com trusty-backports/multiverse i386 Packages
Hit http://mirrors.163.com trusty-backports/main Translation-en
Hit http://mirrors.163.com trusty-backports/multiverse Translation-en
Hit http://mirrors.163.com trusty-backports/restricted Translation-en
Hit http://mirrors.163.com trusty-backports/universe Translation-en
Hit http://mirrors.163.com trusty/main Sources    
Hit http://mirrors.163.com trusty/restricted Sources
Hit http://mirrors.163.com trusty/universe Sources
Hit http://mirrors.163.com trusty/multiverse Sources
Hit http://mirrors.163.com trusty/main amd64 Packages
Hit http://mirrors.163.com trusty/restricted amd64 Packages
Hit http://mirrors.163.com trusty/universe amd64 Packages
Hit http://mirrors.163.com trusty/multiverse amd64 Packages
Hit http://mirrors.163.com trusty/main i386 Packages
Hit http://mirrors.163.com trusty/restricted i386 Packages
Hit http://mirrors.163.com trusty/universe i386 Packages
Hit http://mirrors.163.com trusty/multiverse i386 Packages
Hit http://mirrors.163.com trusty/main Translation-en
Hit http://mirrors.163.com trusty/multiverse Translation-en
Hit http://mirrors.163.com trusty/restricted Translation-en
Hit http://mirrors.163.com trusty/universe Translation-en
Ign http://mirrors.163.com trusty/main Translation-en_US
Ign http://mirrors.163.com trusty/multiverse Translation-en_US
Ign http://mirrors.163.com trusty/restricted Translation-en_US
Ign http://mirrors.163.com trusty/universe Translation-en_US
Reading package lists... Done 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version.
python is already the newest version.
python-dev is already the newest version.
ca-certificates is already the newest version.
libssl-dev is already the newest version.
openssl is already the newest version.
augeas-lenses is already the newest version.
libaugeas0 is already the newest version.
libffi-dev is already the newest version.
python-virtualenv is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 159 not upgraded.
Creating virtual environment...
Installing Python packages...
Installation succeeded.

☆版权☆

* 网站名称:obaby@mars
* 网址:https://oba.by/
* 个性:https://oba.by/
* 本文标题: 《certbot-auto 阿里云配置安装》
* 本文链接:https://lang.bi/2017/01/5946
* 短链接:https://oba.by/?p=5946
* 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。


You may also like

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注