PDA

View Full Version : once again apt-get problem



DimGR
09-07-2004, 07:26 PM
here is what i get



Errors were encountered while processing:
/var/cache/apt/archives/libxt6_4.3.0.dfsg.1-7_i386.deb
/var/cache/apt/archives/xlibmesa-gl_4.3.0.dfsg.1-7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



i tried fixing these but i got problems



dpkg -i --force-overwrite /var/cache/apt/archives/libxt6_4.3.0.dfsg.1-7_i386.deb
(Reading database ... 157091 files and directories currently installed.)
Preparing to replace libxt6 4.3.0.dfsg.1-6 (using .../libxt6_4.3.0.dfsg.1-7_i386.deb) ...
Unpacking replacement libxt6 ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/X11R6/lib/X11/app-defaults', which is also in package xnview
dpkg: dependency problems prevent configuration of libxt6:
libxt6 depends on libice6 | xlibs (>> 4.1.0); however:
Package libice6 is not configured yet.
Package xlibs is not configured yet.
libxt6 depends on libsm6 | xlibs (>> 4.1.0); however:
Package libsm6 is not configured yet.
Package xlibs is not configured yet.
dpkg: error processing libxt6 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libxt6
root@PenguinGR:/home/dimgr# dpkg -i --force-overwrite /var/cache/apt/archives/xlibmesa-gl_4.3.0.dfsg.1-7_i386.deb
(Reading database ... 157091 files and directories currently installed.)
Preparing to replace xlibmesa-gl 4.3.0.dfsg.1-6 (using .../xlibmesa-gl_4.3.0.dfsg.1-7_i386.deb) ...
Unpacking replacement xlibmesa-gl ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/X11R6/lib/libGL.so.1.2', which is also in package fglrx
dpkg: dependency problems prevent configuration of xlibmesa-gl:
xlibmesa-gl depends on libxext6 | xlibs (>> 4.1.0); however:
Package libxext6 is not configured yet.
Package xlibs is not configured yet.
dpkg: error processing xlibmesa-gl (--install):
dependency problems - leaving unconfigured

mzilikazi
09-07-2004, 09:09 PM
apt-get install --fix-missing

CrashedAgain
09-09-2004, 06:10 AM
here is what i get



Errors were encountered while processing:
/var/cache/apt/archives/libxt6_4.3.0.dfsg.1-7_i386.deb
/var/cache/apt/archives/xlibmesa-gl_4.3.0.dfsg.1-7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



i tried fixing these but i got problems



dpkg -i --force-overwrite /var/cache/apt/archives/libxt6_4.3.0.dfsg.1-7_i386.deb
(Reading database ... 157091 files and directories currently installed.)
Preparing to replace libxt6 4.3.0.dfsg.1-6 (using .../libxt6_4.3.0.dfsg.1-7_i386.deb) ...
Unpacking replacement libxt6 ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/X11R6/lib/X11/app-defaults', which is also in package xnview
dpkg: dependency problems prevent configuration of libxt6:
libxt6 depends on libice6 | xlibs (>> 4.1.0); however:
Package libice6 is not configured yet.
Package xlibs is not configured yet.
libxt6 depends on libsm6 | xlibs (>> 4.1.0); however:
Package libsm6 is not configured yet.
Package xlibs is not configured yet.
dpkg: error processing libxt6 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libxt6
root@PenguinGR:/home/dimgr# dpkg -i --force-overwrite /var/cache/apt/archives/xlibmesa-gl_4.3.0.dfsg.1-7_i386.deb
(Reading database ... 157091 files and directories currently installed.)
Preparing to replace xlibmesa-gl 4.3.0.dfsg.1-6 (using .../xlibmesa-gl_4.3.0.dfsg.1-7_i386.deb) ...
Unpacking replacement xlibmesa-gl ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/X11R6/lib/libGL.so.1.2', which is also in package fglrx
dpkg: dependency problems prevent configuration of xlibmesa-gl:
xlibmesa-gl depends on libxext6 | xlibs (>> 4.1.0); however:
Package libxext6 is not configured yet.
Package xlibs is not configured yet.
dpkg: error processing xlibmesa-gl (--install):
dependency problems - leaving unconfigured

In my experience apt-get is seldom able to solve it's own problems. dpkg --force-overwrite is sometimes more effective but usually I have had to resort to remove/reinstall packages to clear this sort of problem. Some times this doesn't work either because apt-get (or better, dpkg -P) removes so much else it's not practical.
It looks like the problem is with fglrx so I would try remove fglrx then reinstall it afterwords. I tried apt-get -s remove fglrx to see what would happen but it's not on my system. .

