PDA

View Full Version : how do I upgrade packages?



dageek
10-21-2003, 09:22 PM
I'm using a rather fresh hd install of Knoppix v3.3 2003-09-24. Would anyone know how I can upgrade KDE to version 3.1.4?

Whatever I try, I keep getting 'package A depends on package B but package B is not going to be installed.'

I realize that this may be a more general issue based on how the Debian packaging system works. Having migrated from a RH8 system a few months ago, I have been playing with apt-get and dselect but I still don't succeed in upgrading KDE to 3.1.4. (I actually couldn't upgrade K to 3.1.3 on KNX 3.2 either but then KNX 3.3 came out ;-)

any suggestions?

TIA

Dave_Bechtel
10-21-2003, 09:26 PM
--I know this doesn't help but...

I've given up on upgrading KDE. It's a mess. Personally, I just use sawfish. :roll:


I'm using a rather fresh hd install of Knoppix v3.3 2003-09-24. Would anyone know how I can upgrade KDE to version 3.1.4?

Whatever I try, I keep getting 'package A depends on package B but package B is not going to be installed.'

I realize that this may be a more general issue based on how the Debian packaging system works. Having migrated from a RH8 system a few months ago, I have been playing with apt-get and dselect but I still don't succeed in upgrading KDE to 3.1.4. (I actually couldn't upgrade K to 3.1.3 on KNX 3.2 either but then KNX 3.3 came out ;-)

any suggestions?

TIA

Stephen
10-21-2003, 10:36 PM
I'm using a rather fresh hd install of Knoppix v3.3 2003-09-24. Would anyone know how I can upgrade KDE to version 3.1.4?

Whatever I try, I keep getting 'package A depends on package B but package B is not going to be installed.'

I realize that this may be a more general issue based on how the Debian packaging system works. Having migrated from a RH8 system a few months ago, I have been playing with apt-get and dselect but I still don't succeed in upgrading KDE to 3.1.4. (I actually couldn't upgrade K to 3.1.3 on KNX 3.2 either but then KNX 3.3 came out ;-)

any suggestions?

TIA

In your /etc/apt/sources.list comment out the stable and testing sources for Debian then apt-get update and install the packages you want you should know however that many of the packages in KDE are still at 3.1.3 as you can see from my machine.


[06:33 PM Tue Oct 21: stephen @ ~]
>$ COLUMNS=120 dpkg -l | grep 3.1.[34]
ii ark 3.1.4-1 KDE archiving tool
ii kaddressbook 3.1.4-1 KDE NG addressbook application
ii kappfinder 3.1.3-1 KDE Application Finder
ii kate 3.1.3-1 KDE Advanced Text Editor
ii kcontrol 3.1.3-1 KDE Control Center
ii kdebase 3.1.3-1 KDE Base metapackage
ii kdebase-bin 3.1.3-1 KDE Base (binaries)
ii kdebase-data 3.1.3-1 KDE Base (shared data)
ii kdebase-kio-plugins 3.1.3-1 KDE I/O Slaves
ii kdelibs-bin 3.1.4-2 KDE core binaries
ii kdelibs-data 3.1.4-2 KDE core shared data
ii kdelibs4 3.1.4-2 KDE core libraries
ii kdepim-libs 3.1.4-1 KDE PIM libraries
ii kdeprint 3.1.3-1 KDE Print
ii kdesktop 3.1.3-1 KDE Desktop
ii kdm 3.1.3-1 KDE Display Manager
ii kfind 3.1.3-1 KDE File Find Utility
ii kget 3.1.4-1 KDE Download Manager
ii kghostview 3.1.4-1 PostScript viewer for KDE
ii khelpcenter 3.1.3-1 KDE Help Center
ii kicker 3.1.3-1 KDE Desktop Panel
ii klipper 3.1.3-1 KDE Clipboard
ii kmail 3.1.4-1 KDE Email client
ii kmenuedit 3.1.3-1 KDE Menu Editor
ii konqueror 3.1.3-1 KDE's advanced File Manager, Web Browser and Document Viewer
ii konqueror-nsplugins 3.1.3-1 Netscape plugin support for Konqueror
ii konsole 3.1.3-1 KDE X terminal emulator
ii kpager 3.1.3-1 KDE Desktop Pager
ii kpersonalizer 3.1.3-1 KDE Personalizer
ii ksmserver 3.1.3-1 KDE Session Manager
ii ksplash 3.1.3-1 KDE Splash Screen
ii ksysguard 3.1.3-1 KDE System Guard
ii ksysguardd 3.1.3-1 KDE System Guard Daemon
ii ktip 3.1.3-1 Kandalf's Useful Tips
ii kuickshow 3.1.4-1 KDE image/slideshow viewer
ii kwin 3.1.3-1 KDE Window Manager
ii libkdenetwork2 3.1.4-1 KDE Network (common libraries)
ii libkonq4 3.1.3-1 Core libraries for KDE's file manager
ii libmimelib1 3.1.4-1 KDE network mime library
ii xfonts-konsole 3.1.3-1 Fonts used by the KDE Konsole

