LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial 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
 
LinkBack Search this Thread
Old 08-28-2004, 03:28 PM   #1
forgox
LQ Newbie
 
Registered: Jul 2004
Posts: 27

Rep: Reputation: 15
apt-get upgrade error in dpkg (--unpack) for gcc,g++


Hi,
Running APT-GET UPGRADE on Debian Sarge upgraded all packages properly except three packages; g++-3.3 gcc-3.3 libstdc++5-3.3-dev. Those packages got an error when unpacking.

Trying APT-GET UPGRADE again makes Debian try to upgrade these three packages again but it always fails for same cause (see log below). By looking at the log below you see that gcc-3.3 and g++-3.3 tried to unpack a file own by another package (gcc-3.3-base). libstdc++5-3.3-dev seems to unpack a file owned by libstdc++5.

Trying to erase those three packages from /var/cache/apt/archives/ to get new package didn't help. Trying to deinstall gcc-3.3-base and libstdc++5 would make apt-get try to deinstall 80% of all the system packages.

Thanks for your help

---------------------------

$ 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.
Need to get 0B/4259kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 95314 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)
 
Old 08-28-2004, 03:33 PM   #2
forgox
LQ Newbie
 
Registered: Jul 2004
Posts: 27

Original Poster
Rep: Reputation: 15
OK, just found out this one is a bug already known;

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=268338
 
Old 08-28-2004, 07:35 PM   #3
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
the same thing is happening to my Sarge system. doh...hope this doesn't delay the release.
 
Old 08-28-2004, 09:00 PM   #4
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 581

Rep: Reputation: 32
Quote:
Originally posted by zero79
the same thing is happening to my Sarge system. doh...hope this doesn't delay the release.

my test system is broke do to the latest upgrade.. ...fortunately the balance of my network not affected..

i always test apt-get upgrades on this system before installing on the network workstations and server...
 
Old 08-29-2004, 04:22 PM   #5
macondo
Senior Member
 
Registered: Jul 2003
Location: Panama
Distribution: Debian Sid
Posts: 1,013

Rep: Reputation: 47
the bug is fixed!

Just did an update/dist-upgrade and it upgraded gcc 3.3 among other packages. Woohooo!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 17 12-01-2011 09:24 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
apt-get dpkg error: files list file ... missing final newline PBSchmidt Debian 8 12-26-2010 03:03 AM
apt-get / dpkg error caused by aspell amon Debian 1 04-14-2005 03:09 PM
apt-get upgrade error in dpkg (--unpack) for gcc,g++ forgox Linux - Newbie 0 08-28-2004 02:23 PM


All times are GMT -5. The time now is 02:05 AM.

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.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration