Help me fix this problem!

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
Hi,

When I try to do an apt-get install I get the following problem. How can I fix it?


The following extra packages will be installed:
kdelibs-data
The following packages will be upgraded
kdelibs-data
1 upgraded, 0 newly installed, 0 to remove and 290 not upgraded.
181 not fully installed or removed.
Need to get 0B/5107kB of archives.
After unpacking 4096B of additional disk space will be used.
Do you want to continue? [Y/n]
Reading changelogs... Done
(Reading database ... 88953 files and directories currently installed.)
Preparing to replace kdelibs-data 4:3.1.4-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)
Preparing to replace i2c-2.4.20-3-686 2.7.0-4 (using .../i2c-2.4.20-3-686_2.7.0-4_i386.deb) ...
Unpacking replacement i2c-2.4.20-3-686 ...
cat: /etc/modprobe.d/arch/generic: No such file or directory
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
cat: /etc/modprobe.d/arch/generic: No such file or directory
dpkg: error processing /var/cache/apt/archives/i2c-2.4.20-3-686_2.7.0-4_i386.deb (--unpack):
subprocess new post-removal script returned error exit status 1
cat: /etc/modprobe.d/arch/generic: No such file or directory
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/kdelibs-data_4%3a3.1.4-2_all.deb
/var/cache/apt/archives/i2c-2.4.20-3-686_2.7.0-4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)




Thanks for the help,
pitupepito
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
I am no debian expert or anything, but you can try to:
apt-get clean
apt-get update
apt-get -f install
apt-get upgrade

maybe try
apt-get dist-upgrade (be carefull)
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Something definitely looks broken, though maybe not on your end. Are you doing any funny stuff with packages like pinning or backports? Any packages you're holding or forcing? What's in your sources.list? If this is in Sid, it may just be some temporary breakage. Maybe in Sarge, too, but you don't usually see that kind of thing there.
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
didn't work, I want to be a little cautious using apt-get distupgrade since I am not the only user in this computer

thanks,
any more suggestions
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
I am not doing any funny stuff with packages like pinning or backports. This is my sources.list

deb http://http.us.debian.org/debian unstable main contrib non-free
deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free

deb http://security.debian.org/ testing/updates main
deb http://http.us.debian.org/debian testing main contrib non-free
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
deb http://marillat.free.fr/ unstable main

#deb http://shakti.ath.cx/debian/kde3.1/ ./

#deb http://www.wh9.tu-dresden.de/kde3/karolina/ ./
#deb ftp://ftp.oleane.net/pub/java-linux/debian woody non-free

#The following line is to get java
#deb http://www.tux.org/pub/java/debian woody main non-free

#the following line is for mythtv
deb http://dijkstra.csh.rit.edu:8088/~mdz/debian unstable mythtv

#the following source is for kahakai
#deb http://www.ertius.org/packages/kahakai/ ./

#the following sources are for freevo
deb http://freevo.sourceforge.net/debian unstable main

#the following one is for cinelerra
deb http://www.kiberpipa.org/~minmax/cinelerra/builds/sid/ ./
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Originally posted by: pitupepito2000
This is my sources.list

deb http://http.us.debian.org/debian unstable main contrib non-free
deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free

deb http://security.debian.org/ testing/updates main
deb http://http.us.debian.org/debian testing main contrib non-free
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
I'm not certain this is the problem, but this make things complicated. You've got sources for both testing (Sarge) and unstable (Sid) in sources.list. When packages change names, this is likely to screw things up pretty hard. If you want to run Sid, remove the "testing" lines. If you want Sarge, remove the "unstable" lines - though it's probably too late to do that now. I think you can, in theory, keep all of it. But it definitely makes problems harder to unravel.

If that doesn't help at all, you may want to ask this question on debian-user. This looks like some kind of release issue to me, and Colin and the other release-savvy people are a lot more familiar with the issues than people around here.
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
I tried the dist-upgrade option and it didn't work because it needs the packages fixed first.

Help please,
pitupepito
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Whoa, cowboy... I didn't notice this before:

181 not fully installed or removed.

That means you've got 181 packages that aren't properly installed. That's really not good. I don't know what happened, but you're system is pretty deeply screwed. Also:

1 upgraded, 0 newly installed, 0 to remove and 290 not upgraded.

That means 290 packages are upgradeable, but haven't been upgraded yet. Also generally not a good idea unless you know exactly why you're doing it. You want everything to be up to date to avoid version conflicts.

