apt-get Install python3 tk

How do you install python3 tk in Linux using apt-get command?

How to Install python3 tk with apt-get?

apt-get install python3 tk -y

Install Python3 Tk  Command

Here is a tutorial to learn how to install python3 tk using apt-get command.

Step 1: Open terminal with su access and enter the command as shown below:
apt-get install python3 tk -y

Step 2: After completion, the install command exits and instructs the user to restart the running instances of python3 tk if it is running already.

Result of the Command Execution shown below:

root@hiox:~ apt-get install python3 tk -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libatk1.0 0 libpcsclite1 libjaxp1.3 java gconf2 common libgtk2.0 common
libgsf 1 common libjargs java update notifier common libzbar0 rpm2cpio
libchewing3 data libxcomposite1 ibus table cangjie fakeroot libxerces2 java
libcupsimage2 xfonts encodings libfile copy recursive perl libatk1.0 data
iso codes libmagickcore2 scim bridge client gtk language support zh hans
language support zh hant libsvga1 language support input zh hans
language support input zh hant update inetd unzip libibus1
libzend framework php ibus gtk scim modules table python newt libmagickwand2
language pack zh hant base ibus table wubi ibus chewing libx86 1 ibus pinyin
gconf2 java common librpmio0 librpm0 libmagick++2 rpm common libgomp1
icedtea 6 jre cacao python apt libnspr4 0d libsqlite0 java wrappers
default jre headless python urlgrabber libcairo2 scim znc tcl xfonts utils
libscim8c2a openjdk 6 jre lib firefox locale zh hans firefox locale zh hant
libthai data gcc 4.4 cpu checker librsvg2 common libdatrie1
openjdk 6 jre headless libavahi common data libchewing3 libxfont1
libindicator0 libgconf2 4 libffi5 libelf1 libgtkspell0 libpango1.0 common
python glade2 libpixman 1 0 python sqlitecachec python rpm libcups2 gcc
linux headers 2.6.32 74 libggi2 libdbusmenu glib1
linux headers 2.6.32 74 generic zend framework bin libgii1 python xdg
ttf arphic uming libcroco3 tzdata java python cairo libdbusmenu gtk1
libgsf 1 114 xfonts wqy libaa1 scim gtk2 immodule znc perl
language support fonts zh hans language support fonts zh hant libthai0
linux headers generic python dbus manpages libidl0 libglade2 0
libzookeeper java python sqlite im switch libzzip 0 13 python appindicator
rpm libgii1 target x librpmbuild0 x ttcidfont conf python gtkspell
scim bridge agent libgs8 pinyin database psfontmgr python gobject
ttf arphic bsmi00lp libappindicator0 ibus pinyin db open phrase
language pack zh hans base ibus libc ares2 libc6 dev liborbit2 liblua5.1 0
ghostscript librsvg2 2 libavahi client3 ibus table ttf arphic gbsn00lp
python support ca certificates java libpango1.0 0 ttf wqy zenhei
linux libc dev patch manpages dev ttf arphic ukai language pack zh hans
language pack zh hant libxcb render0 libgtk2.0 bin libggi target x
libpaper utils libc dev bin python ibus binutils znc extra
libjson glib 1.0 0 defoma libavahi common3 liblog4j1.2 java
libxcb render util0 openbsd inetd libjline java libxrandr2
indicator application libnss3 1d python gtk2 libgtk2.0 0 talkd gsfonts
python libxml2 libpaper1 libltdl7 scim modules socket
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
blt libgl1 mesa dri libgl1 mesa glx libxaw7 libxmu6 libxpm4 libxv1 python3
python3 minimal python3.1 python3.1 minimal tk8.5 x11 utils xbitmaps xterm
Suggested packages:
blt demo libglide3 python3 doc python3 profiler tix python3 tk dbg
python3.1 doc python3.1 profiler binfmt support mesa utils xfonts cyrillic
The following NEW packages will be installed:
blt libgl1 mesa dri libgl1 mesa glx libxaw7 libxmu6 libxpm4 libxv1 python3
python3 minimal python3 tk python3.1 python3.1 minimal tk8.5 x11 utils
xbitmaps xterm
0 upgraded, 16 newly installed, 0 to remove and 1 not upgraded.
Need to get 12.7MB of archives.
After this operation, 70.0MB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libgl1 mesa glx 7.7.1 1ubuntu3.1 [141kB]
Get:2 http://old releases.ubuntu.com/ubuntu/ lucid/main libxmu6 2:1.0.5 1 [57.5kB]
Get:3 http://old releases.ubuntu.com/ubuntu/ lucid/main libxpm4 1:3.5.8 1 [44.7kB]
Get:4 http://old releases.ubuntu.com/ubuntu/ lucid/main libxaw7 2:1.0.7 1 [212kB]
Get:5 http://old releases.ubuntu.com/ubuntu/ lucid/main libxv1 2:1.0.5 1 [18.1kB]
Get:6 http://old releases.ubuntu.com/ubuntu/ lucid/main x11 utils 7.5+3 [228kB]
Get:7 http://old releases.ubuntu.com/ubuntu/ lucid/main tk8.5 8.5.8 1 [1168kB]
Get:8 http://old releases.ubuntu.com/ubuntu/ lucid/main blt 2.4z 4.2 [1714kB]
Get:9 http://old releases.ubuntu.com/ubuntu/ lucid updates/main python3.1 minimal 3.1.2 0ubuntu3.2 [1563kB]
Get:10 http://old releases.ubuntu.com/ubuntu/ lucid updates/main python3.1 3.1.2 0ubuntu3.2 [3772kB]
Get:11 http://old releases.ubuntu.com/ubuntu/ lucid/main python3 minimal 3.1.2 0ubuntu1 [10.1kB]
Get:12 http://old releases.ubuntu.com/ubuntu/ lucid/main python3 3.1.2 0ubuntu1 [11.1kB]
Get:13 http://old releases.ubuntu.com/ubuntu/ lucid/universe python3 tk 3.1.1 1 [28.5kB]
Get:14 http://old releases.ubuntu.com/ubuntu/ lucid/main xbitmaps 1.1.0 1 [29.5kB]
Get:15 http://old releases.ubuntu.com/ubuntu/ lucid/main xterm 256 1ubuntu1 [536kB]
Get:16 http://old releases.ubuntu.com/ubuntu/ lucid updates/main libgl1 mesa dri 7.7.1 1ubuntu3.1 [3140kB]
Fetched 12.7MB in 7s (1608kB/s)
Selecting previously deselected package libgl1 mesa glx.
(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 ... 62590 files and directories currently installed.)
Unpacking libgl1 mesa glx (from .../libgl1 mesa glx_7.7.1 1ubuntu3.1_amd64.deb) ...
Selecting previously deselected package libxmu6.
Unpacking libxmu6 (from .../libxmu6_2%3a1.0.5 1_amd64.deb) ...
Selecting previously deselected package libxpm4.
Unpacking libxpm4 (from .../libxpm4_1%3a3.5.8 1_amd64.deb) ...
Selecting previously deselected package libxaw7.
Unpacking libxaw7 (from .../libxaw7_2%3a1.0.7 1_amd64.deb) ...
Selecting previously deselected package libxv1.
Unpacking libxv1 (from .../libxv1_2%3a1.0.5 1_amd64.deb) ...
Selecting previously deselected package x11 utils.
Unpacking x11 utils (from .../x11 utils_7.5+3_amd64.deb) ...
Selecting previously deselected package tk8.5.
Unpacking tk8.5 (from .../tk8.5_8.5.8 1_amd64.deb) ...
Selecting previously deselected package blt.
Unpacking blt (from .../blt_2.4z 4.2_amd64.deb) ...
Selecting previously deselected package python3.1 minimal.
Unpacking python3.1 minimal (from .../python3.1 minimal_3.1.2 0ubuntu3.2_amd64.deb) ...
Selecting previously deselected package python3.1.
Unpacking python3.1 (from .../python3.1_3.1.2 0ubuntu3.2_amd64.deb) ...
Selecting previously deselected package python3 minimal.
Unpacking python3 minimal (from .../python3 minimal_3.1.2 0ubuntu1_all.deb) ...
Selecting previously deselected package python3.
Unpacking python3 (from .../python3_3.1.2 0ubuntu1_all.deb) ...
Selecting previously deselected package python3 tk.
Unpacking python3 tk (from .../python3 tk_3.1.1 1_amd64.deb) ...
Selecting previously deselected package xbitmaps.
Unpacking xbitmaps (from .../xbitmaps_1.1.0 1_all.deb) ...
Selecting previously deselected package xterm.
Unpacking xterm (from .../xterm_256 1ubuntu1_amd64.deb) ...
Selecting previously deselected package libgl1 mesa dri.
Unpacking libgl1 mesa dri (from .../libgl1 mesa dri_7.7.1 1ubuntu3.1_amd64.deb) ...
Processing triggers for man db ...
Setting up libgl1 mesa glx (7.7.1 1ubuntu3.1) ...
update alternatives: using /usr/lib/mesa/ld.so.conf to provide /etc/ld.so.conf.d/GL.conf (gl_conf) in auto mode.