mzilikazi
09-09-2004, 12:32 PM
In my experience apt-get is seldom able to solve it's own problems. .

Really? I have no problems with apt.

champagnemojo
09-09-2004, 03:18 PM
I've found that when you use dpkg and --force-overwrite it's a good idea to do all packages that errored at once.

In other words:

dpkg -i --force-overwrite /var/cache/apt/archives/libxt6_4.3.0.dfsg.1-7_i386.deb /var/cache/apt/archives/xlibmesa-gl_4.3.0.dfsg.1-7_i386.deb

rather than running each one one at a time. They may well depend on each other or one may be a dependency for other packages that the other one depends upon.

CrashedAgain
09-11-2004, 05:08 AM
In my experience apt-get is seldom able to solve it's own problems. .

Really? I have no problems with apt.

Here's a typical one:


apt-get -t unstable install kdemultimedia-kio-plugins
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
jackd kdelibs-bin kdelibs-data kdelibs4 libarts1 libarts1-dev libartsc0 libartsc0-dev libidn11 libjack0.80.0-0
libjack0.80.0-dev libkcddb1 libopenexr2 libperl5.8 libqt3-compat-headers libqt3-headers libqt3-mt-dev libqt3c102-mt perl
perl-base perl-modules perl-suid qt3-dev-tools
Suggested packages:
qjackctl jack-tools meterbridge libjackasyn0 libqt3-i18n qt3-doc libqt3-mt-mysql libqt3-mt-psql libqt3-mt-odbc
libqt3c102-mt-psql libqt3c102-mt-mysql libqt3c102-mt-odbc perl-doc libterm-readline-perl-perl
The following NEW packages will be installed:
jackd kdemultimedia-kio-plugins libjack0.80.0-0 libjack0.80.0-dev libopenexr2 libperl5.8 perl-suid
The following held packages will be changed:
libqt3-mt-dev
The following packages will be upgraded:
kdelibs-bin kdelibs-data kdelibs4 libarts1 libarts1-dev libartsc0 libartsc0-dev libidn11 libkcddb1 libqt3-compat-headers
libqt3-headers libqt3-mt-dev libqt3c102-mt perl perl-base perl-modules qt3-dev-tools
17 upgraded, 7 newly installed, 0 to remove and 672 not upgraded.
Need to get 29.5MB/29.6MB of archives.
After unpacking 9310kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.de.debian.org unstable/main perl-modules 5.8.4-2.2 [2182kB]
<edited for brevity>
Preparing to replace perl-modules 5.8.4-2 (using .../perl-modules_5.8.4-2.2_all.deb) ...
Unpacking replacement perl-modules ...
<edited for brevity>
Replacing files in old package kcontrol ...
dpkg: error processing /var/cache/apt/archives/kdelibs-data_4%3a3.3.0-1.1_all.deb (--unpack):
trying to overwrite `/usr/share/mimelnk/application/vnd.stardivision.calc.desktop', which is also in package openoffice-de-en
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace kdelibs4 4:3.2.3-4 (using .../kdelibs4_4%3a3.3.0-1.1_i386.deb) ...
Unpacking replacement kdelibs4 ...
<edited again>
Unpacking kdemultimedia-kio-plugins (from .../kdemultimedia-kio-plugins_4%3a3.3.0-1_i386.deb) ...
Errors were encountered while processing:
/var/cache/apt/archives/kdelibs-data_4%3a3.3.0-1.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


So now I have:



root@0[knoppix]# apt-get check
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.3.0) but 4:3.2.3-4 is installed
E: Unmet dependencies. Try using -f.


which apt-get is unable to solve:


root@0[knoppix]# apt-get -t unstable -f install kdelibs4
Reading Package Lists... Done
Building Dependency Tree... Done
kdelibs4 is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
kdelibs4: Depends: kdelibs-data (>= 4:3.3.0) but 4:3.2.3-4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

root@0[knoppix]# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
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 566 not upgraded.
22 not fully installed or removed.
Need to get 0B/7045kB of archives.
After unpacking 2212kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 81251 files and directories currently installed.)
Preparing to replace kdelibs-data 4:3.2.3-4 (using .../kdelibs-data_4%3a3.3.0-1.1_all.deb) ...
Unpacking replacement kdelibs-data ...
Replacing files in old package kcontrol ...
dpkg: error processing /var/cache/apt/archives/kdelibs-data_4%3a3.3.0-1.1_all.deb (--unpack):
trying to overwrite `/usr/share/mimelnk/application/vnd.stardivision.calc.desktop', which is also in package openoffice-de-en
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/kdelibs-data_4%3a3.3.0-1.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Solved with dpkg --force-overwrite:


