$ sudo apt-get install hpijs hplip Reading package lists... Done Building dependency tree Reading state information... Done hpijs is already the newest version. hpijs set to manually installed. The following packages were automatically installed and are no longer required: planner libgsf-gnome-1-114 libmagick++10 gnome-office gnumeric-common gnome-themes-extras libgoffice-0-6-common gnome-backgrounds libgoffice-0-6 gnome-core gnumeric inkscape Use 'apt-get autoremove' to remove them. Suggested packages: hplip-doc kdeprint gtklp xpp Recommended packages: hpijs-ppds hplip-gui The following packages will be upgraded: hplip 1 upgraded, 0 newly installed, 0 to remove and 388 not upgraded. 45 not fully installed or removed. Need to get 0B/309kB of archives. After this operation, 0B of additional disk space will be used. (Reading database ... 343071 files and directories currently installed.) Preparing to replace hplip 2.8.2-0ubuntu8 (using .../hplip_2.8.2-0ubuntu8.1_i386.deb) ... /usr/sbin/update-python-modules:125: DeprecationWarning: raising a string exception is deprecated raise "Trying to overwrite %s which is already provided by %s"%(os.path.join(dir,file),otherdir) Traceback (most recent call last): File "/usr/sbin/update-python-modules", line 315, in process(basedir,install_modules([pyver])) File "/usr/sbin/update-python-modules", line 160, in process func(basedir, dir, file) File "/usr/sbin/update-python-modules", line 125, in install_modules_func raise "Trying to overwrite %s which is already provided by %s"%(os.path.join(dir,file),otherdir) Trying to overwrite gtk-2.0 which is already provided by /usr/share/python-support/python-gtk2 dpkg: warning - old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... /usr/sbin/update-python-modules:125: DeprecationWarning: raising a string exception is deprecated raise "Trying to overwrite %s which is already provided by %s"%(os.path.join(dir,file),otherdir) Traceback (most recent call last): File "/usr/sbin/update-python-modules", line 315, in process(basedir,install_modules([pyver])) File "/usr/sbin/update-python-modules", line 160, in process func(basedir, dir, file) File "/usr/sbin/update-python-modules", line 125, in install_modules_func raise "Trying to overwrite %s which is already provided by %s"%(os.path.join(dir,file),otherdir) Trying to overwrite gtk-2.0 which is already provided by /usr/share/python-support/python-gtk2 dpkg: error processing /var/cache/apt/archives/hplip_2.8.2-0ubuntu8.1_i386.deb (--unpack): subprocess new pre-removal script returned error exit status 1 /usr/sbin/update-python-modules:125: DeprecationWarning: raising a string exception is deprecated raise "Trying to overwrite %s which is already provided by %s"%(os.path.join(dir,file),otherdir) Traceback (most recent call last): File "/usr/sbin/update-python-modules", line 315, in process(basedir,install_modules([pyver])) File "/usr/sbin/update-python-modules", line 160, in process func(basedir, dir, file) File "/usr/sbin/update-python-modules", line 125, in install_modules_func raise "Trying to overwrite %s which is already provided by %s"%(os.path.join(dir,file),otherdir) Trying to overwrite gtk-2.0 which is already provided by /usr/share/python-support/python-gtk2 dpkg: error while cleaning up: subprocess post-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/hplip_2.8.2-0ubuntu8.1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)