Ubuntu 14.04 with RPi.GPIO problem

Options
ihab zhaika
ihab zhaika New Member Posts: 3
edited August 2016 in UP Board Linux
hey,
i followed the guide of installing Ubuntu and then using the up-kernel , i tried the internal leds and they working
now i tried to follow this
https://up-community.org/wiki/RPi.GPIO
i installed the rpi.gpio from python pip because when i tried to use the
sudo apt-get install python-rpi.gpio
gives me
E: Unable to locate package python-rpi.gpio
E: Couldn't find any package by regex 'python-rpi.gpio'
the ppt already added which is [ ppa:ubilinux/up ]
so when i try to use the library , this line specificity
import RPi.GPIO as GPIO
gives
/usr/local/lib/python2.7/dist-packages/RPi/GPIO/__init__.py in <module>()
     21 """
     22 
---> 23 from RPi._GPIO import *
     24 
     25 VERSION = '0.6.2'

RuntimeError: This module can only be run on a Raspberry Pi!

so from where i can get the patched rpi.gpio ?