Re: [Bug 987502] Re: libxml2-dev: /usr/bin/xml2-config isn't identical across all arch

2013-09-13 Thread Andrew
Hi Darko,

Thank you very much for writing this up for me mate!

I'm not sure I even need this as I'm just an average Net user?

My system is 32 bit but I think I installed this maybe when thinking of 
doing a web site???

I tried what you wrote but keep getting errors like it doesn't exist, 
though I'm prompted everyday to update and returns a failure.

Here's the output after the first command:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer 
required:
   python3.2 python3.2-minimal
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
   libxml2
The following NEW packages will be installed:
   libxml2-dev
The following packages will be upgraded:
   libxml2
1 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Failed to exec method /usr/lib/apt/methods/
E: Method  has died unexpectedly!
E: Sub-process  returned an error code (100)
E: Method /usr/lib/apt/methods/ did not start correctly

Second command output:

mv: cannot stat `/usr/bin/xml2-config': No such file or directory

and so on it goes pretty much the same from there.

Please see the screenshots from the Update Center too.

I'm really grateful for your help with this mate, I tried to follow the 
links to rectify them all but don't have a clue what to do with the 
files once downloaded.

Cheers mate!

Andrew

On 13/09/13 01:28, Darko Lombardo wrote:
 Hi Andrew.

 Generally, both versions of the library are needed if one needs multi
 architecture building option (e.g. x86_64 native build and i386
 backsupport (cross)build for 32-bit installations).

 I am building my i386 and x86_64 application on Ubuntu 12.04.3 LTS using -m32 
 and -m64 gcc options.
 But running only 64-bit version of the application locally for the matter.

 To accomplish this I have done:

 Firstly installed libxml2-dev (x86_64)
sudo apt-get install libxml2-dev

 Secondly, move problematic xml2-config
sudo mv /usr/bin/xml2-config /usr/bin/xml2-config.x86_64

 Then install libxml2-dev:i386
sudo apt-get install libxml2-dev:i386

 Rename xml2-config for i386
sudo mv /usr/bin/xml2-config /usr/bin/xml2-config.i386

 Restore x86_64 xml2-config
sudo cp /usr/bin/xml2-config.x86_64 /usr/bin/xml2-config

 Finally, had to call ldconfig to refresh the library paths and gcc
 builds my application with -m32 and excplicit -m64 (although not
 needed).


 ldconfig reports:
 $ ldconfig -p | grep xml2
   libxml2.so.2 (libc6,x86-64) = /usr/lib/x86_64-linux-gnu/libxml2.so.2
   libxml2.so.2 (libc6) = /usr/lib/i386-linux-gnu/libxml2.so.2
   libxml2.so (libc6,x86-64) = /usr/lib/x86_64-linux-gnu/libxml2.so



** Attachment added: Update Manager.png
   
https://bugs.launchpad.net/bugs/987502/+attachment/3818920/+files/Update%20Manager.png

** Attachment added: update-manager_017.png
   
https://bugs.launchpad.net/bugs/987502/+attachment/3818921/+files/update-manager_017.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/987502

Title:
  libxml2-dev: /usr/bin/xml2-config isn't identical across all arch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/987502/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 987502] Re: libxml2-dev: /usr/bin/xml2-config isn't identical across all arch

2013-09-13 Thread Andrew
Hi darko,

Thanks for your help again!

I do believe I don't need this anyway as you say.

Yep I'm running low on HDD space atm and have used the repair broken 
packages in boot mode.

I will have more space when I defrag the drive which has windows on it 
so I can safely erase Windows and then use Gparted or similar to 
rearrange things.
Last time I went to do this, Windows played up and I got some message 
saying it was a non registered version??
Was never like that before so will have to look into that.
I haven't used windows since my first run of the previous version of Ubuntu.
I guess the best is to go offline to start windows,then see if I can 
defrag maybe even in safe-mode?
Windows is so foreign to me now LOL yet I knew it inside out once.

Any simple command to remove the offending library?

I've searched and cannot understand the lingo, a bit deep for me.

I have sudo'd all commands and the 'apt-get-update' many times with 
reboot without success.

Thanks again mate for the support.

Andrew

On 13/09/13 19:18, Darko Lombardo wrote:
 Hi Andrew.

 I do not think your issue is related to this bug at all.

 As a user you probably have no need for a libxml2-dev package, only
 libxml2.

 I posted notes in reference to this bug due to a deliberate request by the 
 user (developer) for libxml2-dev:i386 on a 64-bit Ubuntu, which is not 
 something users are likely to try to install.
 Like said before, both versions of the library are needed if one needs 
 multiple architecture building option on a 64-bit Ubuntu.

 Regarding your problem it is hard to say from the posted information, but 
 more of an apt (Update Manager) issue than libxml2 package issue.
 I have seen your message sometimes:
 - (maybe) command was not called with 'sudo'
 - running out of space on HDD partition
 - broken/damaged package

 Try to call 'sudo apt-get update' and restart the Update Manager (or the 
 system).
 Then retry to upgrade again using the Update Manager.


-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/987502

Title:
  libxml2-dev: /usr/bin/xml2-config isn't identical across all arch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/987502/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs