-   Linux - Newbie (
-   -   How to apt-get KDE 3.3 ? (

glenn69 09-30-2004 01:02 AM

How to apt-get KDE 3.3 ?
I have installed debian sarge, used apt-get for some basic packages. Now I would like to install KDE 3.3, when I apt-get the kde version is 3.2. i want 3.3, how do I set apt-get to install 3.3 for sarge?

christhom 09-30-2004 02:52 AM

you can specify sid or sarge with the -t flag

i.e apt-get -t testing install kde or
apt-get -t unstable install kde


ps - for a more gui-friendly experience, try synaptic. apt-get install synaptic, then run as root.

HappyTux 09-30-2004 03:17 AM

Re: How to apt-get KDE 3.3 ?

Originally posted by glenn69
I have installed debian sarge, used apt-get for some basic packages. Now I would like to install KDE 3.3, when I apt-get the kde version is 3.2. i want 3.3, how do I set apt-get to install 3.3 for sarge?
Well you can do it a couple of ways if you want to dist-upgrade to unstable it is probably the easiest in terms of the steps needed. All you would have to do is change the sarge lines in your /etc/apt/sources.list to unstable then apt-get update and apt-get dist-upgrade then your entire distribution would be upgraded to unstable which contains KDE 3.3. Otherwise it can be achieved using something called apt-pinning and one long apt-get install line. To set this up you would need to put something similar to this in your /etc/apt/apt.conf.


>$ cat /etc/apt/apt.conf
APT::Default-Release "testing";
APT::Get::Show-Versions "true";
APT::Cache-Limit 10000000;

The Default-Release tells apt that you want to use testing as your release, the Cache-Limit tells apt to use a larger package cache so you will not get an error when you add the source line(s) for unstable in your sources.list file and the Get::Show-Versions shows you where your packages are coming from when you use apt eg.

[HappyTux:/home/stephen]# apt-get -s upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages have been kept back:
  easytag (0.30-5 => 0.31-1)
The following packages will be upgraded:
  cupsys (1.1.20final+rc1-6 => 1.1.20final+rc1-7)
  libcupsimage2 (1.1.20final+rc1-6 => 1.1.20final+rc1-7)
  libcupsys2-dev (1.1.20final+rc1-6 => 1.1.20final+rc1-7)
  libcupsys2-gnutls10 (1.1.20final+rc1-6 => 1.1.20final+rc1-7)
  ucf (1.08 => 1.09)
  xli (1.17.0-14 => 1.17.0-15)
6 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Inst libcupsys2-dev [1.1.20final+rc1-6] (1.1.20final+rc1-7 Debian:testing) []
Inst libcupsys2-gnutls10 [1.1.20final+rc1-6] (1.1.20final+rc1-7 Debian:testing)
Inst libcupsimage2 [1.1.20final+rc1-6] (1.1.20final+rc1-7 Debian:testing)
Inst cupsys [1.1.20final+rc1-6] (1.1.20final+rc1-7 Debian:testing)
Inst ucf [1.08] (1.09 Debian:testing)
Inst xli [1.17.0-14] (1.17.0-15 Debian:testing)
Conf libcupsys2-gnutls10 (1.1.20final+rc1-7 Debian:testing)
Conf libcupsys2-dev (1.1.20final+rc1-7 Debian:testing)
Conf libcupsimage2 (1.1.20final+rc1-7 Debian:testing)
Conf cupsys (1.1.20final+rc1-7 Debian:testing)
Conf ucf (1.09 Debian:testing)
Conf xli (1.17.0-15 Debian:testing)

You see it here with the "Debian:testing" the other two are just standard options that are already likely in the file. Now you would need a /etc/apt/preferences files to do the actual pinning.


>$ cat /etc/apt/preferences
Package: *
Pin: release testing
Pin-Priority: 900

Package: *
Pin: release unstable
Pin-Priority: 600

This tells apt that my packages from testing will always take precedence over the packages for unstable when being installed so you have to go out of your way to install the unstable ones with something like apt-get install -t unstable package package1 package2 .... . Now this could be the type of line you would need to use when installing all the packages you need from unstable if the meta package for kde does not work (apt-get -t unstable kde) so you cannot do it that way. If so then here are all the packages that I have from unstable from KDE you would use these as a guide.


>$ COLUMNS=125 dpkg -l | grep 3.3.0
ii  akode                    3.3.0-1                  akode arts plugin
ii  artsbuilder              3.3.0-1                  Arts synthesizer designer
ii  juk                      3.3.0-1                  music organizer and player for KDE
ii  kaboodle                  3.3.0-1                  Embedded media player for KDE
ii  kaddressbook              3.3.0-2                  KDE NG addressbook application
ii  kalarm                    3.3.0-2                  KDE alarm message and command scheduler
ii  kappfinder                3.3.0a-1                  KDE Application Finder
ii  kate                      3.3.0a-1                  KDE Advanced Text Editor
ii  kaudiocreator            3.3.0-1                  CD ripper and audio encoder frontend
ii  kcalc                    3.3.0-1                  KDE calculator
ii  kcharselect              3.3.0-1                  KDE character selector
ii  kcontrol                  3.3.0a-1                  KDE Control Center
ii  kdeadmin-kfile-plugins    3.3.0-2                  KDE File dialog pluginsfor deb and rpm files
ii  kdebase                  3.3.0a-1                  KDE Base metapackage
ii  kdebase-bin              3.3.0a-1                  KDE Base (binaries)
ii  kdebase-data              3.3.0a-1                  KDE Base (shared data)
ii  kdebase-kio-plugins      3.3.0a-1                  KDE I/O Slaves
ii  kdegraphics-kfile-plugins 3.3.0-2                  provide meta information for graphic files
ii  kdelibs                  3.3.0-2                  KDE core libraries metapackage
ii  kdelibs-bin              3.3.0-2                  KDE core binaries
ii  kdelibs-data              3.3.0-2                  KDE core shared data
ii  kdelibs4                  3.3.0-2                  KDE core libraries
ii  kdelibs4-dev              3.3.0-2                  KDE core libraries (development files)
ii  kdemultimedia-kappfinder-data 3.3.0-1                  Multimedia data for kappfinder
ii  kdemultimedia-kfile-plugins 3.3.0-1                  au/avi/m3u/mp3/ogg/wav plugins for kfile
ii  kdemultimedia-kio-plugins 3.3.0-1                  Support for browsing audio CDs under Konqueror
ii  kdepasswd                3.3.0a-1                  KDE password changer
ii  kdepim-kfile-plugins      3.3.0-2                  KDE File dialog pluginsfor palm and vcf files
ii  kdepim-kio-plugins        3.3.0-2                  KDE pim I/O Slaves
ii  kdeprint                  3.3.0a-1                  KDE Print
ii  kdesktop                  3.3.0a-1                  KDE Desktop
ii  kdessh                    3.3.0-1                  KDE ssh frontend
ii  kdf                      3.3.0-1                  KDE disk free
ii  kdict                    3.3.0-2                  KDE Dictionary Client
ii  kdm                      3.3.0a-1                  KDE Display Manager
ii  kedit                    3.3.0-1                  KDE text editor
ii  kfind                    3.3.0a-1                  KDE File Find Utility
ii  kfloppy                  3.3.0-1                  KDE floppy formatter
ii  kget                      3.3.0-2                  KDE Download Manager
ii  kghostview                3.3.0-2                  PostScript viewer for KDE
ii  kgpg                      3.3.0-1                  GnuPG frontend for KDE
ii  khelpcenter              3.3.0a-1                  KDE Help Center
ii  khexedit                  3.3.0-1                  KDE hex editor
ii  kicker                    3.3.0a-1                  KDE Desktop Panel
ii  kjots                    3.3.0-1                  KDE note taking utility
ii  klipper                  3.3.0a-1                  KDE Clipboard
ii  kmail                    3.3.0-2                  KDE Email client
ii  kmailcvt                  3.3.0-2                  KDE KMail addressbook converter
ii  kmenuedit                3.3.0a-1                  KDE Menu Editor
ii  kmid                      3.3.0-1                  midi/karaoke player forKDE
ii  kmilo                    3.3.0-1                  KDE kded hardware support module
ii  kmix                      3.3.0-1                  KDE based mixer app
ii  knode                    3.3.0-2                  KDE news reader
ii  konqueror                3.3.0a-1                  KDE's advanced File Manager, Web Browser and Document Viewer
ii  konqueror-nsplugins      3.3.0a-1                  Netscape plugin supportfor Konqueror
ii  konsole                  3.3.0a-1                  KDE X terminal emulator
ii  kontact                  3.3.0-2                  KDE pim application
ii  kopete                    3.3.0-2                  Instant messenger program
ii  korganizer                3.3.0-2                  KDE personal organizer
ii  kpager                    3.3.0a-1                  KDE Desktop Pager
ii  kpersonalizer            3.3.0a-1                  KDE Personalizer
ii  kpilot                    3.3.0-2                  KDE Palm Pilot hot-synctool
ii  krec                      3.3.0-1                  KDE based recorder app
ii  kregexpeditor            3.3.0-1                  graphical regular expression editor plugin
ii  kscd                      3.3.0-1                  KDE based cd player
ii  ksim                      3.3.0-1                  System information monitor
ii  ksmserver                3.3.0a-1                  KDE Session Manager
ii  ksnapshot                3.3.0-2                  Screenshot application for KDE
ii  ksplash                  3.3.0a-1                  KDE Splash Screen
ii  ksvg                      3.3.0-2                  SVG viewer for KDE
ii  ksync                    3.3.0-2                  KDE Sync
ii  ksysguard                3.3.0a-1                  KDE System Guard
ii  ksysguardd                3.3.0a-1                  KDE System Guard Daemon
ii  ksysv                    3.3.0-2                  KDE SysV-style init configuration editor
ii  ktip                      3.3.0a-1                  Kandalf's Useful Tips
ii  ktnef                    3.3.0-2                  KDE TNEF viewer
ii  kuickshow                3.3.0-2                  KDE image/slideshow viewer
ii  kview                    3.3.0-2                  KDE simple image viewer/converter
ii  kviewshell                3.3.0-2                  KDE generic framework for viewer applications
ii  kwin                      3.3.0a-1                  KDE Window Manager
ii  libarts1-audiofile        3.3.0-1                  audiofile (aRts plugin)
ii  libarts1-mpeglib          3.3.0-1                  mpeglib is a mp3 and mpeg I video/audio library (Arts plugin)
ii  libarts1-xine            3.3.0-1                  xine plugin for arts
ii  libkcal2                  3.3.0-2                  KDE calendaring library
ii  libkcddb1                3.3.0-1                  cddb library for KDE
ii  libkdenetwork2            3.3.0-2                  KDE Network library
ii  libkdepim1                3.3.0-2                  KDE PIM library
ii  libkgantt0                3.3.0-2                  KDE gantt charting library
ii  libkleopatra0            3.3.0-2                  KDE GnuPG interface libraries
ii  libkonq4                  3.3.0a-1                  Core libraries for KDE's file manager
ii  libkonq4-dev              3.3.0a-1                  Core libraries for KDE's file manager (development files)
ii  libkpimexchange1          3.3.0-2                  KDE PIM Exchange library
ii  libkpimidentities1        3.3.0-2                  KDE PIM user identity information library
ii  libksieve0                3.3.0-2                  KDE mail/news message filtering library
ii  libmimelib1              3.3.0-2                  KDE mime library
ii  mpeglib                  3.3.0-1                  mp3 and mpeg I video/audio library for linux
ii  xfonts-konsole            3.3.0a-1                  Fonts used by the KDE Konsole

These are the packages that are leftover from the version 3.2.? that are not yet built for unstable that I have still installed and you would end up left with. This is also the command you would use to find the package to put on the one long command line if the -t unstable kde will not work.


>$ COLUMNS=125 dpkg -l | grep 3.2.[234]
ii  apmd                      3.2.2-2                  Utilities for Advanced Power Management (APM)
ii  ark                      3.2.2-2                  KDE archiving tool
ii  cpp-3.2                  3.2.3-9                  The GNU C preprocessor
ii  gcc-3.2-base              3.2.3-9                  The GNU Compiler Collection (base package)
ii  kate-plugins              3.2.3-2                  plugins for Kate, the KDE Advanced Text Editor
ii  kdeaddons-doc-html        3.2.3-2                  KDE add-ons documentation in HTML format
ii  kdeaddons-kfile-plugins  3.2.3-2                  KDE file dialog pluginsfor text files and folders
ii  kdeartwork                3.2.3-2                  themes, styles and morefrom the official KDE release
ii  kdeartwork-misc          3.2.3-2                  various multimedia goodies released with KDE
ii  kdeartwork-style          3.2.3-2                  widget styles released with KDE
ii  kdeartwork-theme-desktop  3.2.3-2                  Dummy upgrade package for official KDE desktop themes
ii  kdeartwork-theme-icon    3.2.3-2                  icon themes released with KDE
ii  kdeartwork-theme-window  3.2.3-2                  window decoration themes released with KDE
ii  kdelirc                  3.2.2-2                  KDE infrared control
ii  kdewallpapers            3.2.3-2                  wallpapers released with KDE
ii  kfilereplace              3.2.3-2                  batch search-and-replace component for KDE
ii  kicker-applets            3.2.3-2                  applets for Kicker, theKDE panel
ii  koffice-data              1.3.2-2                  common shared data for the KDE Office Suite
ii  koffice-libs              1.3.2-2                  common libraries and binaries for the KDE Office Suite
ii  kommander                3.2.3-2                  create dialogs that generate text through user interaction
ii  kompare                  3.2.3-2                  a KDE GUI for viewing differences between files
ii  konq-plugins              3.2.3-2                  plugins for Konqueror, the KDE file/web/doc browser
ii  kscreensaver              3.2.3-2                  screen savers released with KDE
ii  kspread                  1.3.2-2                  a spreadsheet for the KDE Office Suite
ii  libapm1                  3.2.2-2                  Library for interactingwith APM driver in kernel
ii  libgimp1.2                1.2.3-2.4                Libraries necessary to run the GIMP, version 1.2
ii  libkdgantt0              3.2.2-2                  KD's gantt charting library
ii  libkjsembed1              3.2.3-1                  Embedded JavaScript library
ii  quanta                    3.2.3-2                  web development environment for KDE
ii  quanta-data              3.2.3-2                  data files for Quanta Plus web development environment

If you end up with any packages with the names cut off in the output increase the COLUMNS=125 to 135 or higher until you see all the package name.

glenn69 10-01-2004 11:20 AM

You said to do this : Well you can do it a couple of ways if you want to dist-upgrade to unstable it is probably the easiest in terms of the steps needed. All you would have to do is change the sarge lines in your /etc/apt/sources.list to unstable .

How do I do that? i don't know what the address of the "unstable" sources is, and I haven't had much luck finding it. Please talk me through this. Thanks.

HappyTux 10-01-2004 12:03 PM


Originally posted by glenn69

How do I do that? i don't know what the address of the "unstable" sources is, and I haven't had much luck finding it. Please talk me through this. Thanks.

It is easy to do for a line that looks like this in your sources.list.


# Testing
deb testing main non-free contrib

Change to this.


# Unstable
deb unstable main non-free contrib

Any mirror should have the sources for all the branch's (stable, testing and unstable) available at the site if they are doing a complete mirroring of the Debian archive which is what is usually done. Now being new enough to this that you do not know how to change the sources.list for a different branch you have me wondering how you will handle it if you end up with problems. Sometimes you can end up with a dpkg error 1 which means that a package contains a file that is in another and cannot overwrite it. So if you run into any of these the solution to it is cd /var/cache/apt/archives then you use dpkg -i --force-overwrite package_with_error.deb (it will be listed at the bottom of the error output) if more than one then put them all on the same line (dpkg -i --force-overwrite package_with_error.deb package2_with_error.deb ...) and after the overwrite completes use dpkg --configure -a to get the package(s) left unconfigured when the error happened and do the dist-upgrade again to make sure it has completed it will only install the packages that did not get installed when you first had the error this time, you may have to repeat this a couple of times if necessary but everything should install in the long run.

michapma 10-01-2004 01:11 PM

Wouldn't it be more efficient to read the APT how-to? It's actually pretty short, and worthwhile knowing how to run your system packaging. :)

All times are GMT -5. The time now is 07:30 AM.