Questions tagged [ubuntu-11.04]

Ubuntu release that was released on 28 April 2011.

Ubuntu is a desktop and server operating system based on Debian GNU/Linux. Note that http://askubuntu.com is specifically dedicated to Ubuntu questions.

301 questions
402
votes
21 answers

Python locale error: unsupported locale setting

Why do I get the following error when doing this in python: >>> import locale >>> print str( locale.getlocale() ) (None, None) >>> locale.setlocale(locale.LC_ALL, 'de_DE') Traceback (most recent call last): File "", line 1, in
toom
  • 12,864
  • 27
  • 89
  • 128
265
votes
19 answers

/etc/apt/sources.list" E212: Can't open file for writing

I am trying to edit sources.list using vi editor but getting the following error while saving the file: /etc/apt/sources.list" E212: Can't open file for writing
codersofthedark
  • 9,183
  • 8
  • 45
  • 70
258
votes
13 answers

curl : (1) Protocol https not supported or disabled in libcurl

I'm trying to install the Rails environments on Ubuntu 11.04. When I launch the command rvm install 1.9.2 --with-openssl-dir=/usr/local the following error is received: curl : (1) Protocol https not supported or disabled in libcurl How can this be…
Giuseppe Di Federico
  • 3,501
  • 4
  • 20
  • 19
227
votes
10 answers

String comparison in bash. [[: not found

I am trying to compare strings in bash. I already found an answer on how to do it on stackoverflow. In script I am trying, I am using the code submitted by Adam in the mentioned question: #!/bin/bash string='My string'; if [[ "$string" == *My*…
user1581900
  • 3,680
  • 4
  • 18
  • 21
69
votes
5 answers

linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04

I tried to install OpenCV2.2 on Ubuntu 11.04. But OpenCV compilation fails stating an error related to linux/videodev.h file. File available in /user/includes/linux is named…
Niroshan
  • 2,064
  • 6
  • 35
  • 60
66
votes
6 answers

supervisord stopping child processes

One of the problems, I face with supervisord is that when I have a command which in turn spawns another process, supervisord is not able to kill it. For example I have a java process which when runs normally is like $ zkServer.sh start-foreground …
FUD
  • 5,114
  • 7
  • 39
  • 61
66
votes
1 answer

How to run a script at the start up of Ubuntu?

I want to run some Java programs in the background when the system boots in Ubuntu. I have tried to add a script in /etc/init.d directory but failed to start a program. i.e programs are not started. What should I do for that?
Anand Soni
  • 5,070
  • 11
  • 50
  • 101
54
votes
12 answers

Hadoop: «ERROR : JAVA_HOME is not set»

I'm trying to install Hadoop on Ubuntu 11.10. I set the JAVA_HOME variable in the file conf/hadoop-env.sh to: # export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk and then I execute these commands (Standalone Operation): $ mkdir input $ cp…
koukou
  • 613
  • 1
  • 7
  • 13
51
votes
8 answers

Where is Ubuntu storing installed programs?

I am using Ubuntu and when I click on a program to download Firefox asks me "What should firefox do with this file?" And in the "Open with" I would like to find a program "Package installer". The problem is - I don't know where to look for. Where is…
Dantes
  • 2,791
  • 6
  • 26
  • 34
36
votes
9 answers

Permission denied (public key) during fetch from GitHub with Jenkins user on Ubuntu

Here is my setup: Jenkins is running on my linux machine as 'jenkins' user. I have generated a ssh key-pair as described in Linux - Setup Git, for the 'jenkins' user. When I sudo su jenkins and try ssh -vT git@github.com, I am always asked my…
pimajor
  • 461
  • 1
  • 4
  • 4
33
votes
13 answers

Can't stop WEBrick 1.3.1 with ctrl-c on Ubuntu 11.04

I'm using RVM, Ruby 1.9.2, and Rails 3.0.7 A standard kill of the process from another terminal doesn't work, either, but kill -9 does, of course. I found a similar question, CTRL+C to Webbrick server ignored, but it's unclear whether that question…
Gordon McCreight
  • 2,579
  • 1
  • 22
  • 15
27
votes
2 answers

Retrieving command line history

I use ubuntu 11.04, and the question must be common to any bash shell. Pressing the up arrow key on your terminal will retrieve the previous command you had executed at your terminal. My question is where(in which file) will all these command…
Greenhorn
  • 1,811
  • 5
  • 21
  • 39
24
votes
1 answer

Using setcap in linux

To add the cap_net_raw capability to (for eg /bin/ping), we use the following: #setcap cap_net_raw=ep /bin/ping What is the meaning of ep and why is it required here ?
Jake
  • 16,329
  • 50
  • 126
  • 202
21
votes
8 answers

does using ":platforms =>" in your gemfile work?

I have a Rails app that I'm developing on Windows and deploying to Linux. I suspect I'll just switch entirely over to Linux in the future. Anyway, on Linux I need 'execjs' and 'therubyracer' but I don't need those in Win7. So I put these lines in my…
jcollum
  • 43,623
  • 55
  • 191
  • 321
21
votes
3 answers

Enable PHP support for postgresql in Ubuntu 11.04 server

I've installed Apache2 with PHP5 support and everything works there. I've installed PostgreSQL and am able to connect to it using the terminal and execute SQL statements. PROBLEM: I can't get a working connection between my PHP scripts and the…
Adam
  • 3,668
  • 6
  • 30
  • 55
1
2 3
20 21