Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-14-2004, 01:40 PM
|
#1
|
Member
Registered: Sep 2003
Distribution: Debian GNU/Linux
Posts: 35
Rep:
|
problems with apt-get upgrade in Debian unstable
Yesterday i do apt-get update and apt-get upgrade, after download every packages and when unpack and coonfigure, apt send to me the next error
~: apt-get upgrade
Reading Package Lists...
Building Dependency Tree...
Correcting dependencies... Done
The following extra packages will be installed:
libxft-dev
The following packages will be upgraded:
libxft-dev
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
145 not fully installed or removed.
Need to get 0B/60.2kB of archives.
After unpacking 4096B disk space will be freed.
(Reading database ... 75293 files and directories currently installed.)
Preparing to replace libxft-dev 2.1.2-5 (using .../libxft-dev_2.1.2-6_i386.deb) ...
diversion of /usr/X11R6/include/X11/Xft/Xft.h to /usr/X11R6/include/X11/Xft/Xft1.h by libxft-dev
Removing `diversion of /usr/X11R6/include/X11/Xft/Xft.h to /usr/X11R6/include/X11/Xft/Xft1.h by libxft-dev'
dpkg-divert: rename involves overwriting `/usr/X11R6/include/X11/Xft/Xft.h' with different file `/usr/X11R6/include/X11/Xft/Xft1.h', not allowed
dpkg: error processing /var/cache/apt/archives/libxft-dev_2.1.2-6_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libxft-dev_2.1.2-6_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
i don't know what to do!
|
|
|
03-14-2004, 01:43 PM
|
#2
|
Member
Registered: Sep 2003
Distribution: Debian GNU/Linux
Posts: 35
Original Poster
Rep:
|
i tried with apt-get -f install but nothing happend
|
|
|
03-14-2004, 05:08 PM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
I would say if you do not need the package then apt-get --purge remove libxft-dev if you do need it then do the purge and reinstall if all else fails then dpkg -i --force-overwrite /var/cache/apt/archives/libxft-dev_2.1.2-6_i386.deb and since you have had an error then dpkg --configure -a to configure any packages that may have been missed when the error happened.
|
|
|
03-14-2004, 07:05 PM
|
#4
|
Member
Registered: Sep 2003
Distribution: Debian GNU/Linux
Posts: 35
Original Poster
Rep:
|
thanks i've reinstalled and works
|
|
|
03-17-2004, 02:19 AM
|
#5
|
LQ Newbie
Registered: Mar 2004
Posts: 1
Rep:
|
I have same problem. Tried all sugested solutions, but:
-------------------------------------------------------------
apt-get --purge remove libxft-dev
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:
libpango1.0-dev: Depends: libxft-dev but it is not going to be installed
libqt3-mt-dev: Depends: libxft-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
-------------------------------------------------------------
dpkg -i --force-overwrite /var/cache/apt/archives/libxft-dev_2.1.2-6_i386.deb
(Reading database ... 114679 files and directories currently installed.)
Preparing to replace libxft-dev 2.1.2-5 (using .../libxft-dev_2.1.2-6_i386.deb) ...
diversion of /usr/X11R6/include/X11/Xft/Xft.h to /usr/X11R6/include/X11/Xft/Xft1.h by libxft-dev
Removing `diversion of /usr/X11R6/include/X11/Xft/Xft.h to /usr/X11R6/include/X11/Xft/Xft1.h by libxft-dev'
dpkg-divert: rename involves overwriting `/usr/X11R6/include/X11/Xft/Xft.h' with
different file `/usr/X11R6/include/X11/Xft/Xft1.h', not allowed
dpkg: error processing /var/cache/apt/archives/libxft-dev_2.1.2-6_i386.deb (--install):
subprocess pre-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libxft-dev_2.1.2-6_i386.deb
-------------------------------------------------------------
Have any suggestions?
Thanx a lot!
|
|
|
03-17-2004, 04:57 PM
|
#6
|
LQ Newbie
Registered: Mar 2004
Posts: 1
Rep:
|
Do the following:
apt-get --purge remove libxft-dev ...
(where ... add all packages which depend on libxft-dev)
This should clear the old libxft-dev and allow you to reinstall the new version without the silly error messages..
Good luck,
-adnans
|
|
|
03-19-2004, 11:51 AM
|
#7
|
LQ Newbie
Registered: Mar 2004
Posts: 1
Rep:
|
worked for me
I was a little nervous removing all those packages using
apt-get --purge remove libxft-dev libqt3-mt-dev libarts1-dev kdelibs4-dev
but I did it any way and re-installed them just fine.. whew..
|
|
|
04-12-2004, 09:19 AM
|
#8
|
LQ Newbie
Registered: Apr 2004
Posts: 1
Rep:
|
this worked for me too
|
|
|
05-13-2004, 02:18 PM
|
#9
|
LQ Newbie
Registered: Nov 2003
Distribution: Debian and Xandros
Posts: 13
Rep:
|
problem upgrading libxft-dev
Quote:
Originally posted by nsyeow
this worked for me too
|
It did not work for me, so this is what I did. I did a 'dpkg-deb --info libxft-dev_version_installed_but_needing_upgrade.deb' and used the resulting information to build a fake libxft-dev package having no dependencies. Then I installed that and then did 'apt-get install --reinstall libxft-dev' and that installed the actual libxft-dev package and removed the fake one. It seemed to be the only way I could get around the error. To make fake packages, use the "equivs" package.
|
|
|
All times are GMT -5. The time now is 10:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|