Install openssh (sshd) server in Ubuntu 18.04 LTS

Yes, new major system upgrade new rules. If you’ve installed openssh server till Ubuntu 18 (Bionic Beaver) with just the simple command:

myuser@srv:~$ sudo apt-get install -y openssh-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package openssh-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'openssh-server' has no installation candidate
myuser@srv:~$

Now it is impossible as you can see. It is strange why they just did not include it as an alias just to prevent you from searching the Net (google?).

So there is a new way of installing OpenSSH server – it is a software collection called “OpenSSH server” and there is a new tool to manage such collections:

tasksel

So you must use tasksel to install OpenSSH server, here is the three command you should use:

sudo apt update
sudo apt install tasksel
sudo tasksel install openssh-server

And their explanation below in steps:

STEP 1) Update your server!

Because you could miss tasksel, it is not installed by default and even after clean install it seems not available before you do an update:

myuser@srv:~$ sudo apt update

STEP 2) Install tasksel

myuser@srv:~$ sudo apt install tasksel

STEP 3) Install OpenSSH server with tasksel

You are going to enter an console based graphic setup showing you the installation of the software collection “OpenSSH server”

myuser@srv:~$ sudo tasksel install openssh-server

Here is what is going to see after the above command:

main menu
tasksel installs openssh-sftp-server

main menu
tasksel installs openssh-server

* Throubleshooting – no tasksel packet!

Just DO NOT skip STEP 1) – update your package lists!!!

myuser@srv:~$ sudo apt install tasksel
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package tasksel

* All of the output

Install Ubuntu Desktop 18.04 LTS on a PC with existing windows 10 and linux

This tutorial will show you the simple steps of installing a modern Linux Distribution – Ubuntu Desktop 18.04 LTS. Here we present the more advanced setup installation, when you have already had installed operating systems, so this installation will add Ubuntu 18.04 LTS to our two existing ones – Microsoft Windows 10 Professional and Fedora Workstation 28. So we have 3 hard disks – one is NVME, the other two are SSDs and we want to install our Ubuntu 18.04 to the first disk – “sda” in this case. Our first SSD has two partitions, which we will remove and make new disk layout for the Ubuntu installation with three partitions.
Ubuntu Desktop 18.04 LTS comes with the following software:

  • Xorg X server – 1.19.6
  • GNOME (the GUI) – 3.28.1
  • linux kernel – 4.15.0
  • linux-firmware – 1.173
  • QT – 5.9.5
  • libc – 2.27
  • gnu gcc – 7.3.0
  • coreutils – 8.28
  • python2.7 (default) – 2.7.15
  • python3 – 3.6.5
  • perl – 5.26.1
  • apt – 1.6.1
  • cups – 2.2.7

We used the following ISO for the installation process – Ubuntu 18.04 LTS (Bionic Beaver):

http://releases.ubuntu.com/18.04/ubuntu-18.04-desktop-amd64.iso

It is a LIVE image so you can try it before installing. The easiest way is just to download the image and burn it to a DVD disk and then follow the installation below:

STEP 1) Change to “Install Ubuntu” and hit enter.

To install Ubuntu from your DVD or USB you must boot from it, so change your BIOS accordingly – first boot devide should be the DVD or USB drive with Ubunto installation. If you do it successfully you would see the screenshot below.

main menu
Install Ubuntu grub option

Keep on reading!