PDA

View Full Version : problems with apt-get



rozen
11-12-2003, 03:33 AM
I am in the process of moving from Mandrake 9.2 to Knoppix-Debian and it is a struggle.

I am using the /etc/apt/sources.list that was installed on my hard disk. For some reason, Kworldclock was not installed. So I entered the command:

apt-get install kdetoys

it installed kworldclock as desired but there was a problem with kdelib4.

Now whenever I execute the command:

apt-get upgrade

I get the response:

Bash ajax rozen [~] ->sudo apt-get upgrade
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 installed
libqt3-mt-dev: Depends: libxcursor-dev but it is not installed
E: Unmet dependencies. Try using -f.


Bash ajax rozen [~] ->sudo 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 156 not upgraded.
21 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 ... 122711 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 ...
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)

How do I move on so that I can continue to use apt-get to do upgrades for me?

Stephen
11-12-2003, 04:40 AM
First cd /var/cache/apt/archives then as root dpkg -i --force-overwrite kdelibs-data_4%3a3.1.4-2_all.deb libxcursor-dev_1.0.2-2_i386.deb. BTW this has been asked and answered a few times already a quick search would have led to the solution.