LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-28-2004, 10:40 AM   #1
littlemidget
Member
 
Registered: Aug 2004
Location: Oslo, Norway.
Distribution: Debian Sarge
Posts: 171

Rep: Reputation: 30
apt-get upgrade - troubles.


I'm having some problems with apt-get upgrade:
Code:
hehelol:~# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
  g++-3.3 gcc-3.3 libstdc++5-3.3-dev
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 0B/4259kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 54732 files and directories currently installed.)
Preparing to replace gcc-3.3 1:3.3.4-6sarge1 (using .../gcc-3.3_1%3a3.3.4-6sarge1.1_i386.deb) ...
Unpacking replacement gcc-3.3 ...
dpkg: error processing /var/cache/apt/archives/gcc-3.3_1%3a3.3.4-6sarge1.1_i386.deb (--unpack):
 trying to overwrite `/usr/share/doc/gcc-3.3-base/changelog.Debian.gz', which is also in package gcc-3.3-base
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libstdc++5-3.3-dev 1:3.3.4-6sarge1 (using .../libstdc++5-3.3-dev_1%3a3.3.4-6sarge1.1_i386.deb) ...
Unpacking replacement libstdc++5-3.3-dev ...
dpkg: error processing /var/cache/apt/archives/libstdc++5-3.3-dev_1%3a3.3.4-6sarge1.1_i386.deb (--unpack):
 trying to overwrite `/usr/share/doc/libstdc++5/changelog.Debian.gz', which is also in package libstdc++5
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace g++-3.3 1:3.3.4-6sarge1 (using .../g++-3.3_1%3a3.3.4-6sarge1.1_i386.deb) ...
Unpacking replacement g++-3.3 ...
dpkg: error processing /var/cache/apt/archives/g++-3.3_1%3a3.3.4-6sarge1.1_i386.deb (--unpack):
 trying to overwrite `/usr/share/doc/gcc-3.3-base/changelog.Debian.gz', which is also in package gcc-3.3-base
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/gcc-3.3_1%3a3.3.4-6sarge1.1_i386.deb
 /var/cache/apt/archives/libstdc++5-3.3-dev_1%3a3.3.4-6sarge1.1_i386.deb
 /var/cache/apt/archives/g++-3.3_1%3a3.3.4-6sarge1.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Does anyone know how to fix this?..
 
Old 08-28-2004, 11:15 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
You can force the overwrite for the packages causing the problem. Try:
Code:
dpkg -i --force-overwrite /var/cache/apt/archives/gcc-3.3_1%3a3.3.4-6sarge1.1_i386.deb
dpkg --configure -a
You can repeat the above command with the other two packages giving you problems. Then "apt-get upgrade" to see if anything else is broken.

Last edited by m_yates; 08-28-2004 at 11:17 AM.
 
Old 08-28-2004, 11:19 AM   #3
littlemidget
Member
 
Registered: Aug 2004
Location: Oslo, Norway.
Distribution: Debian Sarge
Posts: 171

Original Poster
Rep: Reputation: 30
I tried that, and got this:

Code:
hehelol:~# dpkg -i --force-overwrite /var/cache/apt/archives/gcc-3.3_1%3a3.3.4-6sarge1.1_i386.deb
(Reading database ... 54732 files and directories currently installed.)
Preparing to replace gcc-3.3 1:3.3.4-6sarge1 (using .../gcc-3.3_1%3a3.3.4-6sarge1.1_i386.deb) ...
Unpacking replacement gcc-3.3 ...
dpkg - warning, overriding problem because --force enabled:
 trying to overwrite `/usr/share/doc/gcc-3.3-base/changelog.Debian.gz', which is also in package gcc-3.3-base
dpkg: dependency problems prevent configuration of gcc-3.3:
 gcc-3.3 depends on cpp-3.3 (>= 1:3.3.4-6sarge1.1); however:
  Package cpp-3.3 is not configured yet.
 gcc-3.3 depends on cpp-3.3 (<< 1:3.3.5); however:
  Package cpp-3.3 is not configured yet.
dpkg: error processing gcc-3.3 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 gcc-3.3
 
Old 08-28-2004, 11:26 AM   #4
littlemidget
Member
 
Registered: Aug 2004
Location: Oslo, Norway.
Distribution: Debian Sarge
Posts: 171

Original Poster
Rep: Reputation: 30
It occured to be RC-bugs, so I just removed those packages.
 
Old 08-28-2004, 01:18 PM   #5
Abject
Member
 
Registered: Mar 2002
Location: Studio City, CA
Distribution: Debian (Sarge-Sid)
Posts: 76

Rep: Reputation: 15
Use Unstable gcc/ccp/g77/etc.

I had the same problem. I just upgraded them all to unstable (Sid). That worked.

Of course, you run unstable/Sid at your own risk.

At this point, we can have the discussion that Unstable is more secure than Testing (Sarge), since neither gets "official" Security fixes, but Testing has to wait at least 10 days for fixes to percolate in from Unstable.

You can always "downgrade" back to Sarge once this packaging problem gets fixed.

There are two "Grave" bug reports against gcc and gcc-base for these problems - 268476 and 268700
 
  


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-get question: dist-upgrade vs upgrade Arodef Fedora 9 06-15-2012 02:33 PM
apt troubles[ is my system broken?] MouseHunter Debian 2 11-06-2005 09:59 AM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 09:19 PM
APT-GET troubles - networking? MTU? blietaer Linux - Hardware 1 01-06-2004 12:29 PM
kde apt troubles... again... externalgreenfu Debian 2 07-20-2003 02:02 PM


All times are GMT -5. The time now is 05:23 PM.

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