root@0[knoppix]# dpkg --force-overwrite -i /var/cache/apt/archives/kdelibs-data_4%3a3.3.0-1.1_all.deb
(Reading database ... 81251 files and directories currently installed.)
Preparing to replace kdelibs-data 4:3.2.3-4 (using .../kdelibs-data_4%3a3.3.0-1.1_all.deb) ...
Unpacking replacement kdelibs-data ...
Replacing files in old package kcontrol ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.stardivision.calc.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.stardivision.chart.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.stardivision.draw.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.stardivision.impress.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.stardivision.math.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.stardivision.writer-global.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.stardivision.writer.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.sun.xml.calc.template.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.sun.xml.draw.template.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.sun.xml.impress.template.desktop', which is also in package openoffice-de-en
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/share/mimelnk/application/vnd.sun.xml.writer.template.desktop', which is also in package openoffice-de-en
Setting up kdelibs-data (3.3.0-1.1) ...
Installing new version of config file /etc/kde3/katesyntaxhighlightingrc ...
Installing new version of config file /etc/kde3/kdebug.areas ...
Installing new version of config file /etc/kde3/ksslcalist ...
root@0[knoppix]# apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done


It could also be solved by removing/reinstalling openoffice.

Even so, apt-get &/or dpkg is easily the best package management system available & is one of the big reasons I have returned to Knoppix after trying Mandrake.
I had Mandy 9.2, OK system, everything worked right off but then KDE 3.2 came out. It took me about a month to get it installed, I tried compiling from sources with out success & was only able to upgrade it after somebody posted mdk rpms for kde 3.2 which I could use; even then I had to completely remove 3.1 & install 3.2 on a clean system. With apt-get you can do it bit by bit.
Then it's just about impossible to keep Mandy up to date, with Mdk 10 out nobody is going to make rpms for 9.2 so you are on your own. No such problems with Debian, a .deb is a .deb regardless of system version.

mzilikazi
09-11-2004, 08:35 PM
Solved with dpkg --force-overwrite:


Sure that's fairly common. apt let's you decide to overwrite a file instead of doing it of its own accord which I feel is a good thing. Now I've seen lots of people complain about getting the unstable verison of KDE installed. Don't use it myself so I dunno........It's quite possible however that not all of the packages for KDE (and by george there are alot of em!) are in unstable yet so naturally you have to either build them from source yourself or wait until the package maintainers get all of the packages finished.

A. Jorge Garcia
09-12-2004, 12:54 AM
I'm done with apt-get. I was always having problems with the sources.list file and found apt-spy helpful for a while.

Now, I just look for whatever package I need on http://packages.debian.org and downloaded it and install it with kpackage!

Regards,
AJG

CrashedAgain
09-12-2004, 04:24 AM
Solved with dpkg --force-overwrite:


Sure that's fairly common. apt let's you decide to overwrite a file instead of doing it of its own accord which I feel is a good thing....

But the point is that apt doesn't have an option to let you overwrite the file. None of the 'fixes' available from apt would solve the problem, I had to go to dpkg to do it.
Apt is just a front end for dpkg anyway.


I'm done with apt-get. I was always having problems with the sources.list file and found apt-spy helpful for a while.

Now, I just look for whatever package I need on http://packages.debian.org and downloaded it and install it with kpackage!

Regards,
AJG

kpackage also uses dpkg and it still depends on your sources.list file which you must keep up to date (tip from somewhere in these forums...use 'dselect update' instead of 'apt-get update', dselect & apt maintain separate data file, dselect update keeps them in sych but apt-get update doesn't).

If you run into a conflict problem such as the one above, you will probably still have to fix it manually, which goes back to my original statement,"apt is seldom able to fix it's own problems".

Kpackage more than just a front-end for dpkg, however as it's actually a reasonably capable package manager for rpm's. I use it a lot, primarily as a package browser 'cause it also gives descriptions of the packages. I have also tried synaptic but haven't found it to be much advantage over kpackage.

As for KDE packages, yes there are a lot of them and many are just alternatives to others...noatun & kaboodle as alternatives to xmms for instance. So far I have been using unstable without any problems. One of the real advantages to apt-get & debian KDE packages is that you can install & remove 'pieces' of the package, for instance if you want kpat you don't have to take the whole kdegames set just to get it. Not so with Mandrake, it was all or nothing. Important to me because I have a limited space system.