Questions tagged [ubuntu]

GENERAL UBUNTU SUPPORT IS OFF-TOPIC. Support questions may be asked at https://askubuntu.com/. Ubuntu is a free desktop and server operating system based on Debian GNU/Linux. This tag is for programming questions specific to Ubuntu.

Ubuntu is a free desktop and server operating system based on Debian GNU/Linux.

Note: Questions concerning the use and administration of Ubuntu, running third-party applications, development, or services provided by Ubuntu may be better suited for Ask Ubuntu rather than Stack Overflow.

Philosophy

The goal of the Ubuntu project is to provide a free computer environment, centered on a Linux distribution and complemented by online services. See Ubuntu's mission for full details.

Releases

The core of the Ubuntu distribution contains a -based desktop environment which is tightly integrated to the system, in particular providing a GUI for hardware management and system administration. The supported core also includes other desktop environments such as , although their integration is managed by side projects such as Kubuntu.

Ubuntu includes a small amount of non-free software such as drivers. Ubuntu offers a large amount of packages directly taken from Debian's unstable distribution, in the form of the universe repository.

There is a release of Ubuntu every six months: one in April and one in October. One in four is a long-term support (LTS) release, the latest being (Jammy Jellyfish), released in April 2022. LTS releases get 5 years of full support (with additional support available), while non-LTS releases get 9 months.

Derivatives

Side projects of Ubuntu include:

  • Kubuntu: managing the integration of KDE into Ubuntu.
  • Ubuntu Studio: for multimedia production.
  • Xubuntu: managing the integration of Xfce into Ubuntu.
  • Lubuntu: managing the integration of LXDE into Ubuntu, focusing on speed and energy efficiency.

Documentation

Common tasks

Related

60820 questions
249
votes
9 answers

How to thoroughly purge and reinstall postgresql on ubuntu?

Somehow I've managed to completely bugger the install of postgresql on Ubuntu karmic. I want to start over from scratch, but when I "purge" the package with apt-get it still leaves traces behind such that the reinstall configuration doesn't run…
John Mee
  • 50,179
  • 34
  • 152
  • 186
246
votes
25 answers

git submodule update failed with 'fatal: detected dubious ownership in repository at'

I mounted a new hdd in my linux workstation. It looks working well. I want to download some repo in the new disk. So I execute git clone XXX, and it works well. But when I cd in the folder, and execute git submodule update --init --recursive. It…
Huihua Jiang
  • 2,561
  • 2
  • 4
  • 9
244
votes
19 answers

error: command 'gcc' failed with exit status 1 while installing eventlet

I wanted to install eventlet on my system in order to have "Herd" for software deployment.. but the terminal is showing a gcc error: root@agrover-OptiPlex-780:~# easy_install -U eventlet Searching for eventlet Reading…
Anubhav Grover
  • 2,451
  • 2
  • 14
  • 6
240
votes
21 answers

Stopping Docker containers by image name - Ubuntu

On Ubuntu 14.04 (Trusty Tahr) I'm looking for a way to stop a running container and the only information I have is the image name that was used in the Docker run command. Is there a command to find all the matching running containers that match…
Collin Estes
  • 5,577
  • 7
  • 51
  • 71
238
votes
14 answers

bash : Bad Substitution

#!/bin/bash jobname="job_201312161447_0003" jobname_pre=${jobname:0:16} jobname_post=${jobname:17} This bash script gives me Bad substitution error on ubuntu. Any help will be highly appreciated.
Arindam Choudhury
  • 2,816
  • 2
  • 18
  • 22
233
votes
15 answers

Eclipse menus don't show up after upgrading to Ubuntu 13.10

After upgrading to Ubuntu 13.10, when I click on any menus in Eclipse (Help, Window, Run) they don’t show up. Only menu stubs and selection are visible. I tried installing fresh 4.3 and the same thing is happening. Is anyone else experiencing this…
positron
  • 3,643
  • 3
  • 22
  • 26
233
votes
37 answers

MySQL: How to reset or change the MySQL root password?

How do I change the MySQL root password and username in ubuntu server? Do I need to stop the mysql service before setting any changes? I have a phpmyadmin setup as well, will phpmyadmin get updated automatically?
asm234
  • 2,607
  • 4
  • 18
  • 17
229
votes
8 answers

Docker error response from daemon: "Conflict ... already in use by container"

I've been using Docker on my PC to run Quantum GIS with the following instructions I've found here: docker-qgis-desktop - A simple docker container that runs QGIS desktop Everything has been running fine until last week when I started to get this…
marty_c
  • 5,779
  • 5
  • 24
  • 27
227
votes
10 answers

Installing Java 7 on Ubuntu

Note: This question was asked before Oracle made the OpenJDK the free version of the Oracle JDK, and the historic answers reflect that. As of 2022 you should not use Java 7 unless you must for projects which cannot run on OpenJDK 8. To install…
foralobo
  • 3,947
  • 5
  • 18
  • 17
225
votes
10 answers

How can I enable cURL for an installed Ubuntu LAMP stack?

I have installed the Ubuntu LAMP stack. But cURL is not enabled, and neither can I can find the extension listed in the INI file. I added it manually, but it didn't work either. How should I enable cURL then?
Arshdeep
  • 4,281
  • 7
  • 31
  • 46
224
votes
14 answers

How do I create a crontab through a script

I need to add a cron job thru a script I run to set up a server. I am currently using Ubuntu. I can use crontab -e but that will open an editor to edit the current crontab. I want to do this programmatically. Is it possible to do so?
stocked
  • 2,889
  • 4
  • 21
  • 18
224
votes
10 answers

Missing include "bits/c++config.h" when cross compiling 64 bit program on 32 bit in Ubuntu

I am running the 32bit version of Ubuntu 10.10 and trying to cross compile to a 64 bit target. Based on my research, I have installed the g++-multilib package. The program is a very simple hello world: #include int main( int argc, char**…
Jesse Vogt
  • 16,229
  • 16
  • 59
  • 72
221
votes
9 answers

How to kill zombie process

I launched my program in the foreground (a daemon program), and then I killed it with kill -9, but I get a zombie remaining and I m not able to kill it with kill -9. How to kill a zombie process? If the zombie is a dead process (already killed), how…
MOHAMED
  • 41,599
  • 58
  • 163
  • 268
219
votes
26 answers

How to set Java environment path in Ubuntu

I just installed JDK in Ubuntu with sudo apt-get install openjdk-6-jdk command, after the installation where's the Java bin directory located? And how can I set the environment path for that directory? I have little experience with Ubuntu, can…
Ullas Prabhakar
  • 3,546
  • 3
  • 28
  • 27
219
votes
23 answers

Docker-Compose can't connect to Docker Daemon

I am getting an error message saying I can't connect to the docker daemon. I have looked into other people's answers who have had similar issues but it hasn't helped. I am running the version of Ubuntu 15.10. I will try to provide all the info I…
daveskylark
  • 2,724
  • 4
  • 16
  • 30