Questions tagged [ubuntu]

Please don't use this tag just because your system is running Ubuntu. Use it **only** if your question is somehow specific to Ubuntu only. Note that https://askubuntu.com is specifically dedicated to Ubuntu questions.

Ubuntu

Philosophy

The goal of the Ubuntu project is to provide a free computer environment, centered on a Linux distribution and complemented by online services.

Releases

The core of the Ubuntu distribution contains a Gnome-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 KDE, 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 four is a long-term support (LTS) release.

Derivatives

Side projects of Ubuntu include:

  • Edubuntu: for use in teaching.
  • Kubuntu: managing the integration of KDE into Ubuntu.
  • Mythbuntu: for media centers.
  • 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

  • Install a package: apt-get install package-name
  • Apply updates: apt-get update; apt-get upgrade

Further reading

12238 questions
315
votes
5 answers

How can I update to a newer version of Git using apt-get?

I've just set up a new machine with Ubuntu Oneiric 11.10 and then run apt-get update apt-get upgrade apt-get install git Now if I run git --version it tells me I have git version 1.7.5.4 but on my local machine I have the much newer git version…
cwd
  • 42,359
  • 67
  • 143
  • 166
313
votes
9 answers

Change the Python3 default version in Ubuntu

I am using Ubuntu 16.04 LTS . I have python3 installed. There are two versions installed, python 3.4.3 and python 3.6 . Whenever I use python3 command, it takes python 3.4.3 by default. I want to use python 3.6 with python3. python3 --version shows…
codeclue
  • 3,243
  • 3
  • 7
  • 6
200
votes
10 answers

How to copy-merge two directories?

I have two directories images and images2 with this structure in Linux: /images/ad /images/fe /images/foo ... and other 4000 folders and the other is like: /images2/ad /images2/fe /images2/foo ... and other 4000 folders Each of these…
ssierral
  • 2,103
  • 2
  • 12
  • 9
178
votes
6 answers

Trying to SSH to local VM Ubuntu with Putty

I have set up a VM of Ubuntu server, have installed OpenSSH, and am now trying to connect to it using Putty. Within Putty, under "Host name", I put "Ubuntu", given this is what I thought it was called when I set up the VM. However, I just get the…
wickywills
  • 2,043
  • 3
  • 13
  • 18
173
votes
17 answers

mount: wrong fs type, bad option, bad superblock

I added a new hard drive (/dev/sdb) to Ubuntu Server 16, ran parted /dev/sdb mklabel gpt and sudo parted /dev/sdb mkpart primary ext4 0G 1074GB. All went fine. Then I tried to mount the drive mkdir /mnt/storage2 mount /dev/sdb1 /mnt/storage2 It…
Eli Korvigo
  • 1,853
  • 2
  • 10
  • 7
155
votes
2 answers

Zip everything in current directory

I'd like to compress and package everything, including files and folders in current directory, into a single ZIP file on Ubuntu. What would be the most convenient command for this (and name of the tool needed to be installed if any)? Edit: What if I…
Terry Li
  • 1,785
  • 2
  • 16
  • 14
140
votes
9 answers

File permission issues with shared folders under Virtual Box (Ubuntu Guest, Windows Host)

I am using Ubuntu on Virtual Box and I have a folder which is shared between the host (Windows) and the VM (Ubuntu). When I open any file in the share folder in Ubuntu, I can not change it as its owner is set to root. How can I change the ownership…
user654019
  • 2,189
  • 4
  • 20
  • 19
123
votes
5 answers

Unable to locate package `docker-ce` on a 64bit ubuntu

I'm trying to install Docker on a Ubuntu 64 machine following the official installation guide. Sadly Ubuntu seems it is not able to locate the docker-ce package. Any idea to fix it or at least to track what is happening ? Here some details for…
danidemi
  • 1,483
  • 2
  • 11
  • 8
120
votes
7 answers

Long line wrapping in Nano

When editing an authorised_keys file in Nano, I want to wrap long lines so that I can see the end of the lines (i.e tell whose key it is). Essentially I want it to look like the output of cat authorised_keys So, I hit Esc + L which is the meta key…
codecowboy
  • 3,182
  • 7
  • 22
  • 29
117
votes
3 answers

SSH login with clear text password as a parameter?

I need to login to a user that I've created on a remote host running Ubuntu. I can't use an ssh key because the ssh login will happen from a bash script ran within a server that I won't have access to (think continuous integration server like…
mmla
  • 1,297
  • 2
  • 9
  • 7
117
votes
7 answers

How can I look up a username by id in linux?

The command id can be used to look up a user's uid, for example: $ id -u ubuntu 1000 Is there a command to lookup up a username from a uid? I realize this can be done by looking at the /etc/passwd file but I'm asking if there is an existing command…
cwd
  • 42,359
  • 67
  • 143
  • 166
108
votes
2 answers

How can I restart the SSH daemon on Ubuntu?

When I type in service sshd restart I get a sshd: unrecognized service error. I do have, in /etc/ssh/ a file sshd_config that I use to set config. I can also putty into the Ubuntu box (it is remote). When I type in /etc/init.d/sshd restart I get No…
bharal
  • 1,413
  • 3
  • 10
  • 10
103
votes
9 answers

"Input/output error" when accessing a directory

I want to list and remove the content of a directory on a removable hard drive. But I have experienced "Input/output error": $ rm pic -R rm: cannot remove `pic/60.jpg': Input/output error rm: cannot remove `pic/006.jpg': Input/output error rm:…
Tim
  • 92,534
  • 165
  • 512
  • 896
101
votes
7 answers

Creating a user without a password

I'm trying to create a user without password like this: sudo adduser \ --system \ --shell /bin/bash \ --gecos ‘User for managing of git version control’ \ --group \ --disabled-password \ --home /home/git \ git It's created…
Erik
  • 1,567
  • 3
  • 12
  • 11
99
votes
3 answers

What's the difference between /usr/lib/systemd/system and /etc/systemd/system?

Before all the unit files were in /etc/systemd/system/ but now some are showing up in /usr/lib/systemd/system (<- on CentOS, or /lib/systemd/system <- on Debian/Ubuntu), what is the difference between these folders?
Mehul
  • 1,121
  • 1
  • 9
  • 5
1
2 3
99 100