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
218
votes
18 answers

is it possible to `git status` only modified files?

Is it possible to have git status only show the modified files due, in my case, to having too many staged files?
chrisjlee
  • 21,691
  • 27
  • 82
  • 112
217
votes
16 answers

Adding git branch on the Bash command prompt

I tried adding the git branch I'm currently working on (checked-out) on the bash prompt without success.. (while keeping my current path which shows the active directory/file intact) I have a .bashrc file on my home, but I also saw many people…
George Katsanos
  • 13,524
  • 16
  • 62
  • 98
213
votes
8 answers

apt-get install tzdata noninteractive

When I try to apt-get install -y tzdata the command line option for picking timezone shows up. I am trying to use this in a script to do some setup, how can I make the apt-get run without user input? I know to reconfigure the tzdata I can do echo…
PYA
  • 8,096
  • 3
  • 21
  • 38
211
votes
23 answers

Install Node.js on Ubuntu

I'm trying install Node.js on Ubuntu 12.10 (Quantal Quetzal), but the terminal shows me an error about lost packages. I tried with this: sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get…
David Aguilar
  • 2,301
  • 3
  • 13
  • 16
207
votes
21 answers

No internet connection on WSL Ubuntu (Windows Subsystem for Linux)

Recently I installed WSL Ubuntu 18.04 on my Windows machine, but nothing seems to work properly, because I have no internet access. I tried a few commands and sudo apt update says 'Connection failed' and ping google.com literally takes forever as…
garzj
  • 2,427
  • 2
  • 8
  • 15
207
votes
10 answers

Bash: Syntax error: redirection unexpected

I do this in a script: read direc <<< $(basename `pwd`) and I get: Syntax error: redirection unexpected in an ubuntu machine /bin/bash --version GNU bash, version 4.0.33(1)-release (x86_64-pc-linux-gnu) while I do not get this error in another…
Open the way
  • 26,225
  • 51
  • 142
  • 196
207
votes
17 answers

Unable to install gem - Failed to build gem native extension - cannot load such file -- mkmf (LoadError)

Ruby 1.9.3 The part of Gemfile #............... gem "pony" gem "bcrypt-ruby", :require => "bcrypt" gem "nokogiri" #.................. When I'm trying to install gems, I get an error alex@ubuntu:~/$ bundle Fetching gem metadata from…
Alexandre
  • 13,030
  • 35
  • 114
  • 173
205
votes
4 answers

What is docker.io in relation to docker-ce and docker-ee (now called "Mirantis Kubernetes Engine")?

Previously, to install Docker, I would use apt-get install docker.io However, I have recently noticed the documentation for installing docker, and it uses docker-ce. I have tried to find the difference between the two, but I have come up empty.…
Will Parzybok
  • 2,764
  • 4
  • 12
  • 18
200
votes
18 answers

How to set the locale inside a Debian/Ubuntu Docker container?

I'm running a Ubuntu Docker container. I have a Norwegian keyboard and need to use Norwegian characters (øæå). My Terminal character encoding is set to UTF-8 and I'm connected to my container using SSH. However, I'm unable to type Norwegian…
mtmacdonald
  • 14,216
  • 19
  • 63
  • 99
194
votes
14 answers

Repository is not signed in docker build

I have the following Dockerfile that uses the latest Ubuntu image pulled from dockerhub: FROM ubuntu:latest RUN apt-get update && apt-get install -y g++ llvm lcov when I launch the docker build command, the following errors occur: Err:2…
Antonio La Marra
  • 5,949
  • 4
  • 15
  • 23
192
votes
13 answers

Error "gnu/stubs-32.h: No such file or directory" while compiling Nachos source code

I am trying to install Nachos on my laptop and I have Ubuntu 11.04 on the laptop. The code is in C and so to build it I assume I will need cross compiler. This is where my problem is. I downloaded the source code of the MIPS cross compiler using…
Ashish Agarwal
  • 14,555
  • 31
  • 86
  • 125
192
votes
17 answers

How can I fix "unsupported class file major version 60" in IntelliJ IDEA?

I have a Gradle project in Ubuntu. It's written in Java 14. I have the Java 14 JDK installed. When I build it from the command line, everything works, but no one wants to use a command line! When I open it in IntelliJ IDEA, it throws an error: *…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
192
votes
3 answers

sendmail: how to configure sendmail on ubuntu?

When I searched for configuring sendmail on ubuntu I din't get any clear answer, each of them assume I know what they are talking about, I just want basic configuration to enable email sending, basically I will use it with google app engine to…
UXE
  • 2,374
  • 2
  • 18
  • 17
190
votes
6 answers

Installing Latest version of git in ubuntu

My Current git version 1.7.9.5... I need to upgrade to at least git 1.7.10 to have git clone command to work properly I tried sudo add-apt-repository ppa:git-core/ppa for upgrading but resulted in this : Traceback (most recent call last): File…
Arjun Krishna P R
  • 2,001
  • 2
  • 12
  • 4
189
votes
5 answers

How to specify in crontab by what user to run script?

I have few crontab jobs that run under root, but that gives me some problems. For example all folders created in process of that cron job are under user root and group root. How can i make it to run under user www-data and group www-data so when i…
arma
  • 4,084
  • 10
  • 48
  • 63