Certbot: OSError: λͺ…λ Ή ~/.local/...ncrypt/bin/python2.7 - setuptools pkg_resources 핍 휠이 였λ₯˜ μ½”λ“œ 1κ³Ό ν•¨κ»˜ μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€.

에 λ§Œλ“  2016λ…„ 06μ›” 01일  Β·  18μ½”λ©˜νŠΈ  Β·  좜처: certbot/certbot

이 λͺ…령을 톡해 μΈμ¦μ„œλ₯Ό μ„€μΉ˜ν•˜λ €κ³  ν–ˆμŠ΅λ‹ˆλ‹€.

$sudo ./certbot-auto

κ·ΈλŸ¬λ‚˜ Ubuntu 16.04 μ„œλ²„μ—μ„œ 이 virtualenv 였λ₯˜κ°€ λ°œμƒν•  λ•Œλ§ˆλ‹€.

μ΄λŸ¬ν•œ λ¬Έμ œμ— λŒ€ν•œ μ†”λ£¨μ…˜μ„ μ‹œλ„ν–ˆμ§€λ§Œ μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€...

1559λ…„

1554

Hit:1 http://mirror.leaseweb.net/ubuntu xenial InRelease
Hit:2 http://mirror.leaseweb.net/ubuntu xenial-updates InRelease                                           
Hit:3 http://mirror.leaseweb.net/ubuntu xenial-backports InRelease                                         
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]                                                          
Ign:5 http://download.webmin.com/download/repository sarge InRelease                                                                 
Hit:6 http://download.webmin.com/download/repository sarge Release
Fetched 94.5 kB in 0s (177 kB/s)                       
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:",
    LC_ALL = (unset),
    LC_TIME = "nl_NL.UTF-8",
    LC_MONETARY = "nl_NL.UTF-8",
    LC_CTYPE = "en_US.UTF-8",
    LC_ADDRESS = "nl_NL.UTF-8",
    LC_TELEPHONE = "nl_NL.UTF-8",
    LC_NAME = "nl_NL.UTF-8",
    LC_MEASUREMENT = "nl_NL.UTF-8",
    LC_IDENTIFICATION = "nl_NL.UTF-8",
    LC_NUMERIC = "nl_NL.UTF-8",
    LC_PAPER = "nl_NL.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
augeas-lenses is already the newest version (1.4.0-0ubuntu1).
ca-certificates is already the newest version (20160104ubuntu1).
gcc is already the newest version (4:5.3.1-1ubuntu1).
libaugeas0 is already the newest version (1.4.0-0ubuntu1).
libffi-dev is already the newest version (3.2.1-4).
python is already the newest version (2.7.11-1).
python-dev is already the newest version (2.7.11-1).
dialog is already the newest version (1.3-20160209-1).
python-virtualenv is already the newest version (15.0.1+ds-3).
virtualenv is already the newest version (15.0.1+ds-3).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Creating virtual environment...
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in <module>
    main()
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 719, in main
    symlink=options.symlink)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 988, in create_environment
    download=download,
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /home/yassin/.local/...ncrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 1

certbot-auto

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

./certbot-autoλ₯Ό μ‹€ν–‰ν•˜κΈ° 전에 export LC_ALL="C" λ₯Ό μ‚¬μš©ν•΄ λ³΄μ‹­μ‹œμ˜€.

이것이 μž‘λ™ν•˜λŠ” 이유λ₯Ό λͺ¨λ₯΄κ² μ§€λ§Œ Ubuntu 16.04μ—μ„œ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

doing

λͺ¨λ“  18 λŒ“κΈ€

@erikrose 생각?

κ·Έλž˜λ„ μž‘λ™μ΄ μ•ˆλ˜λŠ”....

VM에 μ„€μΉ˜λ₯Ό μ‹œλ„ν–ˆμ§€λ§Œ μ„±κ³΅ν•˜μ§€ λͺ»ν•˜κ³  λ™μΌν•œ 였λ₯˜ λ©”μ‹œμ§€λ„ ν‘œμ‹œλ©λ‹ˆλ‹€....

