apt-get Install cups

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

How to Install cups with apt-get?

apt-get install cups -y

Install Cups  Command

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

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

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

Result of the Command Execution shown below:

root@hiox:~ apt-get install cups -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libdbusmenu qt2 plasma widget kimpanel backend ibus texlive common
sane utils libpolkit backend 1 0 libproc processtable perl libplist1
aspell en libxcb aux0 libdevel symdump perl libsm dev libatk1.0 0
libgd text perl syslinux libnet daemon perl libical0 libwpd8c2a
gconf2 common libgtk2.0 common libsys cpuload perl libdb je java hdparm
gir1.0 glib 2.0 dnsmasq base pure ftpd common libnet ssleay perl
libgsf 1 common update notifier common libgnomeprintui2.2 common
python cupshelpers libkonq5 templates libcrypt openssl rsa perl libqca2
libndesk dbus1.0 cil python pyorbit libmtp8 rpm2cpio gnome js common
pure ftpd mysql libsilcclient 1.1 3 libxcb atom1 erlang crypto
postgresql 8.4 libyaml tiny perl python debian hicolor icon theme
libxcomposite1 libice dev lp solve libarchive1 realpath libdigest sha1 perl
libfilesys df perl unattended upgrades telepathy gabble libhal storage1
libnet ip perl libdb4.7 java libcdio paranoia0 libunshield0 libcompizconfig0
libwebkit 1.0 common libatlas3gf base libpurple bin bind9 host
libpolkit qt 1 0 python numpy libproc process perl libconvert tnef perl
gamin libgphoto2 port0 libgd graph3d perl libio stringy perl python mako
aspell usbmuxd libsensors4 libnet dns perl nvidia common python avahi
libxklavier16 libnet dbus perl libxine1 x libmeanwhile1 libsnmp15
genisoimage libkpathsea5 hunspell en us erlang xmerl libreadonly perl
librdf0 libdmraid1.0.0.rc16 libclone perl libpthread stubs0 libnunit2.4 cil
libpam unix2 esound clients smbclient libjtidy java libbonobo2 common
libilmbase6 libgd gd2 perl libindicate qt0 libqca2 plugin ossl libotf0
libatk1.0 data libsgutils2 2 gnome mime data libcfitsio3 python pycurl
libicu4j java libxml parser perl obexd client libmagickcore2 liburi perl
libddccontrol0 libservlet2.4 java re2c libsox fmt base libotr2
libtie ixhash perl libxml2 utils desktop file utils python couchdb
libspectre1 libcairo perl mysql server gstreamer0.10 alsa obex data server
libhtml parser perl libparted0debian1 libossp uuid perl python reportlab
libsane libplasma geolocation interface4 libimobiledevice0 g++ 4.4
odbcinst1debian1 libhyphen0 erlang syntax tools python louis liblouis data
libreadonly xs perl libgmime 2.0 2a libibus1 ddccontrol db libproxy0 libpst4
libcrypt ssleay perl libjack0 libboost program options1.40.0 libnm util1
libuuid perl python imaging libmono cairo2.0 cil libxcb xv0 unshield
libsox fmt alsa libbonobo2 0 libtdb1 libdbi perl libmagickwand2
libvte common python egenix mxtools phonon libsctp1 hpijs ncftp
libndesk dbus glib1.0 cil docbook xml libgupnp 1.0 3 libjson xs perl
libdevel stacktrace perl nvidia current modaliases
python software properties libmime tools perl libpcap0.8 screen
libstring shellquote perl libfont afm perl oxygen icon theme libpisock9
libdns64 liblog log4perl perl gconf2 libgdata google1.2 1 librpmio0
libjson perl librpm0 libwps 0.1 1 libmagick++2 rpm common libflac++6
ttf opensymbol language selector common notification daemon libdshconfig1
libipc sharelite perl groff base python uniconvertor whois libdotconf1.0
libtimedate perl gdebi core python lxml libhtml template perl libnotify1
libpoppler qt4 3 libstartup notification0 python twisted web libjs prototype
libavahi glib1 evolution common libexiv2 6 mysql server core 5.1 odbcinst
apturl common libperl6 junction perl liblapack3gf librasqal2 mtools
libfcgi perl libcommons compress java libcanberra0 libmono addins0.2 cil
php5 gd libthai data libgadu3 x11proto kb dev luatex libwavpack1
libqt4 opengl python renderpm libisccc60 network manager pptp
libmono system runtime2.0 cil pptp linux libgtkhtml editor common libdspam7
m17n db toshset libfile mmagic perl cpu checker libdatetime timezone perl
php mail mime libfile slurp perl libfuse2 libid3 3.8.3c2a liblzma1 k3b data
libmail rfc822 address perl libgamin0 libsnmp base libqt4 xmlpatterns
libnova 0.12 2 tcsh unixodbc erlang runtime tools libhtml tree perl procmail
libdatrie1 xtrans dev libindicate4 libwnck22 libakonadiprivate1
libportaudio2 php xml serializer libsolidcontrolifaces4 spamc
libdevkit power gobject1 libsexy2 libavahi core6 libxcb event1
libnet cidr perl libxcrypt1 libsoprano4 samba common libgconf2 4
libiec61883 0 akonadi server libelf1 libforms1 libxres1 libmailtools perl
libcairomm 1.0 1 libgdata common libsdl image1.2 libgnome mag2 sbox dtc
libgd graph perl libnss mysql bg php pear libpango1.0 common blt
x11proto input dev libgp11 0 libjsch java python brlapi libgirepository1.0 0
uno libs3 libclucene0ldbl rtkit python tk libpulse browse0
launchpad integration libsoap lite perl libexempi3 libhpmud0 liblwres60
shared desktop ontologies php5 curl libt1 5 libsilc 1.1 2 libcurl3
libjs scriptaculous libfli1 python xapian apt xapian index libdbusmenu glib1
libesd0 libparams validate perl virtuoso nepomuk liblouis0 libpam mysql
libqimageblitz4 iputils arping libfile tail perl libreadline5
phonon backend xine mysql client core 5.1 libenchant1c2a mlmmj
libcolamd2.7.1 libnm glib2 libxt dev kdepimlibs data libcroco3 modemmanager
libgnomecups1.0 1 libevent 1.4 2 python cairo python smbc
system config printer udev libopenexr6 libpulse mainloop glib0 icoutils
erlang mnesia libgsf 1 114 libgtop2 common librarian0 libopenobex1
libspeexdsp1 libieee1284 3 rarian compat python telepathy libnet server perl
libhdf4 0 wodim libthai0 libart2.0 cil python dbus postgresql common
erlang public key libdbd mysql perl libgnomeprint2.2 data
gir1.0 gstreamer 0.10 libidl0 libbind9 60 libneon27 gnutls libdatetime perl
liblog dispatch perl gir1.0 freedesktop kstars data libdjvulibre21 pax
libglade2 0 libxine1 console lesstif2 postfix mysql postgresql
libsys cpu perl soprano daemon libcommons el java libspeechd2 esound common
postgresql client 8.4 libqt4 svg libcompress raw zlib perl ppp libglib perl
xdg utils netpbm liberror perl libdcmtk1 libdatetime locale perl webalizer
gstreamer0.10 pulseaudio libdv4 libhtml format perl libatasmart4 libxau dev
rpm librpmbuild0 libtask weaken perl libphonon4 sox libzip1
libfreezethaw perl ssh libblas3gf fglrx modaliases libxss1
libtotem plparser17 mysql client libhunspell 1.2 0 libslf4j java libkephal4
nvidia 96 modaliases tcl8.4 tcl8.5 libindi0 libdc1394 22 ure libjasper1
erlang inets libgtop2 7 ttf dejavu libxine1 misc plugins libplrpc perl
ksysguardd libusbmuxd1 dmz cursor theme libm17n 0 libdecoration0 libgeoip1
libregexp java libperl5.10 python twisted names libgnomeui common xz utils
libxxf86misc1 m17n contrib wwwconfig common libgupnp igd 1.0 2
php xml parser libsocket6 perl mhonarc libisccfg60 libdbd pg perl usbutils
smartdimmer gnome desktop data python gdbm python cups libjasper java
libupower glib1 liborbit2 libattica0 tk8.4 tk8.5 libmail dkim perl libanthy0
libwnck common app install data libconvert uulib perl sgml data
postgresql client common libdb4.6 libnetpbm10 libdb4.7 libpolkit agent 1 0
libxml xpath perl texlive doc base libpq5 libgfortran3 xfonts mathml
libgpgme11 libart 2.0 2 evolution data server common man db libstreams0
libid3tag0 python pexpect libqt4 webkit libraptor1 libio multiplex perl
libcdio cdda0 libepub0 imagemagick libhtml tagset perl libzephyr4
libhamcrest java liblucene2 java erlang ssl libpango1.0 0 libgraphite3 exiv2
libgvfscommon0 php5 mysql libmusicbrainz4c2a libx11 dev libnetaddr ip perl
kdelibs5 data libwpg 0.1 1 libgc1c2 quassel data libequinox osgi java
liblist moreutils perl hal info dictionaries common openoffice.org common
libintl perl kdebase data libmail spf perl samba common bin libgnome menu2
libgcj common libwww perl libcommon sense perl system config printer common
netcat traditional fuse utils php5 cli scrollkeeper info dvd+rw tools
libsieve2 1 libgtk2.0 bin php crypt cbc gir1.0 atk 1.0 python xkit
libdjvulibre text libisc60 libavahi gobject0 dbus x11 libsox1a
libnet libidn perl libnice0 compiz core libxcb1 dev libxcb shape0
openjdk 6 jdk libconvert binhex perl libbonoboui2 common
libcommons digester java libloudmouth1 0 libssh 4 python egenix mxdatetime
perlmagick libxcb shm0 kdebase runtime data min12xxw libio socket ssl perl
libjson glib 1.0 0 libjetty java nvidia 173 modaliases p7zip full mscompress
libossp uuid16 python rdflib php mail mimedecode libiodbc2
libsys hostname long perl libpam gnome keyring libgdata1.2 1 ucspi tcp
iptables librsync1 php5 common openbsd inetd libjline java bcmwl modaliases
mysql server 5.1 tex common libusb 1.0 0 libclass singleton perl libnet1
libmldbm perl x11proto core dev freeglut3 python crypto libxml twig perl
libaspell15 libdigest hmac perl libgssdp 1.0 2 libmsn0.3 gnome doc utils
libgtk2.0 0 libxine1 bin libxdmcp dev libpthread stubs0 dev pulseaudio utils
libgnomecanvas2 common libunix syslog perl libcrypt openssl bignum perl
libltdl7 spamassassin mysql client 5.1 telepathy mission control 5
libasound2 plugins libnids1.21 libpisync1 hplip data erlang base libnetcdf4
libsoup2.4 1 libstreamanalyzer0 libio socket inet6 perl libstdc++6 4.4 dev
libgphoto2 2 python reportlab accel libgtksourceview2.0 common python opengl
libxine1 libaudiofile0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cups driver gutenprint ghostscript ghostscript cups gsfonts psfontmgr
Suggested packages:
cups ppdc foomatic db engine foomatic db hplip xpdf korean xpdf japanese
xpdf chinese traditional xpdf chinese simplified cups pdf gutenprint doc
gutenprint locales ghostscript x
The following NEW packages will be installed:
cups cups driver gutenprint ghostscript ghostscript cups gsfonts psfontmgr
Preconfiguring packages ...
0 upgraded, 6 newly installed, 0 to remove and 47 not upgraded.
2 not fully installed or removed.
Need to get 0B/6626kB of archives.
After this operation, 17.9MB of additional disk space will be used.
Selecting previously deselected package gsfonts.
(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 ... 118030 files and directories currently installed.)
Unpacking gsfonts (from .../gsfonts_1%3a8.11+urwcyr1.0.7~pre44 4_all.deb) ...
Selecting previously deselected package ghostscript.
Unpacking ghostscript (from .../ghostscript_8.71.dfsg.1 0ubuntu5.7_amd64.deb) ...
Selecting previously deselected package cups.
Unpacking cups (from .../cups_1.4.3 1ubuntu1.14_amd64.deb) ...
Selecting previously deselected package ghostscript cups.
Unpacking ghostscript cups (from .../ghostscript cups_8.71.dfsg.1 0ubuntu5.7_amd64.deb) ...
Selecting previously deselected package cups driver gutenprint.
Unpacking cups driver gutenprint (from .../cups driver gutenprint_5.2.5 0ubuntu1.1_amd64.deb) ...
Selecting previously deselected package psfontmgr.
Unpacking psfontmgr (from .../psfontmgr_0.11.10 4ubuntu1_all.deb) ...
Processing triggers for fontconfig ...
Processing triggers for man db ...
Processing triggers for ureadahead ...
Setting up dahdi dkms (1:2.2.1+dfsg 1ubuntu2) ...
Removing old dahdi 2.2.1+dfsg 1ubuntu2 DKMS files...


