cannot run apt-get after upgrading to ubuntu 8.04

Bug #180160 reported by jz
4
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I upgraded from ubuntu 7.10 to 8.04 by running 'update-manager -d' on my laptop thinkpad T60. After that, when I run apt-get update it shows the message:

apt-get: relocation error: /usr/lib/libapt-pkg-libc6.7-6.so.4.6: symbol _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i, version GLIBCXX_3.4.9 not defined in file libstdc++.so.6 with link time reference

Revision history for this message
jtholmes (jtholmes) wrote :

did you apply all the existing pkg upgrades available for 7.04 before
executing update-manager -d

Revision history for this message
jtholmes (jtholmes) wrote :

Sorry i asked if you applied all pkg upgrades available for release 7.04
that should have been release 7.10

Revision history for this message
jz (jzhu4) wrote : Re: [Bug 180160] Re: cannot run apt-get after upgrading to ubuntu 8.04

Hi-
Sorry I don't really understand what you mean. I upgraded from 7.04 to
7.10a couple of months ago and today I upgraded to
8.04. Before upgrading to 8.04, the update manager shows my system is up to
date.

On Jan 3, 2008 3:44 PM, jtholmes <email address hidden> wrote:

>
> Sorry i asked if you applied all pkg upgrades available for release 7.04
> that should have been release 7.10
>
>
> ** Changed in: apt (Ubuntu)
> Sourcepackagename: None => apt
> Status: In Progress => Incomplete
>
> --
> cannot run apt-get after upgrading to ubuntu 8.04
> https://bugs.launchpad.net/bugs/180160
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
jz (jzhu4) wrote :

Hi-

 I found the solution
http://www.linuxdiyf.com/bbs/archiver/tid-68799.htmlwhich is a Chinese
forum. I did as follows:

$ ldconfig -p |grep libstdc++

         libstdc++.so.6 (libc6) => /usr/lib/libstdc++.so.6
         libstdc++.so.6 (libc6) => /usr/local/lib/libstdc++.so.6
$ diff /usr/lib/libstdc++.so.6 /usr/local/lib/libstdc++.so.6
   Binary files /usr/lib/libstdc++.so.6 and /usr/local/lib/libstdc++.so.6
differ
The two files are different which means there are two different versions gcc
in the system? I found a gcc directory under /usr/local

Then : $ cat /etc/ld.so.conf.d/libc.conf
# libc default configuration
/usr/local/lib

I added /usr/lib to the file and then run :
$sudo ldconfig

On Jan 3, 2008 4:43 PM, Jiapeng <email address hidden> wrote:

> Hi-
> Sorry I don't really understand what you mean. I upgraded from 7.04 to
> 7.10 a couple of months ago and today I upgraded to 8.04. Before upgrading
> to 8.04, the update manager shows my system is up to date.
>
>
> On Jan 3, 2008 3:44 PM, jtholmes <email address hidden> wrote:
>
> >
> > Sorry i asked if you applied all pkg upgrades available for release 7.04
> > that should have been release 7.10
> >
> >
> > ** Changed in: apt (Ubuntu)
> > Sourcepackagename: None => apt
> > Status: In Progress => Incomplete
> >
> > --
> > cannot run apt-get after upgrading to ubuntu 8.04
> > https://bugs.launchpad.net/bugs/180160
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
>
>

Revision history for this message
jtholmes (jtholmes) wrote :

Great job
So can we close this bug report

Revision history for this message
Jerome Rousselot (jeromerousselot) wrote :

Same bug for me:

* Updated all packages on a Ubuntu 7.10 machine.
* Ran update-manager to upgrade to 8.04.
* Apt-get update gives the same error message as above.
Many other programs fail similarly.

The proposed solution worked.

I suggest to change ld.conf default settings so that it
uses the newly installed version of libstdc++.
People needing to use a local version of this lib by
default should be able to reconfigure ld accordingly,
while it is not trivial to identify the source of the problem.
(I don't even remember why this local libstdc++ version is installed on my machine).

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

I believe there is enough information to confirm this report. There is also a suggested workaround given that seems to fix the issues.

Thanks for reporting this bug and any supporting documentation. Thanks for taking the time to make Ubuntu better!

Changed in apt:
assignee: jt-jtholmes → nobody
status: Incomplete → Confirmed
Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

I will close the bug because this Ubuntu version is EOL on the Desktop and I'm quite sure nobody will fix this bug.

Changed in apt (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.