LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 03-14-2004, 02:40 PM   #1
Boogieman
Member
 
Registered: Sep 2003
Distribution: Debian GNU/Linux
Posts: 35

Rep: Reputation: 15
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!
 
Old 03-14-2004, 02:43 PM   #2
Boogieman
Member
 
Registered: Sep 2003
Distribution: Debian GNU/Linux
Posts: 35

Original Poster
Rep: Reputation: 15
i tried with apt-get -f install but nothing happend
 
Old 03-14-2004, 06:08 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
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.
 
Old 03-14-2004, 08:05 PM   #4
Boogieman
Member
 
Registered: Sep 2003
Distribution: Debian GNU/Linux
Posts: 35

Original Poster
Rep: Reputation: 15
thanks i've reinstalled and works
 
Old 03-17-2004, 03:19 AM   #5
srle
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
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!
 
Old 03-17-2004, 05:57 PM   #6
adnans
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
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
 
Old 03-19-2004, 12:51 PM   #7
linux.eqed
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
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..
 
Old 04-12-2004, 10:19 AM   #8
nsyeow
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
this worked for me too
 
Old 05-13-2004, 03:18 PM   #9
Pollywog
LQ Newbie
 
Registered: Nov 2003
Distribution: Debian and Xandros
Posts: 13

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian unstable, hardware upgrade. xundas Linux - Hardware 2 08-02-2005 04:09 PM
apt-get upgrade UNSTABLE mistake ... bennethos Debian 1 01-01-2005 11:25 AM
apt query concerning unstable security.debian.org entry f0rmula Linux - Software 2 12-03-2004 03:01 PM
Progeny Debian Upgrade to Debian Unstable? mrmdls Debian 1 09-25-2003 08:57 AM
problems setting up libgtk2.0-common via apt-get on debian unstable f3lix Linux - Software 1 04-15-2003 01:41 PM


All times are GMT -5. The time now is 11:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration