PDA

View Full Version : KDE, apt-get and Knoppix



Icekiss
05-31-2003, 08:03 PM
I have installed knoppix yesterday (runs now just fine :D ).
I started to play around with it (especially with apt-get), and found, that updating KDE isn't all that simple.
After trashing my system with "apt-get dist-upgrade" and playing around by installing and removing of testing and unstable packages for a few more hours I reinstalled it today completelly.

Ok, now I want to install kdict (on my new, cleanly reinstalled knoppix 3.2), and therefore run:
--------------------------------------------------------------------------------
root@terminus:/home/knoppix# apt-get -s install kdict
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
kdict: Depends: kdelibs3 (>= 4:2.2.2-1) but it is not going to be installed
E: Sorry, broken packages
----------------------------------------------------------------------------------------------

the uncommented lines of my sources.list:

# Stable
deb http://ftp2.de.debian.org/pub/debian stable main contrib non-free
deb http://ftp2.de.debian.org/pub/debian-non-US stable/non-US main contrib non-free
# Testing
deb http://ftp2.de.debian.org/pub/debian testing main contrib non-free
deb http://ftp2.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free
# Unstable
deb http://ftp2.de.debian.org/debian unstable main contrib non-free
deb http://ftp2.de.debian.org/debian-non-US unstable/non-US main contrib non-free
------------------------------------------------------------------------------------------------------

apt.conf is unchanged, which means my default release is testing
and yes, I did run apt-get update beforehand.

I tried to install noatun as well, and got the same unmet dependency.

Can anybody help?

aay
05-31-2003, 08:11 PM
If apt-get install package doens't work try "apt-get install package/testing" or "apt-get install package/unstable". Alternately you may try "apt-get -t testing install package" or "apt-get -t unstable install package". The last one may be the ticket but try the others first.

Icekiss
05-31-2003, 08:26 PM
The last one is the only one where apt-get isn't complaining about broken packages.
That is what apt-get want's to do:

