Package Install Failing

Hi,
I recently upgraded to the latest Yun operating system, and then proceded to install the package yun-gcc (I believe one of the new changes to the operating system was addition of this package?). However, it would not download or install. After executing opkg update and then opkg install yun-gcc, it would sit for a minute of two presumably downloading the package, but the report that it could not be downloaded: "Package yun-gcc md5sum mismatch. Either the opkg or the package index are corrupt. Try 'opkg update'."
I then tried to install the fortune-mod package, as shown on the Yun package manager page. This installed fine.
What's happening here?
Thanks

Update:
It has now escalated to the point that opkg update works about 20% of the time, and opkg install now never works. Usually opkg update will work once, then a reboot must be done to do it again successfully. opkg install now refuses to work and reports that the package couldn't be downloaded, however a wget to the same address can fetch the file in a few seconds...

You may want to take a look here Native GCC for Yun - #20 by noblepepper - Arduino Yún - Arduino Forum if you want to use that package. You definitely need to have an SD card running the yundiskspaceexpander because that thing is HUGE. If you don't have the rootfs on an SD you are filling up either your flash or ram. The size may also be the source of the problem, too much opportunity for some sticky bits to creep in while the file whizzes around the interwebs .

You also need binutils, while GCC doesn't technically depend on it, without binutils it is pretty useless.

I'm answering from my phone while drinking a beer. I'll look at this in more detail in the morning.

Thanks for trying this package out, it is very nice to see some interest.

Yes I have expanded the storage on an 8GB sd card, so storage is not an issue. Probably what is the issue is that my internet is dying under the strain of downloading that package, since it is huge. However I assume the md5sum error is not to do with my internet connection as such. I'll have to try it again today, but last night opkg had basically bricked itself, nothing would work. It would load for an excessively long time then say that the package simply "could not be downloaded".
Also why is yun-gcc so large? Isn't it a relatively small package on other operating systems?

I'm not sure why your opkg quit working entirely, a failed install definitely shouldn't do that but it may. This does sound like a connectivity issue.

opkg install yun-gcc gave me the same error. I believe opkg downloads packages to /tmp which is in ram so the failure may be due to filling up the ram. You can install the package with

wget  http://downloads.arduino.cc/openwrtyun/1/packages/yun-gcc_4.6.2-1_ar71xx.ipk
--2014-09-28 07:59:00--  http://downloads.arduino.cc/openwrtyun/1/packages/yun-gcc_4.6.2-1_ar71xx.ipk
Resolving downloads.arduino.cc... 2607:f298:4:143:acce:55:0:1, 64.90.32.4
Connecting to downloads.arduino.cc|2607:f298:4:143:acce:55:0:1|:80... failed: Address family not supported by protocol.
Connecting to downloads.arduino.cc|64.90.32.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47341807 (45M) [application/x-gzip]
Saving to: `yun-gcc_4.6.2-1_ar71xx.ipk.1'

100%[=======================================>] 47,341,807   182K/s   in 3m 23s  

2014-09-28 08:02:24 (228 KB/s) - `yun-gcc_4.6.2-1_ar71xx.ipk.1' saved [47341807/47341807]
.
root@Arduino:/mnt/sda1# time opkg install ./yun-gcc_4.6.2-1_ar71xx.ipk 
Installing yun-gcc (4.6.2-1) to root...
Configuring yun-gcc.
real	9m 8.40s
user	2m 15.60s
sys	0m 39.85s
root@Arduino:/mnt/sda1#

but you lose the automatic checksum verification. Notice the download and install take between 10 and 15 minutes.

You can also

root@Arduino:/mnt/sda1# mkdir /mnt/sda1/cache 
root@Arduino:/mnt/sda1# time opkg --cache /mnt/sda1/cache install yun-gcc_4.6.2-1_ar71xx.ipk 
Installing yun-gcc (4.6.2-1) to root...
Configuring yun-gcc.
real	9m 14.03s
user	2m 17.91s
sys	0m 39.76s

This puts the downloaded file on the sd card and keeps the checksum verification.

Why is it so big? Because getting this to work required me learning a lot and tested my patience severely, there are many optimizations that need to be done. I believe a lot of space can be saved by figuring out which libraries can safely be stripped.

I got to the point I could compile hello.c and haven't tested much outside of that. If problems are found please post them so I can try to help and fix them in the next release. I do know there are a lot of headers missing, this is easy to fix as they are found so PLEASE report them!

Tried installing it:

  • checksum is right
  • package tries to install files already provided by another package: opened an issue

I used command

opkg --force-overwrite -t /root install yun-gcc

This way .ipk is downloaded under /root (which is on the SD card) rather than /tmp (which is on RAM).
Package is big, patience is a requirement (took about 20 mins to install on my yun)