ubuntu-14.04

Can't configure locale in Docker image

点点圈 提交于 2020-06-16 07:26:02
问题 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

Cannot download Docker image from repository

天大地大妈咪最大 提交于 2020-05-10 03:59:50
问题 I am trying to create a swarm setup on my laptop. I am running swarm daemon on laptop, and running 2 Ubuntu 14.04 VM as docker node. On one of the nodes I am able to run swarm and I can connect to swarm daemon. I can list the node with docker info and spawn a container on it. But when I try to pull swarm image on another VM node, I get the following error: pensu@pensu-virtual-machine:~$ sudo docker pull swarm Pulling repository swarm FATA[0025] Get https://index.docker.io/v1/repositories

Run a command remotely on ec2

只谈情不闲聊 提交于 2020-04-10 04:04:48
问题 I have and Ubuntu 14.04 ec2 instance with my scripts uploaded there. When I want to run a script remotely using my mac's terminal I do ssh myaws "python MyFolder/myscript.py" which runs perfectly. However, I want the script to run on ec2 even after I close the terminal window on my mac or switch off my mac. Once I figure that out I will move onto using cron to schedule my scripts to run on ec2 without me ever ssh-ing in. Is it possible and if it is how would I go about it? Let me now if you

Can't install PHP 7 on Ubuntu 14.04 64-bit

依然范特西╮ 提交于 2020-03-24 00:41:31
问题 I'm trying to install PHP 7 using the ff. command: sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php But when I try to run apt-cache search php7 nothing displays and also when I try to install sudo apt-get install php7.0 it says Couldn't find any package by regex 'php7.0' . Any idea why? I've already spent several days figuring this out. I hope someone can help me. Thanks in advance! 回答1: Ubuntu 14.04 has reached End of Standard Support on March 7, 2019. According to https://wiki

gperftools - profile file not dumped

橙三吉。 提交于 2020-02-28 07:53:58
问题 I've configured and built gpreftools. however, I can't seem to find the generated profile file of my program to display it. I took the following actions: Adding the -lprofiler linker flag to my .pro , building the program and the flag is added correctly at the linking stage. QMAKE_LFLAGS += -lprofiler Running with: $ CPUPROFILE=/tmp/prof.out /path/to/executable Executing: $ pprof --gv /path/to/MyExe /tmp/prof.out Then I get the following: Failed to get profile: curl -s --max-time 90 'http://

gperftools - profile file not dumped

梦想与她 提交于 2020-02-28 07:52:48
问题 I've configured and built gpreftools. however, I can't seem to find the generated profile file of my program to display it. I took the following actions: Adding the -lprofiler linker flag to my .pro , building the program and the flag is added correctly at the linking stage. QMAKE_LFLAGS += -lprofiler Running with: $ CPUPROFILE=/tmp/prof.out /path/to/executable Executing: $ pprof --gv /path/to/MyExe /tmp/prof.out Then I get the following: Failed to get profile: curl -s --max-time 90 'http://

gperftools - profile file not dumped

我怕爱的太早我们不能终老 提交于 2020-02-28 07:52:08
问题 I've configured and built gpreftools. however, I can't seem to find the generated profile file of my program to display it. I took the following actions: Adding the -lprofiler linker flag to my .pro , building the program and the flag is added correctly at the linking stage. QMAKE_LFLAGS += -lprofiler Running with: $ CPUPROFILE=/tmp/prof.out /path/to/executable Executing: $ pprof --gv /path/to/MyExe /tmp/prof.out Then I get the following: Failed to get profile: curl -s --max-time 90 'http://

Node.js Leaflet error

非 Y 不嫁゛ 提交于 2020-02-25 13:35:48
问题 Please help!! I know I'm missing something very simple but I'm new to all this and I read lots of different post and tutorial and can't get whats wrong. I initiate a new project on Ubuntu 14.04 Navigate to the folder I want my app to be. This is the steps I take: sudo apt-get install nodejs-legacy sudo npm install express-generator -g (framework) express -e --ejs (Establece el lenguaje ejs como base) https://www.npmjs.com/package/ejs npm install To run the app DEBUG=myapp:* npm start Then

Node.js Leaflet error

折月煮酒 提交于 2020-02-25 13:35:31
问题 Please help!! I know I'm missing something very simple but I'm new to all this and I read lots of different post and tutorial and can't get whats wrong. I initiate a new project on Ubuntu 14.04 Navigate to the folder I want my app to be. This is the steps I take: sudo apt-get install nodejs-legacy sudo npm install express-generator -g (framework) express -e --ejs (Establece el lenguaje ejs como base) https://www.npmjs.com/package/ejs npm install To run the app DEBUG=myapp:* npm start Then

Python not importing correctly after upgrade to 14.04

|▌冷眼眸甩不掉的悲伤 提交于 2020-02-05 04:19:09
问题 I can't import import modules from the standard library with c extensions. This happened after I upgraded to Ubuntu 14.04 from 12.04. I've tried reinstall python, python-dev, but its not helping. I've noticed other people with similar posts, but they all use virtualenv, whereas I am not using it all. Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pickle, email, json, readline, socket, turtle