The following extra packages will be installed:
alsa-headers ark audacity cpp-3.2 cupsys e2fsprogs fontconfig
foomatic-db-gimp-print g++-3.2 gcc-3.2 gcc-3.2-base gcc-3.3-base gcj-3.2 gs
gs-common gs-esp ijsgimpprint k3b kaddressbook kalarm kamera kandy
kappfinder karbon karm kasteroids kate kate-plugins kbattleship kbounce
kcalc kcharselect kchart kcoloredit kcontrol kdeaddons-kfile-plugins
kdebase-bin kdebase-kio-plugins kdegraphics-kfile-plugins kdelibs-bin
kdelibs-data kdelibs4 kdelibs4-dev kdemultimedia-kfile-plugins
kdenetwork-kfile-plugins kdepasswd kdepim kdepim-kfile-plugins kdepim-libs
kdeprint kdesktop kdessh kdevelop kdevelop-data kdf kdm kdvi kedit kfax
kfind kfloppy kformula kgeo kget kghostview kgpgcertmanager khelpcenter
khexedit kicker kicker-applets kiconedit kivio kjots klaptopdaemon klipper
kmail kmailcvt kmenuedit kmix kmrml knotes koffice-libs kompare konq-plugins
konqueror konqueror-nsplugins konsole kontour kooka korganizer koshell
kpackage kpager kpaint kpersonalizer kpf kpilot kppp kpresenter krdc krfb
ksim ksmserver ksnapshot ksokoban ksplash kspread kstars ksync ksysguard
ksysguardd kteatime ktimer ktip kugar kuickshow kuser kview kviewshell kwin
kword kxmlrpc libarts1 libarts1-dev libartsc0 libartsc0-dev libasound2
libasound2-dev libaudio-dev libblkid1 libcupsimage2 libcupsys2
libcupsys2-dev libdb4.1 libfam-dev libfam0c102 libfontconfig1
libfontconfig1-dev libgcc1 libgcj3 libgcj3-dev libgcrypt-dev libgcrypt1
libgdbmg1-dev libgimpprint1 libgnutls5 libgnutls5-dev libgphoto2-2
libgphoto2-port0 libid3-3.8.3 libijs-0.34 libkdegames1 libkdenetwork2
libkonq4 libkregexpeditor libkscan1 libldap2 libmal0 libmimelib1 libopenal0
libopencdk-dev libqt3-headers libqt3-mt-dev libqt3c102-mt libsane libsasl2
libsdl-mixer1.2 libsmbclient libstdc++5 libstdc++5-dev libtasn1-dev
libusb-0.1-4 libusb-dev libvorbis-dev libvorbis0a libvorbisenc2
libvorbisfile3 libwxgtk2.4 libxft2 libxft2-dev libxslt1 lisa psi python2.2
qt3-dev-tools scribus sox vorbis-tools xlibmesa-gl-dev xlibmesa-glu-dev
xlibs xlibs-dev xlibs-pic
The following packages will be REMOVED:
cupsys-driver-gimpprint kalarmd klprfax libfam0 libkcal2 libkgantt0
libqt3-dev libqt3-helper libqt3-mt libvorbis0 nas-dev qt3-tools
The following NEW packages will be installed:
g++-3.2 gcc-3.3-base gs ijsgimpprint kdepim-kfile-plugins kdict libaudio-dev
libblkid1 libcupsimage2 libdb4.1 libfam0c102 libfontconfig1-dev
libgcrypt-dev libgdbmg1-dev libgnutls5-dev libid3-3.8.3 libijs-0.34 libmal0
libopencdk-dev libqt3-headers libqt3c102-mt libsasl2 libsmbclient
libstdc++5-dev libtasn1-dev libvorbis0a libwxgtk2.4 libxft2-dev
qt3-dev-tools xlibmesa-gl-dev xlibmesa-glu-dev xlibs-pic
The following held packages will be changed:
libqt3-dev libqt3-mt libqt3-mt-dev
162 packages upgraded, 32 newly installed, 12 to remove and 651 not upgraded.
----------------------------------------------------------------------------------------------------
Looks like this would actually work...
But why the heck do I have to upgrade half my system?
I thought KDE 3 stays binary-compatible?
But if thats the way to go, I will do it (and pray that i don't trash my system again...)
Thanks for your hint!
(Before I do upgrade, I will wait for an reaction)

Stephen
05-31-2003, 09:17 PM
[05:11 PM Sat May 31: root @ /home/stephen]
># apt-cache policy kdict
kdict:
Installed: (none)
Candidate: 4:2.2.2-14.1
Version Table:
4:3.1.2-1 0
500 http://ftp.de.debian.org unstable/main Packages
4:2.2.2-14.6 0
500 http://security.debian.org stable/updates/main Packages
4:2.2.2-14.1 0
990 http://ftp.de.debian.org testing/main Packages
4:2.2.2-14 0
500 http://ftp.de.debian.org stable/main Packages
[05:12 PM Sat May 31: root @ /home/stephen]
># apt-get -s install kdict/unstable
Reading Package Lists... Done
Building Dependency Tree... Done
Selected version 4:3.1.2-1 (Debian:unstable) for kdict
The following NEW packages will be installed:
kdict
0 packages upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
Inst kdict (4:3.1.2-1 Debian:unstable)
Conf kdict (4:3.1.2-1 Debian:unstable)


I think you would be better off just installing the single package. But if you are on a high speed connection and can do without the 12 packages that will be removed it looks like it's going to work properly.

Icekiss
05-31-2003, 09:29 PM
the connection isn't the problem (DSL flat), but if I could just install the single package I would do so (less likely to cause problems). I just don't know how...

kaplanfx
05-31-2003, 10:05 PM
I'm not sure if this will do the trick but apt-get has a force command. You can try apt-get install -f without any package but that might break some dependancies, you could also try apt-get install -f kdict and that just might do the trick. I assume you can -s to simulate those too.

Icekiss
05-31-2003, 10:33 PM
the -f option is for fixing broken packages, not to force anything.
I could try to force dpkg to install the package, but for that I would need the .deb package on my system first. And apt-get won't fetch it, because of the broken packages...

Anyway, no one tried to stop me from installing kdict upgrading kde alongside, so I while give that a try.

Stephen
05-31-2003, 10:36 PM
the connection isn't the problem (DSL flat), but if I could just install the single package I would do so (less likely to cause problems). I just don't know how...

So which packages are conflicting when you run apt-get -s install kdict/unstable can you do without them if so remove them. Just simulate the removal of the packages and see if anything important is going to be removed. Could you post the output of the above apt-get so I can see.

Icekiss
05-31-2003, 10:50 PM
The output of your command is, that there are broken packages.

The command "apt-get -s -t unstable install kdict" does work however.
The output is already listed in this Thread (my second post in this thread).

The packages that are to be removed are:
cupsys-driver-gimpprint kalarmd klprfax libfam0 libkcal2 libkgantt0
libqt3-dev libqt3-helper libqt3-mt libvorbis0 nas-dev qt3-tools

That looks ok to me.
I just hope that nothing of the cool knoppix preconfiguration gets lost on the way.

Icekiss
05-31-2003, 11:41 PM
Well, I did try to do the actualizing of KDE, it downloaded ok, but presented me an error within the replacement process:
-------------------------------------------------------------------------------------
Fehler traten auf beim Bearbeiten von:
/var/cache/apt/archives/kdepim-libs_4%3a3.1.2-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------------------------------------------------------------------------------------
translation of the first line: "errors occured during the processing of:"
After that I was given back the command line...
I tried the proposed "apt-get -f install", but that wanted to remove the whole KDE!

I'm going to reboot my computer now, to see if everything still works ok...

EDIT: back again, seems like no harm is done

Icekiss
06-01-2003, 12:07 AM
By the way, when I'm trying to install kdict now, I got a HUGE amount of unmet dependencies:

root@terminus:/home/knoppix# apt-get -s install kdict
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
Sorry, but the following packages have unmet dependencies:
kappfinder: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
kcharselect: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
kcoloredit: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
kdeaddons-kfile-plugins: Depends: kdelibs4 (>= 4:3.1.1) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
kdemultimedia-kfile-plugins: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
Depends: libvorbis0a (>= 1.0.0) but it is not going to be installed
kdepim-libs: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
kdessh: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
kdict: Depends: kdelibs3 (>= 4:2.2.2-1) but it is not going to be installed
Depends: libqt2 (>= 3:2.3.1-1) but it is not going to be installed
khexedit: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
kmail: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libkdenetwork2 (>= 4:3.1.2) but 4:3.1.0-0woody2 is to be installed
Depends: libmimelib1 (>= 4:3.1.2) but 4:3.1.0-1woody2 is to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
ksim: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
kuickshow: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
libarts1-dev: Depends: libarts1 (= 1.1.2-1) but 1.1.0-0woody4 is to be installed
libartsc0-dev: Depends: libartsc0 (= 1.1.2-1) but 1.1.0-0woody4 is to be installed
libfam-dev: Depends: libfam0c102 (= 2.6.10-1) but it is not going to be installed
libkscan1: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
Depends: libsane (>= 1.0.11-3) but 1.0.11-2 is to be installed
Depends: libusb-0.1-4 (>= 1:0.1.7) but 1:0.1.6a-2.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

As I read it, apt-get states that all the pakets that where to be installed bear to low version numbers???

garyng
06-01-2003, 12:22 AM
I have seen this kind of annoying behaviour before about apt-get. There is some logic inside that actually prevent this kind of mixing stable/testing/unstable, at least not the way I expect it to work. Can you try uncomment both stable/testing in the sources.list ?

Icekiss
06-01-2003, 12:44 AM
stable, testing and unstable are all uncommented (sources.list ist still the one posted in the first post of this thread)
I decided for this sources.list after reading a whole thread debatting about it. (http://www.knoppix.net/forum/viewtopic.php?t=2086)
testing is used as a standard (apt.conf), but I had to specify "-t unstable" for kdict to get apt-get to work in the first place.
The weird thing is, that after breaking down once, apt-get won't let me continue (no matter if I specify "-t unstable" or not), but gives me a whole load of unmet dependencies that apparently weren't there before!
If it would simply repeatedly fail to install a single package, I could force that with dpkg, but so?

garyng
06-01-2003, 12:55 AM
ah, I don't know what I was typing. I was meant to say try comment out the stable/testing. the referring to 2.2.2 etc. was sourced from that two source. apt-get just got mixed up here and there, that is my experience with it.

people say apt-get rules, I think there is still lots of minor details(especially in this mixing environment) needs to be ironed out. Not as smart as I expected.

Icekiss
06-01-2003, 01:30 AM
Ok, I did outcomment them (leaving only the two unstable lines uncommented inside the sources.list), did apt-get update to inform apt-get about that change, and then typed the same "apt-get -s install kdict": Same huge list of unmet dependencies :(
And again, adding the "-t unstable" doesn't change a thing.

garyng
06-01-2003, 01:46 AM
nothing more I can help :(

I also found this apt-get thing very annoying, may be time to go gentoo, if you have the necessary hardware.

For now, I am satisfied with my Woody only environment, less conflicts to deal with(not that there isn't, just manageable).

RockMumbles
06-01-2003, 03:49 PM
kappfinder: Depends: kdelibs4 (>= 4:3.1.2) but 4:3.1.0-0woody5 is to be installed
Depends: libfam0c102 but it is not going to be installed
Depends: libqt3c102-mt (>= 3:3.1.1) but it is not going to be installed
this is what dpkg -l kappfinder gives me on my woody system:
ii kappfinder 3.1.1-0woody3 KDE Application Finder

note: I am using version 3.1.1-0woody3 of kappfinder and on your machine you are trying to install 3.1.0-0woody5 a lower version than I am running on my woody system. Something is wrong!

What does:
apt-get -s install kdebase
give for output?


But why the heck do I have to upgrade half my system?
I thought KDE 3 stays binary-compatible?
Not so for almost the entire KDE system!
One of the major headaches with KDE is that every minor version (3.0 - 3.1 etc) has to be almost completely reinstalled because a big chunk of the whole KDE system is changed.

Note: when(if) you do the kdebase upgrade (or apt-get dist-upgrade) you will run into some dkpg errors because of files being included in two packages, so when you get the dpkg foo-bar file is also in package blah error, see this post (http://www.knoppix.net/forum/viewtopic.php?t=1426#6423)

HTH

rock

Icekiss
06-01-2003, 05:12 PM
At the moment it would state "kdebase is already the newest version" :D
I went on playing with apt-get and dpkg and finale made the upgrade (though I temporarilly deconfigured my KDE by mistake :roll: )
Everything seems to run fine, except I somehow managed to crash the KDE help system (states "Could not start process Unable to create io-slave: klauncher said: Error loading 'kio_help'.)

So I can now say something about upgrading KDE on knoppix: It is important to reduce the sources.list to just two lines: either the two for testing or the two for unstable (I did it with unstable, so I can't really speak for the other choice)
Than you should do an "apt-get update" and then "apt-get install arts kdelibs kdebase kdegraphics kdeadmin kdemultimedia" or "apt-get install kde" (the second one fetches even more packages)
Hopefully apt-get doesn't see any problems beforehand and at least downloads all this stuff, cause I don't know how to get it effeciently onto your hard disk elsewhere (option --download-only strangely doesn't help)
When apt-get finally runs into a problem setting up the packages, this should be solveble using dpkg:
do "cd /var/cache/apt/archives"
dpkg expects the file name ([package]blah.deb) instead of the package-name.
But cause you're in the right directory you can simply type the packagename and let the console filll in the rest via tab
So do "dpkg -i [packagename][TAB]"
dpkg should tell you the name of another package that needs to be installed or removed first.
If it wants another package, repeat "dpkg -i [packagename][TAB]" for this package
If it wants another package removed, do "echo [package] deinstall | dpkg --set-selections"
Make sure that the steps you take make sence! "apt-cache show [package]" gives you information about a package.
When you finally managed to install the package correctly apt-get wasn't able to, you can rerun your old apt-get command, and it should procede.

Maybe this helps out, when someone faces the same problem I did.
One more hint: dont use dpkg's option "--auto-deconfigure" under any circumstances! It deconfigured all of my KDE without the sligthest hint.

I would try out my steps ones more to make sure they work, but sadly the hard disk of my laptop is to small for that (unlest I discard Windows :twisted: )

elmo
06-02-2003, 10:11 AM
As far as i know you have to update your source list - the ftp2 is old and should just read ftp as far as i can remember ...
try this:

# Stable
deb http://ftp.de.debian.org/pub/debian stable main contrib non-free
deb http://ftp.de.debian.org/pub/debian-non-US stable/non-US main contrib non-free
# Testing
deb http://ftp.de.debian.org/pub/debian testing main contrib non-free
deb http://ftp.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free
# Unstable
deb http://ftp.de.debian.org/debian unstable main contrib non-free
deb http://ftp.de.debian.org/debian-non-US unstable/non-US main contrib non-free

garyng
06-02-2003, 11:01 AM
sources.list is not the problem, the problem is in the apt-get logic.

I have tried to installed KDE 3.1.2 on a woody system without problem so long I specified those packages name found on kde.org rather than the kde meta package on debian(no such think on kde.org), then add a number of other packages(3.1.2) and remove a few. All went well. Today, I wanted to reinstall a removed package(3.1.2), and the unmet condition shows up. I am now unable to install any 3.1.2 package anymore, even I haven't changed one single line in sources.list.

Either there is some bug in the apt-get logic or there is some bug in how they specify the package dependency.

Icekiss
06-02-2003, 12:13 PM
It shouldn't matter if it reads ftp2 or ftp.
apt-get gets the lists, and they are up to date.

@garyng: Could you post your apt-get output as well as your sources.list?

I am curenntly reinstalling my knoppix, partly out of interrest if the kde upgrade really works out the way I described.
One point I have already to correct: It won't work with testing, only with unstable: testing still seems to use kdelibs3! *confused*

EDIT: Another point to correct: when rerunning apt-get after having corrected a problem manually, use "apt-get -f install"
If this run through without errors, execute your initial apt-get command ones more ("apt-get install kde")
actually the only dpkg-command that seemed necessary was "dpkg -i --force-overwrite" to install a package although it overwrites files of another package (kalarm did this on my computer)