Maybe you can fix things from your current situation, but I'm not going to try to do so. I would recommend starting over fresh. I know you want KDE and nice graphical stuff, but make sure your system is updated and coherent for all the basic shell packages before you get X11 and KDE. Install Debian Woody, skip tasksel and dselect at the end of installation. Reboot and edit sources.list to include the base unstable (Sid) sources instead of stable (Woody). Do an apt-get update and dselect from there. Download, install, and troubleshoot the unstable packages before you go on and install X11 and KDE.


 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
Ok here is the story.

Everything started once I had installed gkrellm and I noticed that I didn't have any sensors available and I needed to upgrade the kernel, when I tried to do so through apt-get the package was broken. I could still packages and stuff like that without problem. About a week or two ago, the kde-libs problem showed up, and since then I haven't been able to install programs at all.

I have kde not for me but for my wife who likes it. I use http://kahakai.sourceforge.net/index.php which is a great wm. I wouldn't want to start from scratch since school has me buried with work and I don't want to have to back up data or stuff like that since I am busy.

Please help me,
pitupepito
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
I see 2 problems.

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

K3b is a cd burning program. (looked it up in dselect)


Preparing to replace i2c-2.4.20-3-686 2.7.0-4 (using .../i2c-2.4.20-3-686_2.7.0-4_i386.deb) ...
Unpacking replacement i2c-2.4.20-3-686 ...
cat: /etc/modprobe.d/arch/generic: No such file or directory

the old package or the new package is broken.

I see 2 problems:

Errors were encountered while processing:
/var/cache/apt/archives/kdelibs-data_4%3a3.1.4-2_all.deb
/var/cache/apt/archives/i2c-2.4.20-3-686_2.7.0-4_i386.deb


Probably 2 different things. 2 different problems that happenned to happen at the same time. Like hardware problems were you have a capaciter with a solder that's bad and has to high of resistance and a bad stick of memory. You can spend hours pulling your hair out to figure that out.

These have to be caused by broken packages. Try to uninstall k3b and the old i2c stuff. The 260 or so packages that have not been upgraded probably have kdelib as a dependant.

I'd get rid of i2c for now until they fix it. Contantact the maintainer or something if you want, but check out the bug reports first if you can.

Get rid of k3d, hopefully it won't take a bunch of programs with it.

See if that fixes it.
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
drag you are the man!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I don't know why I couldn't figure it out. I should've looked closer at the error messages. I did what you told me first through apt-get but it wouldn't do anything because of the kdelibs problem, so I tried to use dpkg to remove k3b and it worked. I also tried to remove the i2c-2.420 package, but it is not installed. After removing k3b I did an apt-get update and apt-get upgrade and so far it is working. After 20 minutes which is how long it is going to take apt-get upgrade to download the 290 packages I will let you know how it go.

Thanks a lot,
pitupepito
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
Didn't work. After 25 mintues of waiting for the programs to be downloaded this is the output of apt-get upgrade. I don't know how to get rid of the i2c package. Any suggestions





(Reading database ... 89981 files and directories currently installed.)
Preparing to replace i2c-2.4.20-3-686 2.7.0-4 (using .../i2c-2.4.20-3-686_2.7.0-4_i386.deb) ...
Unpacking replacement i2c-2.4.20-3-686 ...
cat: /etc/modprobe.d//dev/null: No such file or directory
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
cat: /etc/modprobe.d//dev/null: No such file or directory
dpkg: error processing /var/cache/apt/archives/i2c-2.4.20-3-686_2.7.0-4_i386.deb (--unpack):
subprocess new post-removal script returned error exit status 1
cat: /etc/modprobe.d//dev/null: No such file or directory
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/i2c-2.4.20-3-686_2.7.0-4_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Please help me,
pitupepito

:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
I don't see any bugs listed for i2c right now, and David, the maintainer, is generally very on top of things. Since i2c is a kernel-related package, on which parts of KDE depend, I suspect that the first errors you got a long time ago with the kernel package are at the root of the current ones. If you can fix your kernel, the rest might fall into place. Might. What's the output of

COLUMNS=120 dpkg -l | grep kernel

?
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
The output of COLUMNS=120 dpkg -l | grep kernel is:

