How do you install jython in Linux using apt-get command?
Here is a tutorial to learn how to install jython using apt-get command.
Step 1: Open terminal with su access and enter the command as shown below:
apt-get install jython -y
Step 2: After completion, the install command exits and instructs the user to restart the running instances of jython if it is running already.
Result of the Command Execution shown below:
root@hiox:~ apt-get install jython -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
x11 apps texlive common libmono data tds2.0 cil libmono c5 1.0 cil
lib32bz2 1.0 liblash2 libjna java python packagekit libxcb aux0 php fpdf
menu xdg asymptote doc jsvc menu libavahi qt3 1 libnumber compare perl
libpackagekit qt 12 feynmf libjaxp1.3 java libswscale0 libcdio10
libdb je java libmono npgsql2.0 cil krita data junit4 espeak python notify
kicad common libmono security2.0 cil kdelibs4c2a libgsf 1 common
xfonts 75dpi byobu python pyorbit rpm2cpio extra xdg menus xsltproc
libxcb atom1 libg15daemon client1 guile 1.8 libnb apisupport1 java
latex2html llvm ttf gfs bodoni classic libmono wcf3.0 cil gpsim liboro java
libmono peapi2.0 cil libavutil49 libwxbase2.8 0 debootstrap
libaiksaurus 1.2 data libappframework java libdigest sha1 perl libflite1
gputils doc kword data libxrandr dev libmono system data1.0 cil
libgmime 2.4 2 libnb javaparser java libnet ip perl libdb4.7 java
libmono simd2.0 cil libmono system2.0 cil libmono1.0 cil xfonts scalable
libexpat1 dev libcdio paranoia0 libiw dev libmono system ldap1.0 cil
libwebkit 1.0 common squashfs tools libxerces2 java libmono0 libiceutil33
gamin ltspfs libnet dns perl libxdamage dev ttf gfs olga lib32ncurses5
pkg config libgcj bc libmono getoptions1.0 cil libmono cscompmgd8.0 cil
dirmngr libmono data1.0 cil ktorrent data libkpathsea5 intel gpu tools
xbase clients preview latex style libmono sharpzip0.84 cil
libmono sqlite2.0 cil texlive lvm2 libmono ldap1.0 cil latex xft fonts
ttf gfs didot libavc1394 0 esound clients smbclient libjtidy java
libbonobo2 common libjzlib java tex4ht libprotobuf5 gnome mime data
libcfitsio3 libmono management2.0 cil zenity libicu4j java
libboost system1.40.0 libfreemarker java libservlet2.4 java
libdb4.7 java gcj desktop file utils pulseaudio clamav dnsutils
libcommons beanutils java libcairo perl gputils libfluidsynth1 dvipng
libgtk2 perl libbeagle1 libmono corlib2.0 cil libxfixes dev g++ 4.4
libboost signals1.40.0 junit lmodern dhcp3 server php5 lxde icon theme
libsdl mixer1.2 ipvsadm libmono system web mvc1.0 cil libglew1.5
libfile find rule perl ttf gfs theokritos libasm2 java tftpd hpa libproxy0
libjpeg progs libnspr4 dev default jdk doc libxcb render util0 dev llvm dev
krb5 config libmono cairo2.0 cil xserver common libtagc0
libmono relaxng1.0 cil python newt libbonobo2 0 libtdb1 libvte common
libsctp1 libgnomevfs2 common dblatex texlive pstricks ttf gfs artemisia
docbook xml libavfilter0 libgnomevfs2 extra lbreakout2 data lmms common
libnb platform devel java x11proto xinerama dev ttf sil gentium libdca0
libx86 1 screen x11proto render dev ttf gfs porson libxi dev
texlive extra utils m4 gconf2 at ed libmono i18n west2.0 cil
texlive latex base librpmio0 texlive metapost doc librpm0
texlive fonts recommended javahelp2 pulseaudio module x11 guile 1.8 libs
rpm common po debconf liblualib50 auth client config libchm1
notification daemon wireshark common libpixman 1 dev libsqlite0 groff base
libfftw3 3 libdirectfb extra libswingx java libdotconf1.0
libmono microsoft7.0 cil libmono system messaging2.0 cil libavdevice52
libnotify1 libmono system web1.0 cil libstartup notification0 libass4
libjs prototype libapache2 mod php5 clamav base libavahi glib1 subversion
openvpn blacklist linux source 2.6.32 libmono accessibility1.0 cil
libcommons logging java libmono webbrowser0.5 cil libmono posix2.0 cil jetty
g++ mono runtime libvisual 0.4 0 libfontconfig1 dev libcln6
libsensors applet plugin0 libclamav6 libcommons compress java libcanberra0
intltool debian dcraw kompozer data libnss3 dev xorg docs core
libswingworker java luatex texlive bibtex extra x11proto randr dev
libsoup gnome2.4 1 zlib bin caps texlive generic recommended libxinerama dev
libcap2 bin libmono system runtime2.0 cil mono 2.0 devel libavcodec52
gcc 4.4 libopenctl0 x11 session utils toshset libpango perl
texlive latex recommended libc6 i386 jruby1.1 texlive font utils
mono csharp shell libgssrpc4 libopagent1 libobparser21 libgamin0 lib32gcc1
libpcrecpp0 libnova 0.12 2 texlive latex recommended doc libg15render1
update manager core lilypond data libsvn1 libatk1.0 dev ruby1.8 libwnck22
libportaudio2 libsexy2 vbetool latex beamer libgtkdatabox 0.9.0 1 libcue1
libmenu cache1 libxcb event1 gputils common libmcrypt4 samba common
libiec61883 0 xinput libelf1 libforms1 texlive binaries lib32asound2
libxres1 acpid finger libmono i18n1.0 cil gettext ant php pear time
libmono oracle1.0 cil arj libnb platform11 java tipa python glade2
xmms2 plugin id3v2 libvirt0 ruby texlive latex base doc
libmono messaging2.0 cil libgp11 0 default jdk libmono rabbitmq2.0 cil
kde window manager libenca0 latex xcolor libjsch java libsvn java rtkit
libpulse browse0 launchpad integration libjetty java doc libexempi3
x11proto fixes dev koffice libs fckeditor mingw32 runtime libqt4 gui libt1 5
gcc libgdu0 libxml commons resolver1.1 java libpkcs11 helper1
libcobertura java libgnome2 common xpdf reader asymptote libjs scriptaculous
xfonts base libmono winforms1.0 cil libfli1 python xapian apt xapian index
libxen3 texlive xetex libmono db2 1.0 cil ant optional kdiff3 doc
pulseaudio esound compat binfmt support libesd0 libmikmod2 libwxgtk2.8 0
libkdecorations4 libmono system data2.0 cil openssh client
libcommons net java console terminus libresid builder0c2a libreadline5
libmono2.0 cil x11 xfs utils libsmi2ldbl krosspython
libmono system ldap2.0 cil speech dispatcher libmono bytefx0.7.6.1 cil
libmono data tds1.0 cil libgnomevfs2 0 x11proto xext dev espeak data
mono gac texlive luatex libmono sharpzip2.6 cil libcroco3
libmono getoptions2.0 cil libboost thread1.40.0 libmono data2.0 cil
libevent 1.4 2 libxext dev python cairo texlive metapost
libpulse mainloop glib0 libgme0 libmono npgsql1.0 cil libgsf 1 114
libgtop2 common librarian0 freepats libmono ldap2.0 cil
libmono messaging rabbitmq2.0 cil libmono security1.0 cil libphp phpmailer
libspeexdsp1 libiptcdata0 x11proto damage dev kbibtex lyx common
php xml htmlsax3 rsync manpages ffmpeg nbd server libmono peapi1.0 cil
libvncserver0 kstars data mono 2.0 gac libpostproc51 libkwineffects1 pax
libglib2.0 dev libwv2 4 texlive fonts recommended doc pgf zlib1g dev
libdevmapper event1.02.1 lesstif2 liblzo2 2 hddtemp libmono system1.0 cil
libdate calc perl libcairo2 dev libqt3 mt mysql xfonts 100dpi libspeechd2
esound common monodoc base lxmenu data xmms2 plugin alsa libnb java3 java
libservlet2.5 java libglib perl libwildmidi0 netpbm tex4ht common
openssl blacklist libmono sharpzip0.6 cil xinit libradius1
libmono cscompmgd7.0 cil liborc 0.4 0 gstreamer0.10 pulseaudio libraw1394 11
libespeak1 libfreetype6 dev libshout3 ttf gfs neohellenic libgsm1 libdv4
libdvdnav4 fancontrol build essential libservlet2.3 java
libmono sqlite1.0 cil libmono sharpzip2.84 cil dpkg dev librpmbuild0
lilypond libxmmsclient6 debconf utils libcarp clan perl mingw32 binutils
barcode libfs6 libdvdread4 libmpdclient2 libmono relaxng2.0 cil stk
packagekit libtext glob perl libschroedinger 1.0 0 lilypond doc
libksignalplotter4 libtotem plparser17 libavformat52 ttf gfs baskerville
libmono microsoft build2.0 cil libslf4j java libcommons daemon java
libnfsidmap2 libindi0 libdc1394 22 libmono dev libkate1 libcdaudio1
libmimic0 libgtop2 7 xmms2 core libkadm5clnt mit7 libswing layout java
libvisual 0.4 plugins libcap ng0 libapparmor1 texlive base libpciaccess0
libregexp java libgnomeui common update manager kde xz utils
libmono cecil private cil libmono corlib1.0 cil wwwconfig common psutils
libsidplay2 wireshark libqtgtl0 python gdbm libkadm5srv mit7
clamav freshclam libc ares2 libc6 dev libsigsegv0 context python wicd
libpackagekit glib2 12 libmono microsoft8.0 cil ttf gfs solomos libg15 1
liblua5.1 0 libzeroc ice33 libmono system web2.0 cil libxcomposite dev
libmono cairo1.0 cil brasero common libsoundtouch1c2 libstk0c2a
libwnck common libxcb render0 dev app install data libxrender dev
xmms2 plugin vorbis libxmmsclient glib1 libmpg123 0 sgml data libmad0
libnetpbm10 libmono accessibility2.0 cil ttf gfs gazis ant optional gcj
php5 ldap texlive doc base texlive latex extra libpq5 libtommath0
libart 2.0 2 librpcsecgss3 man db libid3tag0 libavahi compat libdnssd1
html2text libcdio cdda0 imagemagick texlive latex extra doc lib32z1
radeontool libhamcrest java liblucene2 java xmms2 plugin mad libgvfscommon0
php5 mysql libmono i18n west1.0 cil libxft dev texlive pictures liboil0.3
libmhash2 libgc1c2 libaiksaurus 1.2 0c2a openjdk 6 doc libkdb5 4 libqt3 mt
lib32stdc++6 miscfiles libmono bytefx0.7.6.2 cil x11proto composite dev
linux libc dev libcommons collections3 java patch manpages dev kdelibs data
libbeansbinding java samba common bin libcelt0 0 openvpn libdirac encoder0
libgtlcore0 libboost regex1.40.0 tap plugins liblua50 php5 cli libruby1.8
libmono system messaging1.0 cil info tex gyre lib32v4l 0 libdbus 1 dev
libc dev bin watershed libgssglue1 wicd daemon tinymce libmono posix1.0 cil
libmail sendmail perl ant gcj libbonoboui2 common libcommons digester java
perl doc texlive math extra python iniparse libdirectfb dev binutils
systemsettings libjpeg62 dev texlive pictures doc portmap libini4j java
libjson glib 1.0 0 libdbus glib 1 dev ncurses term libjetty java p7zip full
libmono i18n2.0 cil libsys hostname long perl libpam gnome keyring
texlive pstricks doc liblog4j1.2 java libnb svnclientadapter java
php5 common libmono oracle2.0 cil libjline java wicd gtk php gettext
libmono system runtime1.0 cil tex common lacheck gstreamer0.10 plugins base
javascript common python gtk2 freeglut3 python gconf libdigest hmac perl
gnome doc utils libnb ide12 java dvb apps koffice data libsysfs dev
pulseaudio utils libofa0 libxcursor dev python libxml2
libgnomecanvas2 common libgdiplus libmms0 libmono winforms2.0 cil oprofile
libbit vector perl xpdf common libllvm2.7 texinfo libasound2 plugins
libjs mootools ttf gfs didot classic libsoup2.4 1 libboost filesystem1.40.0
libstdc++6 4.4 dev mono gmcs libfaad2 mercurial common
packagekit backend apt libaudiofile0 libsmpeg0 libpng12 dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
gcj 4.4 jre gcj 4.4 jre headless gcj jre gcj jre headless libgcj10 awt
libreadline java
Suggested packages:
fastjar gcj 4.4 jdk gcj jdk jython doc libmysql java libpg java
libreadline java doc java virtual machine
The following NEW packages will be installed:
gcj 4.4 jre gcj 4.4 jre headless gcj jre gcj jre headless jython
libgcj10 awt libreadline java
0 upgraded, 7 newly installed, 0 to remove and 64 not upgraded.
Need to get 2,692kB of archives.
After this operation, 8,987kB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid updates/main gcj 4.4 jre headless 4.4.3 1ubuntu4.1 [59.3kB]
Get:2 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libgcj10 awt 4.4.3 1ubuntu4.1 [81.7kB]
Get:3 http://old releases.ubuntu.com/ubuntu/ lucid updates/main gcj 4.4 jre 4.4.3 1ubuntu4.1 [1,060B]
Get:4 http://old releases.ubuntu.com/ubuntu/ lucid/main gcj jre headless 4:4.4.3 1ubuntu1 [1,556B]
Get:5 http://old releases.ubuntu.com/ubuntu/ lucid/main gcj jre 4:4.4.3 1ubuntu1 [1,060B]
Get:6 http://old releases.ubuntu.com/ubuntu/ lucid/main libreadline java 0.8.0.1 8.2build1 [29.8kB]
Get:7 http://old releases.ubuntu.com/ubuntu/ lucid/main jython 2.2.1 2ubuntu4 [2,518kB]
Fetched 2,692kB in 2s (1,090kB/s)
Selecting previously deselected package gcj 4.4 jre headless.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 199403 files and directories currently installed.)
Unpacking gcj 4.4 jre headless (from .../gcj 4.4 jre headless_4.4.3 1ubuntu4.1_amd64.deb) ...
Selecting previously deselected package libgcj10 awt.
Unpacking libgcj10 awt (from .../libgcj10 awt_4.4.3 1ubuntu4.1_amd64.deb) ...
Selecting previously deselected package gcj 4.4 jre.
Unpacking gcj 4.4 jre (from .../gcj 4.4 jre_4.4.3 1ubuntu4.1_amd64.deb) ...
Selecting previously deselected package gcj jre headless.
Unpacking gcj jre headless (from .../gcj jre headless_4%3a4.4.3 1ubuntu1_amd64.deb) ...
Selecting previously deselected package gcj jre.
Unpacking gcj jre (from .../gcj jre_4%3a4.4.3 1ubuntu1_amd64.deb) ...
Selecting previously deselected package libreadline java.
Unpacking libreadline java (from .../libreadline java_0.8.0.1 8.2build1_amd64.deb) ...
Selecting previously deselected package jython.
Unpacking jython (from .../jython_2.2.1 2ubuntu4_all.deb) ...
Processing triggers for man db ...
Processing triggers for menu ...
Setting up gcj 4.4 jre headless (4.4.3 1ubuntu4.1) ...
Setting up libgcj10 awt (4.4.3 1ubuntu4.1) ...
Setting up gcj 4.4 jre (4.4.3 1ubuntu4.1) ...
Setting up gcj jre headless (4:4.4.3 1ubuntu1) ...
Setting up gcj jre (4:4.4.3 1ubuntu1) ...
Setting up libreadline java (0.8.0.1 8.2build1) ...
Setting up jython (2.2.1 2ubuntu4) ...
Processing triggers for menu ...
root@hiox:~