Deleting module version: 2.2.1+dfsg 1ubuntu2
completely from the DKMS tree.

Done.
Loading new dahdi 2.2.1+dfsg 1ubuntu2 DKMS files...
First Installation: checking all kernels...
Building for 2.6.32 33 server and 2.6.32 74 generic
Building for architecture x86_64
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
Building initial module for 2.6.32 74 generic

Error! Bad return status for module build on kernel: 2.6.32 74 generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/dahdi/2.2.1+dfsg 1ubuntu2/build/ for more information.
dpkg: error processing dahdi dkms ( configure):
subprocess installed post installation script returned error exit status 10
dpkg: dependency problems prevent configuration of dahdi linux:
dahdi linux depends on dahdi dkms | dahdi source; however:
Package dahdi dkms is not configured yet.
Package dahdi source is not installed.
dpkg: error processing dahdi linux ( configure):
dependency problems leaving unconfigured
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44 4) ...
(Re )registering PostScript fonts...
Updating fontconfig cache for /usr/share/fonts/type1/gsfonts
done.

Setting up ghostscript (8.71.dfsg.1 0ubuntu5.7) ...
update alternatives: using /usr/bin/ps2pdf14 to provide /usr/bin/ps2pdf (ps2pdf) in auto mode.
Updating font configuration of gs...
Cleaning up category psprint..
Cleaning up category cmap..
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category gsfontderivative..
Cleaning up category type3..
Cleaning up category type1..
Updating category type1..
Updating category type3..
Updating category gsfontderivative..
Updating category truetype..
Updating category cid..
Updating category cmap..
Updating category psprint..

Setting up cups (1.4.3 1ubuntu1.14) ...
* Starting Common Unix Printing System: cupsd [169G [163G[ OK ]

Setting up ghostscript cups (8.71.dfsg.1 0ubuntu5.7) ...

Setting up cups driver gutenprint (5.2.5 0ubuntu1.1) ...
No Gutenprint PPD files to update.
* Reloading Common Unix Printing System: cupsd [169G [163G[ OK ]
lpstat: No destinations added.

Setting up psfontmgr (0.11.10 4ubuntu1) ...
Updating font configuration of psfontmgr...
Cleaning up category postscript..
Cleaning up category xfont..
Cleaning up category type1..
Cleaning up category pspreview..
Updating category pspreview..
Updating category type1..
Updating category xfont..
Updating category postscript..

Errors were encountered while processing:
dahdi dkms
dahdi linux
root@hiox:~


Related Topics

Apt Get Commands