Setting up libxmu6 (2:1.0.5 1) ...

Setting up libxpm4 (1:3.5.8 1) ...

Setting up libxaw7 (2:1.0.7 1) ...

Setting up libxv1 (2:1.0.5 1) ...

Setting up x11 utils (7.5+3) ...

Setting up tk8.5 (8.5.8 1) ...
update alternatives: using /usr/bin/wish8.5 to provide /usr/bin/wish (wish) in auto mode.

Setting up blt (2.4z 4.2) ...

Setting up python3.1 minimal (3.1.2 0ubuntu3.2) ...

Setting up python3.1 (3.1.2 0ubuntu3.2) ...

Setting up python3 minimal (3.1.2 0ubuntu1) ...
Setting up python3 (3.1.2 0ubuntu1) ...
Setting up python3 tk (3.1.1 1) ...
Setting up xbitmaps (1.1.0 1) ...
Setting up xterm (256 1ubuntu1) ...
update alternatives: using /usr/bin/xterm to provide /usr/bin/x terminal emulator (x terminal emulator) in auto mode.
update alternatives: using /usr/bin/uxterm to provide /usr/bin/x terminal emulator (x terminal emulator) in auto mode.
update alternatives: using /usr/bin/koi8rxterm to provide /usr/bin/x terminal emulator (x terminal emulator) in auto mode.
update alternatives: using /usr/bin/lxterm to provide /usr/bin/x terminal emulator (x terminal emulator) in auto mode.

Setting up libgl1 mesa dri (7.7.1 1ubuntu3.1) ...

Processing triggers for libc bin ...
ldconfig deferred processing now taking place
root@hiox:~


Related Topics

Apt Get Commands