ii fglrx-kernel-2.4.20 2.5.1-2+10.00.Custom ATI binary kernel module for Linux 2.4.20
ii fglrx-kernel-src 2.5.1-2 XFree86 display driver for the ATI graphics accelerators
ii iptables 1.2.8-4 IP packet filter administration tools for 2.4.4+ kernels
rc kcmlinuz 3.1.0+rel+kl-20030223-1 KDE application: Frontend for the Linux kernel configuration
ii kernel-headers-2.4.20 10.00.Custom Header files related to Linux kernel version 2.4.20
ii kernel-image-2.4.20 10.00.Custom Linux kernel binary image for version 2.4.20.
iU kernel-image-2.4.20-3-68 2.4.20-9 Linux kernel image for version 2.4.20 on PPro/Celeron/PII/PIII/P
iU kernel-package 8.066 A utility for building Linux kernel related Debian packages.
ii kernel-source-2.4.20 2.4.20-11 Linux kernel source for version 2.4.20 with Debian patches
ii libapm1 3.2.0-6 Library for interacting with APM driver in kernel
ii lirc-modules-2.4.20 0.6.6-5+10.00.Custom Linux Infra-red Remote Control support (binary kernel modules)
ii lirc-modules-source 0.6.6-5 Linux Infra-red Remote Control support (kernel modules)
iU module-init-tools 0.9.15-pre2-2 tools for managing Linux kernel modules
ii pciutils 2.1.11-2 Linux PCI Utilities (for 2.[12345].x kernels)
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
First off, if you haven't modified your sources.list as above, you need to do that before anything else. Ditch the testing lines and stick with unstable. Do an apt-get clean and apt-get update to get your cache in a consistent state.

Now, the packages that directly touch the kernel are:

ii fglrx-kernel-2.4.20 2.5.1-2+10.00.Custom ATI binary kernel module for Linux 2.4.20
ii fglrx-kernel-src 2.5.1-2 XFree86 display driver for the ATI graphics accelerators
ii kernel-headers-2.4.20 10.00.Custom Header files related to Linux kernel version 2.4.20
ii kernel-image-2.4.20 10.00.Custom Linux kernel binary image for version 2.4.20.
iU kernel-image-2.4.20-3-68 2.4.20-9 Linux kernel image for version 2.4.20 on PPro/Celeron/PII/PIII/P
iU kernel-package 8.066 A utility for building Linux kernel related Debian packages.
ii kernel-source-2.4.20 2.4.20-11 Linux kernel source for version 2.4.20 with Debian patches
ii lirc-modules-2.4.20 0.6.6-5+10.00.Custom Linux Infra-red Remote Control support (binary kernel modules)
ii lirc-modules-source 0.6.6-5 Linux Infra-red Remote Control support (kernel modules)
iU module-init-tools 0.9.15-pre2-2 tools for managing Linux kernel modules


Clearly a problem here are the two kernel-image packages, one left unconfigured (U). The first looks like a custom package you made with make-kpkg. The second is a Debian prepackaged kernel. But I think the key issue for you is module-init-tools. That's the 2.6-style set of module tools, replacing the old modutils. The errors you had before about /etc/modprobe.d are caused by the problems with that package. I'm guessing it won't just cleanly install at this point, but I'm not sure why. What do you get from doing an apt-get install module-init-tools ? I'm pretty sure it will die with an error, but the error may be illuminating.
 

pitupepito2000

Golden Member
Aug 2, 2002
1,181
0
0
Hi,

I removed the testing sources from sources.list as cleverhandle suggestd, and then I did an apt-get clean, and apt-get upgrade. When I tried to install any programs at al or do an "apt-get upgrade" I get the following error:

Reading Package Lists... Done
Building Dependency Tree... Done
E: The package i2c-2.4.20-3-686 needs to be reinstalled, but I can't find an archive for it.


Please help me,
pitupepito
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Gah... this gets nastier and nastier. Apt can't find that i2c because it's old - current Sid version is 2.4.22. You can't install the new i2c without a new 2.4.22 kernel. If you install a new kernel, you need a custom one otherwise you'll blow away your ATI drivers. But you probably can't build a new custom kernel because kernel-package is broken.

Dude, your box is hosed. Sorry.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
I donno, try the
apt-get -f install
command to "fix" install....

if that doesn't work you can try installing the package manually using dpkg.

you can get a copy of that deb package file here

(I think that's your version)

since apt-get is just a front end for dpkg, then maybe this will bypass the retardness. See the dpkg man file.
dpkg --install filename.deb

then try uninstalling it. or something.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
maybe it's time to hit up the debian irc support channels (see debian's website) or maybe ask on the mailing list.... hopefully it's a interesting enough problem to get a smart somebody's attention quickly.