dageek
10-22-2003, 05:20 PM
Stephen, thx for your suggestion although I believe to have found an alternative way: creating an appropriate /etc/apt/preferences file.

This allowed me to install kdelibs4 3.1.4 and deps, but not everyting was installed correctly, namely libxcursor-dev and kdelibs-data. These packages keep throwing errors at me when I run apt-get -f install and now I can't install other packages anymore until this is fixed (or so it seems).


$ apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
kdelibs-data libxcursor-dev
The following NEW packages will be installed:
libxcursor-dev
The following packages will be upgraded
kdelibs-data
1 upgraded, 1 newly installed, 0 to remove and 459 not upgraded.
13 not fully installed or removed.
Need to get 0B/5094kB of archives.
After unpacking 713kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 113345 files and directories currently installed.)
Preparing to replace kdelibs-data 4:3.1.3-1 (using .../kdelibs-data_4%3a3.1.4-2_all.deb) ...
Unpacking replacement kdelibs-data ...
Id 'kde2.2/b1' was already in done-list!
Id 'kde3.1/cvs' was already in done-list!
Id 'kde3.0' was already in done-list!
Id 'kde-3.1-toolbar' was already in done-list!
Id 'kde2.2/r1' was already in done-list!
Id 'kde2.2/r2' was already in done-list!
Id 'kde2.2/r3' was already in done-list!
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
kbuildsycoca running...
dpkg: error processing /var/cache/apt/archives/kdelibs-data_4%3a3.1.4-2_all.deb (--unpack):
trying to overwrite `/usr/share/mimelnk/application/x-cue.desktop', which is also in package k3b
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Unpacking libxcursor-dev (from .../libxcursor-dev_1.0.2-2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libxcursor-dev_1.0.2-2_i386.deb (--unpack):
trying to overwrite `/usr/X11R6/include/X11/Xcursor/Xcursor.h', which is also in package xlibs-dev
Errors were encountered while processing:
/var/cache/apt/archives/kdelibs-data_4%3a3.1.4-2_all.deb
/var/cache/apt/archives/libxcursor-dev_1.0.2-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Id 'kde2.2/b1' was already in done-list!
Id 'kde3.1/cvs' was already in done-list!
Id 'kde3.0' was already in done-list!
Id 'kde-3.1-toolbar' was already in done-list!
Id 'kde2.2/r1' was already in done-list!
Id 'kde2.2/r2' was already in done-list!
Id 'kde2.2/r3' was already in done-list!
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
kbuildsycoca running...

trying to install something completely different yields:


$ apt-get install nano
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
kdelibs4: Depends: kdelibs-data (= 4:3.1.4-2) but 4:3.1.3-1 is to be installed
libqt3-mt-dev: Depends: libxcursor-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Removing the preferences file and commenting out all stable/testing mirrors from my sources.list (i.e. your suggestion Stephen) results in the same errors.

KControl does, however, display the current KDE version as 3.1.4 and

dpkg -l | grep 3.1.4
tells me that the following files are installed

iU kdelibs-bin 3.1.4-2 KDE core binaries
iU kdelibs4 3.1.4-2 KDE core libraries
iU kdelibs4-dev 3.1.4-2 KDE core libraries (development files)
a similar query reveals that libxcursor-dev is indeed not installed and that kdelibs-data is still at version 3.1.3

I'm not giving up though so I'll keep on reading up on apt, etc and suggestions are still very welcome ;-)

Stephen
10-22-2003, 09:08 PM
You will need to the same I suggested in this thread (http://www.knoppix.net/forum/viewtopic.php?t=5619&highlight=) and do the same for the kde files that will not you may have to have them all on the same command line for them to install if they will not install individually.

mightydavefish
10-23-2003, 01:57 AM
You can fix your libxcursor-dev problem with this:
su
cd /var/cache/apt/archives/
dpkg --force-overwrite -i libxcursor-dev(your version here-just hit tab)

That will overwrite the problemed file. I don't know the answer to your kdelib problem. You can try the same command as above but put the kdelib filename instead of libxcursor-dev, but I can't say whether it'll work because I don't have that problem. I upgraded my KDE by removing the line in /etc/apt/apt.conf that make your default distro "testing". Now I just run debian/unstable.

dageek
10-23-2003, 10:36 PM
thx guys, --force-overwrite did the trick! in both cases.

apt-get -f install configured the remaining unconfigured packages.

thx!

crun
11-15-2003, 09:23 PM
I just had to register to also say thank you - had the same problem (kdelibs vs k3b fighting over x-cue.desktop), and the --force-overwrite was the solution. Happily updating my Libranet at the moment.