λ‚˜μ™€ 같은 문제. Ubuntu 14.04μ—μ„œλŠ” μž‘λ™ν•˜μ§€λ§Œ 16.04μ—μ„œλŠ” μ‹€νŒ¨ν•©λ‹ˆλ‹€. λ‚˜λŠ” 그것이 Python 버전과 관련이 μžˆλ‹€κ³  μƒκ°ν•©λ‹ˆλ‹€. λ‚˜μ€‘ 버전은 Python 3μ—λ§Œ μ œκ³΅λ©λ‹ˆλ‹€.

./certbot-autoλ₯Ό μ‹€ν–‰ν•˜κΈ° 전에 export LC_ALL="C" λ₯Ό μ‚¬μš©ν•΄ λ³΄μ‹­μ‹œμ˜€.

이것이 μž‘λ™ν•˜λŠ” 이유λ₯Ό λͺ¨λ₯΄κ² μ§€λ§Œ Ubuntu 16.04μ—μ„œ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.

doing

@hso κ°μ‚¬ν•©λ‹ˆλ‹€.

@hso κ°μ‚¬ν•©λ‹ˆλ‹€!!!!!

@hso κ°μ‚¬ν•©λ‹ˆλ‹€!

@hso μ™€μš°... νš¨κ³Όκ°€

κ³ λ§ˆμ›Œμš”!

@hso κ°μ‚¬ν•©λ‹ˆλ‹€!

@hso κ°μ‚¬ν•©λ‹ˆλ‹€!

@hso λŠ” 기적처럼 μž‘λ™ν•©λ‹ˆλ‹€

@ho κ³ λ§ˆμ›Œ λ‚¨μž!

같은 문제, κ°μ‚¬ν•©λ‹ˆλ‹€ @hso

http://unix.stackexchange.com/questions/87745/what-does-lc-all-c-do#87748

C λ‘œμΌ€μΌμ€ κ°€μž₯ λ‹¨μˆœν•œ λ‘œμΌ€μΌμ„ μ˜λ―Έν•˜λŠ” 특수 λ‘œμΌ€μΌμž…λ‹ˆλ‹€. λ‹€λ₯Έ λ‘œμΌ€μΌμ€ 인간을 μœ„ν•œ 반면 C λ‘œμΌ€μΌμ€ 컴퓨터λ₯Ό μœ„ν•œ 것이라고 말할 μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€. C λ‘œμΌ€μΌμ—μ„œ λ¬ΈμžλŠ” 단일 λ°”μ΄νŠΈμ΄κ³  문자 집합은 ASCIIμž…λ‹ˆλ‹€(ν•„μˆ˜λŠ” μ•„λ‹ˆμ§€λ§Œ μ‹€μ œλ‘œλŠ” 우리 λŒ€λΆ€λΆ„μ΄ μ‚¬μš©ν•˜κ²Œ 될 μ‹œμŠ€ν…œμ— 있음). μ •λ ¬ μˆœμ„œλŠ” λ°”μ΄νŠΈ 값을 기반으둜 ν•©λ‹ˆλ‹€. μ–Έμ–΄λŠ” 일반적으둜 λ―Έκ΅­ μ˜μ–΄(μ‘μš© ν”„λ‘œκ·Έλž¨ λ©”μ‹œμ§€μ˜ 경우(μ›” λ˜λŠ” 일 이름 λ˜λŠ” μ‹œμŠ€ν…œ 라이브러리의 λ©”μ‹œμ§€μ™€ λ°˜λŒ€)λŠ” μ‘μš© ν”„λ‘œκ·Έλž¨ μž‘μ„±μžμ˜ μž¬λŸ‰μ— 달렀 있음)이며 톡화 κΈ°ν˜Έμ™€ 같은 것은 μ •μ˜λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

μΈμ¦μ„œλ₯Ό κ°±μ‹ ν•˜λŠ” λ™μ•ˆ λ™μΌν•œ λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€. 이것은 λ‚˜λ₯Ό μœ„ν•΄ μΌν–ˆμŠ΅λ‹ˆλ‹€.

sudo  LC_ALL="C" certbot-auto renew

κ³ λ§ˆμ›Œμš”. μ €μ—κ²Œ 정말 큰 도움이 λ˜μ—ˆμŠ΅λ‹ˆλ‹€. πŸ’― πŸ‘

λ„ˆλ¬΄λ„ˆλ¬΄λ„ˆλ¬΄λ„ˆλ¬΄λ„ˆλ¬΄ κ°μ‚¬ν•©λ‹ˆλ‹€!

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