Ubuntu 14.04 with RPi.GPIO problem

ihab zhaika
ihab zhaika New Member Posts: 3
edited August 2016 in UP Board Linux
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
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
/usr/local/lib/python2.7/dist-packages/RPi/GPIO/__init__.py in <module>()
     21 """
---> 23 from RPi._GPIO import *
     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 ?