LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt-get error? (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-error-315041/)

newbieX 04-19-2005 05:45 PM

apt-get error?
 
I am working on knoppix 3.6 and i have done something wrong whith apt-get. I was trying to get mplayer-k7 but it gave me an error saying:

Reading Package Lists... Done
Building Dependency Tree... Done
mplayer-k7 is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
mplayer-k7: Depends: mplayer-k6 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


then when i run apt-get -f install i get even more error saying:

Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
mplayer-k6
Suggested packages:
w32codecs libdvdcss mplayer-doc
Recommended packages:
mplayer-fonts
The following NEW packages will be installed:
mplayer-k6
0 upgraded, 1 newly installed, 0 to remove and 788 not upgraded.
39 not fully installed or removed.
Need to get 0B/2467kB of archives.
After unpacking 5128kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 108725 files and directories currently installed.)
Unpacking mplayer-k6 (from .../mplayer-k6_1%3a1.0-pre6cvs20050409-0sarge0.1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/mplayer-k6_1%3a1.0-pre6cvs20050409-0sarge0.1_i386.deb (--unpack):
trying to overwrite `/etc/mplayer/mplayer.conf', which is also in package mplayer-codec
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mplayer-k6_1%3a1.0-pre6cvs20050409-0sarge0.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have allready deleted the

/var/cache/apt/archives/mplayer-k6_1%3a1.0-pre6cvs20050409-0sarge0.1_i386.deb

file and the

/etc/mplayer/mplayer.conf'

how can i fix this, please anyone?

Emerson 04-19-2005 10:00 PM

You have 39 packages not fully installed or removed.

Use dpkg to remove these half-installed packages and try again.

newbieX 04-20-2005 05:56 AM

I am a newbie in linux so could u be more precise about how to remove these packages.

Emerson 04-20-2005 07:41 AM

'dpkg --purge packagename' will probably do. For more otions read 'man dpkg'

foo_bar_foo 04-20-2005 01:36 PM

all i can say is that when apt goes awol like that the sollution is sometimes unique to the situation and not always logical. if you can't figure it out look on google for someoneelse who has

first things to try i think are

apt-get remove mplayer-k7
apt-get --purge remove mplayer-k7

dpkg -r exactfilename_of_ mplayer-k7.deb
dpkg -r --purge exactfilename_of_ mplayer-k7.deb


All times are GMT -5. The time now is 10:42 AM.