LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Thread Tools Search this Thread
Old 06-19-2004, 09:37 AM   #1
fidlet
LQ Newbie
 
Registered: Jun 2004
Posts: 7
Thanked: 0
apt-get upgrade error code (1)


[Log in to get rid of this advertisement]
I have unstable woody (?) installed on my iBook, and I recently tried apt-get upgrading the system (first through synaptic package manager). It didn't successfully install everything, and then I tried rebooting (to see if anything screwed up)...and, sure enough, gdm couldn't load up, nor x. I then tried apt-get upgrade again, but got an error. I tried apt-get -f upgrade (whatever THAT does)...it downloaded everything, and then when it tried to install the packages I got the same error, which is the following:

While processing: /var/cache/apt/archives/libxft-dev-2.1.2.6_powerpc.deb
E: Sup-process /usr/bin/dpkg returned an error code (1)

After rebooting, I was able to run Window Manager (through "startx")...but certain programs wouldn't run (like Mozilla).

What the heck's going on? And how can I fix this?

p.s. And every two minutes it tries to run gdm (even with Windowmaker running)...and real pain - how can I temporarily disable that?
fidlet is offline     Reply With Quote
Old 06-19-2004, 10:33 AM   #2
macondo
Senior Member
 
Registered: Jul 2003
Location: Panama
Distribution: Debian Sid
Posts: 1,012
Thanked: 0
"I have unstable woody (?) installed on my iBook"

woody=stable
sarge=testing
sid=unstable

which one is it?
Please take the time and go to www.debian.org and read about Debian's basics

".and I recently tried apt-get upgrading the system (first through synaptic package manager)."

Did you do:
apt-get update
apt-get upgrade

If not, it is not going to work. Please read the APT-HOWTO at:
http://www.debian.org/doc/manuals/ap.../index.en.html

"It didn't successfully install everything, and then I tried rebooting (to see if anything screwed up)...and, sure enough, gdm couldn't load up, nor x. I then tried apt-get upgrade again, but got an error. I tried apt-get -f upgrade (whatever THAT does)...it downloaded everything, and then when it tried to install the packages I got the same error, which is the following:"
<snip>

apt-get update
apt-get -f install
macondo is offline     Reply With Quote
Old 06-19-2004, 10:40 AM   #3
fidlet
LQ Newbie
 
Registered: Jun 2004
Posts: 7
Thanked: 0

Original Poster
I know that it's the unstable version...I just couldn't remember if that was woody or not.

And I tried all of those things...when I try apt-get -f install I get the same sort of error...same with apt-get upgrade (even if I apt-get update beforehand).
fidlet is offline     Reply With Quote
Old 06-19-2004, 05:57 PM   #4
fidlet
LQ Newbie
 
Registered: Jun 2004
Posts: 7
Thanked: 0

Original Poster
Update to my problem: I ran "dpkg --configure -a" (I'm not sure what that does...I found this suggestion in a google search). It pulled up two error messages at the end - it couldn't configure "fam" or "gnome-commander" - I don't know how problematic that is. Anyway, after I ran it, gdm and gnome started working again, but I SITLL can't update or install anything (I think I've tried 'apt-get -f install' and 'apt-get upgrade"). I get the same error messages.
fidlet is offline     Reply With Quote
Old 06-19-2004, 06:04 PM   #5
fidlet
LQ Newbie
 
Registered: Jun 2004
Posts: 7
Thanked: 0

Original Poster
I don't know if this is helpful, but here is the entire output I get when I run "apt-get -f install":

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 390 not upgraded.
2 not fully installed or removed.
Need to get 0B/64.6kB of archives.
After unpacking 4096B disk space will be freed.
Do you want to continue? [Y/n] (Reading database ... 124828 files and directories currently installed.)
Preparing to replace libxft-dev 2.1.2-5 (using .../libxft-dev_2.1.2-6_powerpc.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_powerpc.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_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
fidlet is offline     Reply With Quote
Old 06-19-2004, 06:50 PM   #6
comp12345
Member
 
Registered: Feb 2004
Posts: 467
Thanked: 0
It is a reported bug,
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=237509

A solution posted was to (re)move
Code:
/usr/X11R6/include/X11/Xft/Xft1.h
/usr/X11R6/include/X11/Xft/Xft
to /tmp, and then do an
Code:
apt-get -f install
to upgrade the package.
comp12345 is offline     Reply With Quote
Old 06-19-2004, 07:50 PM   #7
fidlet
LQ Newbie
 
Registered: Jun 2004
Posts: 7
Thanked: 0

Original Poster
That worked! Thanks a lot!
fidlet is offline     Reply With Quote

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
Apt Upgrade Error BittaBrotha MEPIS 6 11-26-2005 02:27 AM
Apt-get upgrade error Quietus25 Linux - Newbie 3 07-11-2005 08:02 PM
error after apt-get upgrade... twkz Debian 10 07-04-2005 10:28 AM
Error on 'apt-get upgrade' slackmagic Linux - Software 1 05-04-2004 03:54 PM
error with apt-get upgrade bronko Debian 6 01-07-2004 07:10 PM


All times are GMT -5. The time now is 04:14 PM.

Main Menu
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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration