apt-get mysql-server-5.1 fails with ldconfig.real error

Bug #614829 reported by bernard wolsieffer
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

root@mymachine:~# apt-get install mysql-server-5.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  tinyca
The following NEW packages will be installed:
  mysql-server-5.1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,008kB of archives.
After this operation, 15.0MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main mysql-server-5.1 5.1.41-3ubuntu12.6 [7,008kB]
Fetched 7,008kB in 2min 46s (42.1kB/s)
Preconfiguring packages ...
Selecting previously deselected package mysql-server-5.1.
(Reading database ... 242499 files and directories currently installed.)
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.41-3ubuntu12.6_i386.deb) ...
egrep: /etc/mysql/: No such file or directory
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up mysql-server-5.1 (5.1.41-3ubuntu12.6) ...

Warning: Fake initctl called, doing nothing.

Warning: Fake initctl called, doing nothing.

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
/sbin/ldconfig.real: /usr/local/lib/libstdc++.so.6.0.14-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

This is being run as root. Not sure why the package fails.
Environment: (from uname -a): Linux mymachine 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC 2010 i686 GNU/Linux
Thanks in advance for any suggestions.

Tags: lucid
Philip Muškovac (yofel)
tags: added: lucid
Revision history for this message
Philip Muškovac (yofel) wrote :

This should be the issue described in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41816

Revision history for this message
bernard wolsieffer (bernard-wolsieffer) wrote : Re: [Bug 614829] Re: apt-get mysql-server-5.1 fails with ldconfig.real error

  Thanx.

On 08/07/2010 03:01 PM, Philip Muškovac wrote:
> This should be the issue described in
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41816
>
> ** Bug watch added: GCC Bugzilla #41816
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41816
>

--
Intellectual honesty consists in taking ideas seriously. To take ideas seriously means that you intend to live by, to practice, any idea you accept as true.
[Ayn Rand]

Revision history for this message
Steph Bredenhann (bredsj) wrote :

I have a similar problem with Maverick, every time I that I do an update/upgrade I get the following message:

ldconfig deferred processing now taking place
/sbin/ldconfig.real: /usr/lib/libjspTru64Alpha.so is not an ELF file - it has the wrong magic bytes at the start.

/sbin/ldconfig.real: /usr/lib/libjspAixPpc.so is not an ELF file - it has the wrong magic bytes at the start.

Any suggestions?

Revision history for this message
Torsten Spindler (tspindler) wrote :

It seems that somehow you installed an non working library to /usr/local/lib. Can you uninstall this and see if apt works again?

@ Steph: where do these libraries come from? Their names indicate that they are for Tru64 and AIX Unix, not Ubuntu Maverick.

Changed in apt (Ubuntu):
status: New → Incomplete
Revision history for this message
bernard wolsieffer (bernard-wolsieffer) wrote :

  Thanks for the posting. I simply used the gdebi package installer to
get mysql-server, and did not attempt to distinguish anything. I
expected gdebi to grab the 32-bit version (if it exists), and give me a
notice if it didn't. And I'm running 2.6.32-24-generic #42-Ubuntu SMP,
if that helps. I do not, however know which library to which you refer
in /usr/local/lib. If you could be specific on that, I'd be more than
happy to try again. However, I'd have to figure out other dependencies
as well, which I do not know.
Again, thanks. It has been a few years since I've worked in any Linux
environment, and things have changed rather significantly in that time,
so I was using the tools available.
b.

On 09/07/2010 01:16 AM, Torsten Spindler wrote:
> It seems that somehow you installed an non working library to
> /usr/local/lib. Can you uninstall this and see if apt works again?
>
> @ Steph: where do these libraries come from? Their names indicate that
> they are for Tru64 and AIX Unix, not Ubuntu Maverick.
>
> ** Changed in: apt (Ubuntu)
> Status: New => Incomplete
>

--
Intellectual honesty consists in taking ideas seriously. To take ideas seriously means that you intend to live by, to practice, any idea you accept as true.
[Ayn Rand]

Revision history for this message
Torsten Spindler (tspindler) wrote :

This line in your output triggered my interest in /usr/local/lib libraries:

/sbin/ldconfig.real: /usr/local/lib/libstdc++.so.6.0.14-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

I don't know how the libstdc++.so.6.0.14-gdb.py ended up there, so I can unfortunately not give any recommendation how to uninstall it safely. For now I would ask you to mv the file to a different directory and then try again.

Revision history for this message
bernard wolsieffer (bernard-wolsieffer) wrote :

  Gotcha. I'll try that.

On 09/07/2010 04:30 AM, Torsten Spindler wrote:
> This line in your output triggered my interest in /usr/local/lib
> libraries:
>
> /sbin/ldconfig.real: /usr/local/lib/libstdc++.so.6.0.14-gdb.py is not an
> ELF file - it has the wrong magic bytes at the start.
>
> I don't know how the libstdc++.so.6.0.14-gdb.py ended up there, so I can
> unfortunately not give any recommendation how to uninstall it safely.
> For now I would ask you to mv the file to a different directory and then
> try again.
>

--
Intellectual honesty consists in taking ideas seriously. To take ideas seriously means that you intend to live by, to practice, any idea you accept as true.
[Ayn Rand]

Revision history for this message
bernard wolsieffer (bernard-wolsieffer) wrote :

  Well, that seemed to take care of the problem. I have no idea how that
got there either. Guess I'll have to search through my installation logs
and tool compiles and see what's up. I'm a little surprised that the
apt/ld would mistake a .py for a .so. Oh well...
I'll claim right now that this issue should be Resolved.

On 09/07/2010 04:30 AM, Torsten Spindler wrote:
> This line in your output triggered my interest in /usr/local/lib
> libraries:
>
> /sbin/ldconfig.real: /usr/local/lib/libstdc++.so.6.0.14-gdb.py is not an
> ELF file - it has the wrong magic bytes at the start.
>
> I don't know how the libstdc++.so.6.0.14-gdb.py ended up there, so I can
> unfortunately not give any recommendation how to uninstall it safely.
> For now I would ask you to mv the file to a different directory and then
> try again.
>

--
Intellectual honesty consists in taking ideas seriously. To take ideas seriously means that you intend to live by, to practice, any idea you accept as true.
[Ayn Rand]

Revision history for this message
Vish (vish) wrote :

Thanks for following up. This bug report is being closed due to your last comment regarding this being fixed . For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in apt (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
bernard wolsieffer (bernard-wolsieffer) wrote :

  Thanks. I never did see how that .py file got into /usr/lib - I
checked all my compiled tools - nuthin'.
Take care. I wasn't sure about changing the status on my own bug -
mostly due to not fully understanding the protocol.
b.

On 09/09/2010 01:55 PM, Vish wrote:
> Thanks for following up. This bug report is being closed due to your
> last comment regarding this being fixed . For future reference you can
> manage the status of your own bugs by clicking on the current status in
> the yellow line and then choosing a new status in the revealed drop down
> box. You can learn more about bug statuses at
> https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time
> to report this bug and helping to make Ubuntu better. Please submit any
> future bugs you may find.
>
> ** Changed in: apt (Ubuntu)
> Status: Incomplete => Invalid
>

--
Intellectual honesty consists in taking ideas seriously. To take ideas seriously means that you intend to live by, to practice, any idea you accept as true.
[Ayn Rand]

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.