ubuntu-14.04

python - pip is not working after upgrade

懵懂的女人 提交于 2020-11-30 09:09:43
问题 I tried upgrade pip3 with this command: sudo pip3 install --upgrade pip but unfortunately it doesn't work anymore and shows this message: pip3 --version message: Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/pkg_resources/ init .py", line 651, in _build_master ws.require( requires ) File "/usr/local/lib/python3.4/dist-packages/pkg_resources/ init .py", line 952, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/lib/python3.4

Why can't I start my gunicorn server? “Connection in use”

牧云@^-^@ 提交于 2020-08-21 09:01:06
问题 Any ideas why my gunicorn server won't start? jeffy@originaldjangster:~$ sudo /home/jeffy/django_files/django_test_venv/bin/gunicorn -c /home/jeffy/django_files/django_test_venv/gunicorn_config.py django_test.wsgi Connection in use: ('127.0.0.1', 8001) Retrying in 1 second. Connection in use: ('127.0.0.1', 8001) Retrying in 1 second. Connection in use: ('127.0.0.1', 8001) Retrying in 1 second. Connection in use: ('127.0.0.1', 8001) Retrying in 1 second. Connection in use: ('127.0.0.1', 8001)

Emulator can't find 'Linux version ' string in kernel image file

十年热恋 提交于 2020-07-22 05:25:07
问题 I was building AOSP for the Nexus Player and after successful compilation I tried to run the emulator and the message I received is: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: /home/mita/Work/Nexus/out/target/product/fugu/kernel I can't find anything about this, somebody please help. The full output is: emulator:Found ANDROID_PRODUCT_OUT: /home/mita/Work/Nexus/out/target/product/fugu emulator:Found build target architecture: x86 emulator:Looking for emulator-x86

AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

自古美人都是妖i 提交于 2020-07-18 03:34:04
问题 I've got a quite busy server: PHP (Wordpress) using W3TotalCache APC, Varnish for Apache and Cloudflare to handle all traffic. Ubuntu 14.04.4 LTS Only one website with an average about 60k hits/day. I get this message every now and then, few times a day. Has nothing to do with temporarily traffic spikes, we compared times with Google Analytics. Thu Apr 28 14:14:42.938075 2016] [mpm_prefork:error] [pid 19137] AH00161: server reached MaxRequestWorkers setting, consider raising the

sudo command is not working in ubuntu 14.04

血红的双手。 提交于 2020-06-29 14:12:41
问题 In my machine sudo command is not working and it is giving following message. sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set When I tried ls -l /usr/bin/sudo it is giving -rwxr-xr-x 1 'whoami' root 155008 Aug 28 2015 /usr/bin/sudo 回答1: It looks like, at some point, someone tried to take over ownership of the sudo executable but used single quotes rather than backticks: chown 'whoami' /usr/bin/sudo # The wrong way chown `whoami` /usr/bin/sudo # The right way chown $

Can't configure locale in Docker image

前提是你 提交于 2020-06-16 07:27:24
问题 I'm trying to install a locale file in my Docker image, but for some reason it doesn't install correctly. These lines inside my Dockerfile do configure + install the locale files: # Install and configure locales RUN ["apt-get", "install", "-y", "locales"] RUN ["locale-gen", "nl_NL.UTF-8"] RUN ["dpkg-reconfigure", "locales"] RUN ["update-locale"] ENV LANG nl_NL.UTF-8 The image is created succesfully. When I run docker exec **ID** locale -a I still get the following error: locale: Cannot set LC