I have had some trouble installing scratch on Ubuntu 64 bit. I have managed to get through it, and thought others may want to benefit from my experience. Of course, what worked for me may not work for you.
1) Scratch, as built in the Ubuntu .deb file, is 32-bit.
2) 64-bit Ubuntu will run 32-bit programs in general, but needs some cajoling to get it to install scratch.
A number of places have suggested simply telling ubuntu to ignore the 32bit/64bit incompatibility using the command line as follows:
sudo dpkg --force-architecture -i ./scratch_1.4.0.1-0ubuntu5_i386.deb
However, this didn't work for me. I got an error as follows:
dpkg: warning: overriding problem because --force enabled:
package architecture (i386) does not match system (amd64)
. . .
dpkg: dependency problems prevent configuration of scratch:i386:
scratch:i386 depends on libc6 (>= 2.4).
scratch:i386 depends . . .
. . .
Unknown media type in type 'all/all'
. . .
Errors were encountered while processing:
scratch:i386
So I did the following
1) I modified the contents of the .deb file so that it said that it was targeted to the amd64 architecture instead of i386. That is a large set of steps. This link gave me the info I needed on how to do it:
http://thedarkmaster.wordpress.com/2008/05/24/how-to-create-manipulate-a-deb-file-of-a-compiled-application/
I will happily upload or e-mail the file I created if anyone wants it.
2) I made sure that my previous attempts to install were cleaned up with the following:
sudo dpkg --force-architecture -P scratch:i386
3) I opened the Ubuntu Software Center, made sure the package ia32-libs was installed, and then closed the Ubuntu Software Center
4) I double-clicked on my .deb file. The Ubuntu Software Center opened again, and after a few moments, Scratch appeared, ready for me to click on the Install button.
5) I clicked Install, and waited for the installation to complete.
After this, I ran Scratch from the Applications menu, and was able to complete the "Getting Started" tutorial without any apparent errors.
Let me know if anyone would like the .deb file I created. I am somewhat reticent about making the file too available, because it is a 32-bit .deb file masquerading as a 64-bit one. Still, it works, and I guess that's the main thing.
Offline
Nice! I tried and failed to install it on my own Ubuntu installation, so I resorted to using the Windows version of Scratch on Wine instead.
Offline
(i want your file)
Offline
Hello,
How can I get a copy of that file?
My email address is [removed]....If you could send it to me that would be great....otherwise I'll probably likely have to wade through the link you gave me.
Thanks
[Moderator Edit: Please don't share or encourage others to share contact information on the Scratch website. See the Community Guidelines for more information]
Last edited by cheddargirl (2012-03-27 00:36:11)
Offline
Nevermind my last post as I apparently broke some rules and I've got it working.....
Here's a quick guide to how to do step #1 from the original poster:
a)download the original .deb file for ubuntu i386 ==> a file called "scratch_1.4.0.1-0ubuntu5_i386.deb"
b)create a new file on your desktop called "scratch"
c)create a new file inside "scratch" called "debian"
d)create a new file inside "debian" called "DEBIAN"
NOTE:these are case sensitive
e)now extract the original deb file and you'll get "control.tar.gz", "data.tar.gz", and "debian-binary" files. Forget about the "debian-binary" file.
f)extract the contents of "control.tar.gz" into the "DEBIAN" file
g)extract the contents of "data.tar.gz" into the "debian" file right next to "DEBIAN"
h)navigate back to the extracted contents in the "DEBIAN" file and open a text file called "control"
i)change the line that says "Architecture: i386" to "Architecture: amd64" then save and exit.
j)open up a command line and change to the initial "scratch" directory that was created. type the following command:
dpkg-deb --build debian
k)if everything has been done correctly, then there should now be a new .deb file in the "scratch" directory called debian.deb
Now follow the rest of the original posters guide and you got it....worked for me
Hope this helps!
Offline
Hey man, I need that file something fierce. My hard drive with my Windows partition failed. I can't do anything with scratch now. If you could go to one of my projects and leave a comment I would be happy. I just want some help on this. I'm new to Ubuntu Linux and on top of that it's 64-bit. I am afraid of breaking something so I just want to take the easy way out. (I don't want to lose my only source of internet access)
PinkiePie is best PonyOffline