How to install ksh on Ubuntu?


#1

I have ubuntu 18.04 tls.
One big programm asked me a ksh for installation.
apt-get install ksh (don’t work).

I went to https://build.opensuse.org/project/repository_state/shells:ksh:new:latest/xUbuntu_18.04 and downloaded ksh_20180811.0.0+git.1425.2e927b99.orig.tar and unpacked.
app-compat-travis.yml
bin
CHANGELOG.md
config_ast.h.in
CONTRIBUTING.md
coverity-travis.yml
debian
etc
features
lib
LICENSE
meson.build
meson_options.txt
packaging
README.md
scripts
src

what can I do now?!


#2

Can you install any other packages on Ubuntu? Say

apt-get install tcsh
apt-get install nginx

Install ksh on Ubuntu using wget and dpkg

If I were you I will download it from https://packages.ubuntu.com/bionic/ksh

wget http://mirrors.kernel.org/ubuntu/pool/universe/k/ksh/ksh_93u+20120801-3.1ubuntu1_amd64.deb
ls *.deb

Install ksh deb ( ksh_93u+20120801-3.1ubuntu1_amd64.deb ) it on Ubuntu:

sudo dpkg -i ksh_93u+20120801-3.1ubuntu1_amd64.deb

Test it:

lsb_release -a
ksh
ksh --version

last line said:

version         sh (AT&T Research) 93u+ 2012-08-01

#3

I don’t know why but I issued again: apt-get install ksh and it installed!
I didn’t apt-get update, but rebooted server. May be it had automatically update.