ubuntu-14.04

Dependency failure while installing libboost-all-dev on ubuntu core 14.04

天涯浪子 提交于 2019-12-07 03:45:07
问题 Does someone know why I get the following after "sudo apt-get install libboost-all-dev": Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libboost-all-dev : Depends: libboost-context-dev but it is not going

Unable to restart apache2 server on ubuntu 14.04

六月ゝ 毕业季﹏ 提交于 2019-12-07 02:25:59
问题 I am trying to install PHP and apache2 in my ubuntu 14.04. I installed PHP and apache2 through the following commands $sudo apt-get install php5-cli $sudo apt-get install apache2-bin Now I just want to restart apache2 server on ubuntu system. But I am getting the "failed" error while restarting apache2. I mentioned the error below AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this

ImportError: No module named sklearn.preprocessing

为君一笑 提交于 2019-12-07 01:48:56
问题 I installed scikit-learn successfully on Ubuntu following these instructions. However, I get this error when I run a program that uses it: Traceback (most recent call last): File "begueradj.py", line 10, in <module> from sklearn.preprocessing import normalize ImportError: No module named sklearn.preprocessing How do I fix this? 回答1: The instructions given in that tutorial you linked to are obsolete for Ubuntu 14.04. The Ubuntu 14.04 package is named python-sklearn (formerly python-scikits

VirtualBox - Kernel requires an x86-64 cpu but only detected an i686 cpu

烈酒焚心 提交于 2019-12-06 17:41:45
问题 Intel i5-2410M CPU running at 2.30 GHz running a Windows 7 64-bit operating system. I have VirtualBox 4.13 installed. I am trying to run ubuntu-14.04-desktop-amd64.iso but I get an error this kernel requires an x86-64 cpu but only detected an i686 cpu I even enabled the Intel Virtualization in the BIOS settings and then tried to use the image again but I still get the same error. Is there any other reason why I can't use the image? 回答1: My best guess is that you somehow configured the VM for

cannot allocate memory error

前提是你 提交于 2019-12-06 16:27:46
I just ported my app over from python so I'm a bit new to Go. It seems I am having a memory issues. getAudioOnlyInfo: fork/exec /usr/local/bin/youtube-dl: cannot allocate memory. This is run on a ubuntu machine. Via supervisor. Edit: setting the sysctl -w vm.swappiness=1 resolve the issue For anyone else who runs into this problem, it was a related recent issue in the golang issue For all those affected, temporary workaround on Linux until it is fixed properly can be one of following: enable unconditional overcommit: sysctl -w vm.overcommit_memory=1 enable unconditional overcommit: sysctl -w

Unable to openssl verify SSL certificate

醉酒当歌 提交于 2019-12-06 16:12:44
What I want to do: Get a clean connection with openssl -connect to a remote site. Site seems self signed. What I'm getting: CONNECTED(00000003) depth=0 CN = DC01.home.pri verify error:num=20:unable to get local issuer certificate verify return:1 depth=0 CN = DC01.home.pri verify error:num=27:certificate not trusted verify return:1 depth=0 CN = DC01.home.pri verify error:num=21:unable to verify the first certificate verify return:1 ... ... Verify return code: 21 (unable to verify the first certificate) What I have tried: echo -n | openssl s_client -connect DC01.home.pri:636 | sed -ne '/-BEGIN

omnibus or source - can't decide which one to use for gitllab backup/restore

喜你入骨 提交于 2019-12-06 15:45:52
I am using ubuntu server running gitlab server. I need to perform daily backup/restore of my gitlab. Which method should I prefer: omnibus or from source? How can I check weather GitLab is installed via omnibus or from source? Source or Omnibus, you will have access to the same backup procedure , which will create an archive file that contains the database, all repositories and all attachments. That means you are saving the data itself, not the all system. For the system, note the version of the omnibus package you are installing, and you will be able to re-install it in minutes. How can I

not able to clone repo via ssh (gitea)

耗尽温柔 提交于 2019-12-06 15:34:10
I've tried to deploy the 'gitea' on my virtual machine. gitea version is: $ ./gitea -v Gitea version 1.3.2 built with: bindata, sqlite os: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty gitea config: SSH_DOMAIN = <ip address> DOMAIN = <ip address> HTTP_PORT = 3000 ROOT_URL = https://<ip address>/ DISABLE_SSH = false SSH_PORT = 2222 LFS_START_SERVER = true LFS_CONTENT_PATH = /home/git/data/lfs LFS_JWT_SECRET = Sxp3S45YtJMKPzVpcQZ9OvltVkTRGzdUVd4jU95irsE OFFLINE_MODE = false PROTOCOL = https CERT_FILE = /home

How to map tomcat 7 webapp to my domain

有些话、适合烂在心里 提交于 2019-12-06 14:25:57
问题 I know this has been touched upon in several ways already, but i'm still having issues - I have a webapp in: /var/lib/tomcat7/webapps/abc.war I have a domain at say, my.domain.com I've added this to my conf/server.xml (which i believe is set correctly?) Docbase points to the war folder? <Host name="my.domain.com" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="/abc" debug="0" privileged="true" /> <Valve className="org.apache.catalina.valves.AccessLogValve"

bash: pm2: command not found

你离开我真会死。 提交于 2019-12-06 14:22:04
I can't run pm2 on ubuntu box. I'm not sure what's the problem. The pm2 is installed globally. npm list -g --depth=0 /opt/nodejs/lib ├── forever@0.15.3 ├── node-gyp@3.4.0 ├── npm@2.15.9 ├── pm2@2.1.5 ├── userdown@0.2.1 └── wait-for-mongo@0.2.0 But I still get pm2 -bash: pm2: command not found if I run other app userdown Starting Script is not provided versions node v4.5.0 npm v2.15.9 log from installation: sudo npm install pm2 -g npm WARN optional dep failed, continuing fsevents@1.0.15 /opt/nodejs/bin/pm2 -> /opt/nodejs/lib/node_modules/pm2/bin/pm2 /opt/nodejs/bin/rundev -> /opt/nodejs/lib