Linux WTF ??? Ubuntu 14.10

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
User avatar
KlaxonCow
Baaaaaaa!
Baaaaaaa!
Posts: 8447
Joined: Fri Dec 13, 2002 3:46 am 0
Location: A large grassy field.

Re: Linux WTF ??? Ubuntu 14.10

Post by KlaxonCow »

gumboot wrote:Isn't that just, like, `dpkg --add-architecture i686`, or something?
Yes. 32-bits is treated as a "foreign architecture" on 64-bits under the multi-architecture support, so you need to add the architecture for the package manager to also look for ":i386" versions in the repository:

Code: Select all

sudo dpkg --add-architecture i386
And you can specifically name an architecture with the suffix ":i386" or ":amd64" on a package name when you install or remove it, e.g. "libc6:i386" or "libstdc++6:i386".

It's different. But this approach means that you can keep your system "pure" 64-bit, if you want, or explicitly bring in just the "i386" packages you want and avoids the 32-bit / 64-bit versions of the same packages conflicting with each other. By treating them as different CPU architectures under the multi-architecture support.


But, ultimately, this:
Little stoned kiwi wrote:The responsibility for compatibility falls on Dell as a proprietary vendor.
The distro comes in 32-bit and 64-bit varieties. It's Dell who're dropping the ball by not properly supporting both architectures.

The system itself has multi-architecture support, neatly handling the 32-bit / 64-bit situation as if 32-bits were a different CPU architecture to keep it clean and nicely separated (and allow for you to explicitly specify 32-bit / 64-bit with the ":i386" and ":amd64" suffixes to uniquely identify the architecture).

The underlying support is there - Debian package management covers this and Ubuntu do provide 32-bit and 64-bit versions of their packages on the repositories (unsurprisingly, when you can download a 32-bit version of Ubuntu, so they do have the 32-bit versions of pretty much everything there) - so if that Dell printer driver is a load of shit, that's really on Dell for half-arsing their Linux support.
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
User avatar
gumboot
Baaaaaaa!
Baaaaaaa!
Posts: 7652
Joined: Sun Aug 26, 2007 3:42 am 0
Location: trumpstain!

Re: Linux WTF ??? Ubuntu 14.10

Post by gumboot »

Any distros bundling x32, yet? I noticed just today that Linaro are working on "ilp32" which is a provisional name for 32-bit AArch64.
User avatar
venusian
Baaaaaaa!
Baaaaaaa!
Posts: 6655
Joined: Wed Nov 06, 2002 2:22 pm 0
Location: South Gloucestershire

Re: Linux WTF ??? Ubuntu 14.10

Post by venusian »

Just like 1997 again. Just install these 34 magic packages, resolve your incompatibilities, wave a dead chicken and everything will work. Except actually no it doesn't. I know how to install specific arch versions and all that and you just get tied up in versioning hell. It doesn't work.

But yeah it's all Dell's fault just like it's Dell's virtue when the same procedure works in Windows.
User avatar
gumboot
Baaaaaaa!
Baaaaaaa!
Posts: 7652
Joined: Sun Aug 26, 2007 3:42 am 0
Location: trumpstain!

Re: Linux WTF ??? Ubuntu 14.10

Post by gumboot »

Haven't had to work with legacy binaries so much, but I make heavy use of qemu to run binaries so my system is pretty heavily populated with wrong-arch libraries. I'm surprised it hadn't caused more trouble, to be honest. Most particularly when I'm messing about in chroot for NFS exports and accidentally trigger service restarts and stuff.

That said, I upgraded from 14.04 to 15.04 a few months ago and I've been too scared to reboot ever since (it normally takes a day or two to salvage and stabilise the boot process). Half the running system is probably linked against deleted libraries.
User avatar
Little stoned kiwi
Baaaaaa!
Baaaaaa!
Posts: 4598
Joined: Mon Oct 27, 2003 6:05 am 0
Location: Christchurch

Re: Linux WTF ??? Ubuntu 14.10

Post by Little stoned kiwi »

venusian wrote:Just like 1997 again. Just install these 34 magic packages, resolve your incompatibilities, wave a dead chicken and everything will work. Except actually no it doesn't. I know how to install specific arch versions and all that and you just get tied up in versioning hell. It doesn't work.

But yeah it's all Dell's fault just like it's Dell's virtue when the same procedure works in Windows.
Actually, it's just like 1980 all over again. https://en.wikipedia.org/wiki/Richard_S ... ing_to_GNU
In 1980, Stallman and some other hackers at the AI Lab were refused access to the source code for the software of a newly installed laser printer, the Xerox 9700. Stallman had modified the software for the Lab's previous laser printer (the XGP, Xerographic Printer), so it electronically messaged a user when the person's job was printed, and would message all logged-in users waiting for print jobs if the printer was jammed. Not being able to add these features to the new printer was a major inconvenience, as the printer was on a different floor from most of the users. This experience convinced Stallman of people's need to be able to freely modify the software they use.
If they think you're crude, go technical; if they think you're technical, go crude. I'm a very technical boy.
Post Reply